A sample processing apparatus comprising: a plurality of testing units (51, 52, 53) arranged along a transport path and each configured to perform at least one type of test; a plurality of transport units (3a, 3b, 3c) configured to collectively constitute the transport path and collectively function to deliver samples to the plurality of testing units (51, 52, 53) for testing; and at least one processor of a computer system and at least one memory configured to store programs executable by the at least one processor to: a) determine a type of test required to be performed on a sample; b) if a trouble of a transport unit is reported, determine whether there is an available testing unit performable of the required type of test to which the sample is deliverable; c) if there is an available testing unit, instruct to transport the sample to the available testing unit; the processing apparatus being characterized by further comprising a sample collecting unit configured to collect a sample transported from the transport path, wherein if none of the testing units (51, 52, 53) is available for testing or if none of the available testing units is performable of the required type of test, the at least one processor instructs to transport the sample to the sample collecting unit, wherein the sample collecting unit includes first and second collecting sections configured to collect samples, and wherein the at least one processor is configured to instruct to transport a sample of which testing has been completed to the first collecting section and to transport a sample of which testing has not been completed to the second collecting section. a plurality of testing units (51, 52, 53) arranged along a transport path and each configured to perform at least one type of test; a plurality of transport units (3a, 3b, 3c) configured to collectively constitute the transport path and collectively function to deliver samples to the plurality of testing units (51, 52, 53) for testing; and at least one processor of a computer system and at least one memory configured to store programs executable by the at least one processor to: a) determine a type of test required to be performed on a sample; b) if a trouble of a transport unit is reported, determine whether there is an available testing unit performable of the required type of test to which the sample is deliverable; c) if there is an available testing unit, instruct to transport the sample to the available testing unit; a) determine a type of test required to be performed on a sample; b) if a trouble of a transport unit is reported, determine whether there is an available testing unit performable of the required type of test to which the sample is deliverable; c) if there is an available testing unit, instruct to transport the sample to the available testing unit; the processing apparatus being characterized by further comprising a sample collecting unit configured to collect a sample transported from the transport path, wherein if none of the testing units (51, 52, 53) is available for testing or if none of the available testing units is performable of the required type of test, the at least one processor instructs to transport the sample to the sample collecting unit, wherein the sample collecting unit includes first and second collecting sections configured to collect samples, and wherein the at least one processor is configured to instruct to transport a sample of which testing has been completed to the first collecting section and to transport a sample of which testing has not been completed to the second collecting section.