I believe the answer is: a deposition
refers to the testimony that taken out of court. The purpose of a deposition is to gather the informations that could be used in the court.
Even though the process happen before the trial began, everyone who speaks in the desposition must do it under the Oath.