LabVIEW 2013 Unit Test Framework Toolkit Help
»View Product Info
Complete the following steps to use a test vector in a unit test.
- In the Project Explorer window, double-click a .lvtest file to display the Test Properties dialog box.
- Select Test Vectors from the Category list to display the Test Vectors page.
- Click the Add button. A file dialog box appears.
- Locate and select the test vector file that you want to add in this file dialog box and click the OK button to add this test vector file to the Test Vector Files list.
- Select Test Cases from the Category list to display the Test Cases page.
- Right-click the input or output terminal that you want to assign a test vector and select Assign Test Vector from the shortcut menu. The Input Value cell or Expected Value cell displays No Vector.
- Select the test vector you want to use from the pull-down menu in the Input Value cell or Expected Value cell.
- (Optional) Use indexes for test vectors assigned to inputs. Right-click the test vector and select Assign Index»New Index to create an index and assign this index to the test vector. You also can assign existing indexes to a test vector by selecting an existing index under Assign Index. Select Assign Index»No Index to remove an index from a test vector.
||Note You cannot use indexes for test vectors assigned to output terminals.
- Click the OK button to close the Test Properties dialog box and apply the change.
Refer to the labview\examples\Unit Test Framework\Assign Vector to Expected Value\Assign Vector to Expected Value.lvproj directory for an example that demonstrates how to assign test vectors to output terminals.
Using Test Vector Indexes