Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Assigning Test Vectors in Test Cases (Unit Test Framework Toolkit)

LabVIEW 2013 Unit Test Framework Toolkit Help

Edition Date: June 2013

Part Number: 372584F-01

»View Product Info
Download Help (Windows Only)

Complete the following steps to use a test vector in a unit test.

  1. In the Project Explorer window, double-click a .lvtest file to display the Test Properties dialog box.
  2. Select Test Vectors from the Category list to display the Test Vectors page.
  3. Click the Add button. A file dialog box appears.
  4. 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.
  5. Select Test Cases from the Category list to display the Test Cases page.
  6. 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.
  7. Select the test vector you want to use from the pull-down menu in the Input Value cell or Expected Value cell.
  8. (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.
  9. 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.

Related Information

Using Test Vector Indexes


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit