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 LabVIEW Basic User Interface, but has been modified to accept the following command line arguments:
Option | Purpose |
---|---|
/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: This example does not pass errors back to the command line, so it may generate popups that require user action.
TestStand 2014 SP1 or higher
LabVIEW 2015 SP1 or higher
TestExec /?
TestExec /runEntryPoint "Single Pass" "<ExampleDir>\TestSequence\Computer Motherboard Test Sequence.seq" /SimulateFailure Keyboard Video RAM /quit
TestStand Help: ProcessUserCommandLineArguments Event
TestStand Help: Configuring Sequence Editor and User Interface Startup Options
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.