Creating a Test from a User-Defined Test VI

Complete the following steps to create a test from a user-defined test VI.
  1. Open the LabVIEW project that contains the files on which you want to perform unit testing.
  2. Right-click a VI and select Unit Tests»New User-Defined Test from the shortcut menu. A Save dialog box appears. LabVIEW automatically creates a user-defined test VI from the User-Defined Test Template.vit file located in the labview\templates\UnitTestFramework directory. You also can find the template file by selecting File»New to display the New dialog box and selecting VI»From Template»Unit Test Framework.
  3. Enter a filename for the user-defined test VI.
  4. Click the OK button to save the user-defined test VI. LabVIEW automatically creates a test and configures the test to use the user-defined test VI. LabVIEW saves the .lvtest file in the same location as the user-defined test VI.
  5. Select File»Save to save the project.
  6. Modify the user-defined test VI to define your own test.