BP control room.The spill-response command and control room.Photo: BP America via FlickrNEW ORLEANS, La. — British energy giant BP stopped the oil flowing into the Gulf of Mexico on Thursday for the first time in three months as it began key tests hoping to stem the spill for good.

Shortly after BP engineers shut down the last of three valves on a giant new cap placed on the blown-out well, Senior Vice President Kent Wells announced that no oil was leaking into the seas.

“I’m very excited to see no oil flowing into the Gulf of Mexico,” Wells told reporters, but cautioned it was only the start of a testing process set to last 48 hours to analyze the condition of the underground wellbore.

The tests are intended to determine whether the wellbore, which stretches 2.5 miles below the seabed, was damaged during an April 20 explosion on the BP-leased Deepwater Horizon rig.

BP is hoping to choke off the oil flow out of the well, estimated at between 35,000 to 60,000 barrels a day. But cutting off the flow of oil from the top could force oil out in new leaks if the wellbore was damaged.

“We would like the result that says there is perfect integrity,” Wells said, but cautioned it was too early to say whether the leaking well had been completely choked off.

During the test, engineers will be taking multiple readings from the 30-foot capping stack placed on top of the wellhead on Monday to monitor the pressure inside.

High pressure readings would allow the three valves to remain shut and the well would effectively be sealed, but low readings could mean there is a hole somewhere in the casing of the well where oil is escaping.

“If we have very low pressure readings, it’d be the equivalent of putting your thumb over the garden hose and the water’s going someplace else because there’s no pressure,” said the official in charge of the government response, Coast Guard Admiral Thad Allen. “If we get high pressure readings, that’d give us some indication that the wellbore’s intact, about the integrity of the casing pipe.”

Allen said that after 48 hours the engineers would open up the system again and begin capturing the oil through two surface vessels hooked up to the ruptured pipe, and would carry out a new seismic survey.

“That will tell us, as a result of that testing at high pressure for 48 hours, was there a change in the wellbore, did we have oil leak into the formation and form a pocket that could be a precursor for a breach in the ocean floor, is there methane gas coming up, which could be a precursor as well,” Allen said.

The two container vessels at the site capturing the spilling crude were shut down before the test started.

The White House said Wednesday that President Obama was being kept up-to-date.

Energy Secretary Steven Chu, a Nobel Prize-winning physicist, is involved in the consultations every six hours during the integrity test, alongside BP and government scientists.

The announcement was the first sign of real hope for desperate Gulf residents who have had their livelihoods ravaged by the worst environmental disaster in the nation’s history, now in its 13th week.

Teeming fishing grounds have been closed and tourists have been scared away — two vital economic lifelines for the southern region still struggling to recover from the 2005 Hurricane Katrina.

Endangered wildlife has also been increasingly threatened by huge ribbons of oil fouling the shores of five states — Texas, Louisiana, Mississippi, Alabama, and Florida. The costly, massive clean-up is likely to last years.

The Gulf disaster has so far cost BP some $3.5 billion, and compensation claims from devastated residents of the region could reach 10 times that.

A final solution to the leak is not expected before mid-August, when crews will complete the first of two relief wells, allowing the oil reservoir to be permanently plugged in a “kill” operation.