Laserfiche WebLink
TSTool Documentation <br />4.17 General Commands — Test Processing <br />Commands <br />The Commands... General — Test Processing menu provides choices to insert commands related to <br />testing. A test case can be a simple test (e.g., test of a single command with a specific combination of <br />parameters) or a more complex test (e.g., a test of a command file used to process a data set file). The <br />CreateRegressionTestCommandFile O can be used to search a directory structure for command <br />files matching a pattern (e.g., Test *. TST000. This will create a master command file that includes <br />RunCommands O commands. These commands are used by software developers to create test suites to <br />verify TSTool software functionality and can also be used by software users to verify that a process is <br />certified and gives expected results. Comparing the results from a specific software version with <br />expected results is useful for diagnosing errors. <br />WritePropertyo ... <used to test software> <br />CompareFileso ... <compare files, to test software> <br />CreateRegressionTestCommandFile( ... <to test software> <br />StartRegressionTestResultsReport o ... <For test results> <br />TestCommando ... <to test software> <br />Commands... General — Test Processing Menu <br />Menu GeneralTesting <br />The following is an example command file to run the CreateRegressionTestCommandFile ( ) <br />command: <br /># Create the regression test runner for the <br /># TSTool/ test /regression /TestSuites /commands_general files. <br /># Only command files that match Test are included in the output. <br /># Don't append the generated commands, in order to force the old file to be <br /># overwritten. <br />CreateRegressionTestCommandFile (SearchFolder= ".. \.. \.. \commands \general ", <br />OutputFile = ".. \run \RunRegressionTest commands general.TSTool ",Append= False) <br />The following command file is generated from the above and can be run to execute the individual tests. <br />Typically each test uses the CompareTimeSeries () or CompareFiles () command to generate a <br />warning if results are not as expected. <br />StartRegressionTestResultsReport( <br />OutputFile= "RunRegressionTest commands general.TSTool.out.txt ") <br />RunCommands(InputFile= ".. \.. \.. \commands \general \add \Test Add l.TSTool ") <br />RunCommands(InputFile= ".. \.. \.. \commands \general \add \Test Add Ensemble l.TSTool ") <br />/ RunCommands(InputFile= ".. \.. \.. \commands \general \Change Interval\ <br />Test ChangeInterval IrregINST To 3HourINST.TSTool ") <br />... etc. ... <br />69 Commands - 15 <br />