LabVIEW Unit Test Framework Toolkit API Reference

Specifying a Timeout for a Test (Unit Test Framework Toolkit)

  • Updated2023-02-21
  • 1 minute(s) read

Complete the following steps to specify a timeout for a test.

  1. Open the LabVIEW project that contains the files on which you want to perform unit testing.
  2. Double-click a .lvtest file to display the Test Properties dialog box.
  3. Select Advanced from the Category list to display the Advanced page.
  4. Place a checkmark in the Set timeout checkbox.
  5. Use the Timeout control to specify a timeout, in seconds.
    Note  Use timeout for tests of VIs that loop forever or require you to perform any tasks manually.
  6. Click the OK button to close the dialog box and return to the Project Explorer window.
  7. Select File»Save to save the project.

The next time you execute this test, LabVIEW runs the VI under test. If the VI under test times out during execution, LabVIEW stops the VI and test results show this test as failed.

Log in to get a better experience