1. A method for controlling driving of a test device containing a sample, the method comprising: identifying a test device; and executing a script containing a plurality of operations to be performed to analyze the sample contained in the test device, wherein the script comprises a plurality of operation commands, wherein at least one operation command among the plurality of operation commands includes a conditional statement, and wherein at least one operation command among the plurality of operation commands is designated to be executed according to whether the conditional statement is satisfied.