Selected by
NASA in June 1998, he reported for training in August 1998. Astronaut Candidate Training included orientation briefings and tours, numerous scientific and technical briefings, intensive instruction in
Space Shuttle and
International Space Station systems, physiological training and ground school to prepare for T-38 flight training, as well as learning water and wilderness survival techniques. He was initially assigned technical duties in the Astronaut Office Space Station Branch where he represented the Astronaut Office on training issues. He was then assigned to the Space Shuttle Branch as a liaison between the Johnson Space Center and the
Kennedy Space Center, and also served as the Deputy, Space Shuttle Branch. Foreman was selected as a mission specialist for the STS-123 mission in January 2007. The
STS-123 Endeavour mission launched in November 2008 and delivered the
Japanese Experiment Module and the
Canadian Special Purpose Dexterous Manipulator to the International Space Station. During the mission, Foreman performed three Extrvehicular Activities (EVAs): the first in support of assembly of Dextre; the second to assess experimental tile materials; and the third to relocate the
Orbiter Boom Sensor System. Foreman was also a crewmember of the
STS-129 mission in November 2009. STS-129 was the first flight of an ExPRESS Logistics Carrier that are designed to support equipment deliveries for the International Space Station. As a mission specialist on the flight, Foreman performed two additional EVAs bringing his total experience between two flights to five spacewalks. The two spacewalks added 12 hours and 45 minutes to his EVA time A veteran of two space flights, Foreman has logged more than 637 hours in space, including 32 hours and 19 minutes of EVA in five spacewalks. ==Post-government service==