Complete the following steps to enter the input values, expected values, and comparison types for a test case.
Note LabVIEW lists the controls and indicators from the VI under test on the Test Cases page. If the Input/output values setting on the Unit Test Framework page of the Project Properties dialog box is Include controls and indicators from connector pane, make sure you select a connector pane pattern and assign the terminals for the VI under test.
Tip You can resize the Test Properties dialog box and table columns to fit the input and output data in the table.
  1. Open the LabVIEW project that contains the files on which you want to perform unit testing.
  2. Double-click an .lvtest file to display the Test Properties dialog box is displayed.
  3. Select Test Cases from the Category list to display the Test Cases page.
  4. If this test has more than one test case, use the Test Case control to select the test case you want to configure.
  5. Click the Input Value text box of the input terminal you want to configure and enter a value. Press the <Tab> key to move to the value in the next cell and press <Shift-Tab> to switch to the value in the previous cell.
    Tip You also can exchange values between the VI under test, setup VI, teardown VI, and the Test Cases page, accessible by clicking the Export Values to VI button or the Import Values from VI button.
  6. Click the Expected Value text box of the output terminal you want to configure and enter a value. Repeat this step for other output terminals.
  7. Select a comparison type from the Comparison list of the output terminal you want to configure. Repeat this step for other output terminals.
    Note LabVIEW lists the available comparison types that each data type supports. You also can use a user-defined comparison VI by selecting user-defined from the Comparison list and selecting a user-defined comparison VI.
  8. Optional: Remove the checkmark from each input or output terminal that you do not want to test during execution.
    Tip You can select multiple entries by pressing the <Ctrl> key while clicking each entry. Then right-click the selection and select Uncheck All Items or Check All Items.
  9. Optional: Click the Run button to test the single test case.
  10. Click the OK button to close the dialog box and return to the Project Explorer window.
  11. Select File»Save to save the project.