Foreman was designated a Naval Aviator in January 1981 and assigned to Patrol Squadron 23 (VP-23) at NAS Brunswick, Maine. He made deployments to Rota, Spain; Lajes, Azores; Bermuda and Panama. Following this tour he attended the U. S. Naval Postgraduate School in Monterey, California where he earned a Master of Science degree in Aeronautical Engineering in 1986. As a graduate student, Foreman conducted thesis research at the NASA Ames Research Center at Moffett Field, California. Following graduation he was assigned as the Assistant Air Operations Officer aboard USS Coral Sea homeported in Norfolk, Virginia. In addition to his Air Operations duties, he flew as an E-2 Hawkeye pilot with VAW-120 and VAW-127. Upon selection to the U. S. Naval Test Pilot School in 1989, he moved to NAS Patuxent River, Maryland. He graduated in June 1990 and was assigned to the Force Warfare Aircraft Test Directorate. In 1991 he was reassigned as a flight instructor and the Operations Officer at U. S. Naval Test Pilot School. During his tenure there he instructed in the F/A-18, P-3 Orion, T-2, T-38 Talon, U-21, DHC-2 and the X-26 Frigate glider. In 1993, Foreman was assigned to the Naval Air Systems Command in Crystal City, Virginia, first as the deputy, and then as the Class Desk (Chief Engineer) Officer for the T-45 Goshawk aircraft program. Following that tour he returned to NAS Patuxent River, this time as the Military Director for the Research and Engineering Group of the Naval Air Warfare Center Aircraft Division. In addition to his duties at Patuxent River, he was assigned as the Navy liaison to NASA's Advanced Orbiter Cockpit Project at the Johnson Space Center in Houston, Texas. Foreman was working as the technical lead for the Advanced Orbiter Cockpit Project team when he was selected for the astronaut program.