Executing Tests from .lvtest Files
- Updated2025-11-07
- 2 minute(s) read
- Select to create a new, blank VI.
- Display the block diagram by selecting .
- If you do not see the Functions palette, select to display this palette.
-
On this palette, select .
The Unit Test Framework VIs appear.
- Add the Run Tests from File VI to the block diagram.
- Add the Open Results Window VI to the block diagram.
- Wire the test results out output of the Run Tests from File VI to the test results in input of the Open Results Window VI.
-
Right-click the test file paths input of the
Run Tests from File VI and select from the shortcut menu.
A front panel control appears to the left of this VI. This control represents an array of paths to the .lvtest files that you want to execute.
- Wire all error in and error out terminals on the block diagram.
- Display the front panel and click the Browse button on the test file paths control to select an .lvtest file.
- Optional:
Move the cursor over the test file paths control. When a
double-headed arrow appears, click and drag the border of the control to add
more elements to the array of paths.
You also can use the numeric control to display subsequent array elements. Add additional .lvtest files that you want to execute.
- Select and save this VI in an easily accessible location.
-
Click the Run button to run the VI.
Note When you execute tests from .lvtest files programmatically, LabVIEW executes tests in the order as they listed in the test file paths control.