To download NI software, including the products shown below, visit ni.com/downloads.
The TestStand Application Manager supports processing custom command line arguments through the ProcessUserCommandLineArguments event. This can prove useful when automating test execution from a CI server.
This example is similar to the LabWindows/CVI Basic User Interface, but has been modified to accept the following command line arguments:
|/SimulateFailure <failures>||When used with the included example sequence file, this suppresses the simulation dialog and instead simulate failures as specified. This argument accepts the following parameters:
This example demonstrates the following concepts:
Note: By default, TestStand shows dialogs under certain conditions. This can cause hangs when automating sequence execution without user input, such as when ran from a CI Server. In order to prevent popups that require user input, configure the following options:
TestStand 2014 SP1 or later
LabWindows/CVI 2015 or later
TestExec /runEntryPoint "Single Pass" "<ExampleDir>\TestSequence\Computer Motherboard Test Sequence.seq" /SimulateFailure Keyboard Video RAM /quit
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.