Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Configuring Basic Settings of Tests (Unit Test Framework Toolkit)

LabVIEW 2009 Unit Test Framework Toolkit Help

Edition Date: June 2009

Part Number: 372584B-01

»View Product Info

Use the Configuration page of the Test Properties dialog box to configure basic settings of a test.

Specifying a Test Priority

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

  1. Open the LabVIEW project that contains the files on which you want to perform unit testing.
  2. Right-click a .lvtest file and select Properties from the shortcut menu to display the Test Properties dialog box. You also can double-click the .lvtest file to open the dialog box.
  3. On the Configuration page, use the Test Priority control to select a priority for this test.
  4. Click the OK button to close the dialog box and return to the Project Explorer window.
  5. Select File»Save to save the project.

The next time you execute tests by priority, LabVIEW executes only tests with an equal or higher priority than the Minimum priority you specified on the Unit Test: Filters page of the Project Properties dialog box.

Specifying Requirement IDs

Complete the following steps to specify requirement IDs for a test.

  1. Open the LabVIEW project that contains the files on which you want to perform unit testing.
  2. Right-click a .lvtest file and select Properties from the shortcut menu to display the Test Properties dialog box. You also can double-click the .lvtest file to open the dialog box.
  3. On the Configuration page, enter requirement IDs in the Requirement ID text box for integration with NI Requirements Gateway.
  4. Click the OK button to close the dialog box and return to the Project Explorer window.
  5. Select File»Save to save the project.

Configuring a Test to Use a User-Defined Test VI

Complete the following steps to configure a test to use 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 .lvtest file and select Properties from the shortcut menu to display the Test Properties dialog box. You also can double-click the .lvtest file to open the dialog box.
  3. On the Configuration page, place a checkmark in the Use user-defined test VI checkbox.
    Note  When you place a checkmark in the Use user-defined test VI checkbox, LabVIEW dims the Test Cases page and the Setup/Teardown page in the Test Properties dialog box.
  4. Click the Browse button next to the Use user-defined test VI file path text box. A file dialog box appears.
  5. Navigate to and select the user-defined test VI you want to use. Click the OK button.
  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.

Configuring a Test to Skip

Complete the following steps to configure a test to skip during test execution.

  1. Open the LabVIEW project that contains the files on which you want to perform unit testing.
  2. Right-click a .lvtest file and select Properties from the shortcut menu to display the Test Properties dialog box. You also can double-click the .lvtest file to open the dialog box.
  3. On the Configuration page, place a checkmark in the Always skip this test checkbox. The Project Explorer window and the Unit Test Framework VIs checkboxes appear and contain checkmarks by default.
  4. (Optional) If you want to skip this test only when executing tests interactively from the Project Explorer window, remove the checkmark from the Unit Test Framework VIs checkbox.
  5. (Optional) If you want to skip this test only when executing tests programmatically with the Unit Test Framework VIs, remove the checkmark from the Project Explorer window checkbox.
  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 tests, LabVIEW skips this test.


 

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