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

Advanced Page (Test Properties Dialog Box)

LabVIEW 2013 Unit Test Framework Toolkit Help

Edition Date: June 2013

Part Number: 372584F-01

»View Product Info
Download Help (Windows Only)

Requires: Unit Test Framework Toolkit

Select Advanced from the Category list of the Test Properties dialog box to display this page.

Use this page to configure the settings related to the execution of a test, including the timeout, minimum code coverage requirement, number of times to repeat a test, digits of precision for floating-point comparison, decimal separator, and input/output setting.

Note  The settings on this page apply to only the .lvtest file you are configuring and override the global settings specified on the Unit Test Framework page of the Project Properties dialog box.

This page includes the following components:

  • Execution—Configures the settings related to executing a test.
    • Digits of precision for floating-point comparison—Specifies the number of digits after the decimal separator that LabVIEW uses for comparing floating-point values. Valid values are 0-32. The default is 6.
    • Repetitions—Specifies the number of times that LabVIEW repeats the test. The default is 1.
    • Set timeout (s)—Specifies whether to set a timeout, in seconds, for the test during test execution. For example, you can set a timeout for tests of VIs that loop forever or require you to perform tasks manually. If the VI under test times out during execution, LabVIEW stops the VI and test results show this test as failed. By default, this checkbox does not contain a checkmark.
      • Timeout—Specifies the time limit, in seconds, in which LabVIEW must complete the test execution. If you place a checkmark in the Set timeout checkbox, the default is 0.
    • Set minimum code coverage (%)—Specifies whether to set a minimum code coverage requirement, in percent, for the VI under test during test execution. If the VI under test does not meet the minimum code coverage requirement during test execution, test results show this test as failed. By default, this checkbox does not contain a checkmark.
      • Code coverage—Specifies the percentage of subdiagrams LabVIEW must execute during test execution. If you place a checkmark in the Set minimum code coverage checkbox, the default is 100.
    • Automatic error handling—Specifies whether to automatically handle errors for the VI under test, setup VI, and teardown VI during test execution. This control takes effect only on VIs during test execution instead of changing the specifications in the VIs. You can select from the following options:
      • As is—Enables or disables automatic error handling as a VI specified. This is the default option.
      • Enable automatic error handling—Suspends test execution, highlights the subVI or function where the error occurred, and displays an error dialog box for any error that occurs when running a VI during test execution.
      • Disable automatic error handling—Continues to run a VI when an error occurs during test execution.
    • Disable breakpoints—Specifies whether to toggle test execution suspension at a breakpoint. By default, the test continues when LabVIEW reaches a breakpoint. This option takes effect only on the VI under test, setup VI, and teardown VI during test execution instead of changing the specifications in the VI.
  • Configuration—Specifies the settings related to configuring the VI under test, setup VI, and teardown VI.
    • Input/output values—Specifies which controls and indicators of the VI under test appear on the Test Cases page of the Test Properties dialog box. You can select from the following options:
      • Include controls and indicators from connector pane (Default)—Displays the controls from the connector pane of the VI under test and setup VI as input and displays the indicators from the connector pane of the VI under test and teardown VI as output. You must select a connector pane pattern and assign terminals for the VI under test. National Instruments recommends this option when executing a test on a real-time (RT) target. Doing so avoids test errors that result if the RT target cannot find an input or output.
      • Include controls and indicators from front panel—Displays the controls from the front panel of the VI under test as input and displays the indicators from the front panel of the VI under test as output.
      • Include controls and indicators from front panel as both input and output—Displays the controls and indicators from the front panel of the VI under test as both input and output.
    • Capture input values—Specifies whether to capture the default input values from the VI under test when creating a test. By default, this checkbox contains a checkmark.
    • Capture output values—Specifies whether to capture the default output values from the VI under test when creating a test. By default, this checkbox contains a checkmark.
    • Decimal separator—Specifies the character LabVIEW uses to separate the integral and fractional parts of a decimal number. Use a period (.) or a comma (,). The default is a period.
    • Maximum array elements—Specifies the maximum number of array elements that LabVIEW lists on the Test Cases page of the Test Properties dialog box. If an array contains more elements than the specified number, LabVIEW lists the array as one item. The default is 100.
      Note  If you change the Maximum array elements, you need to update each test case by clicking the Import Values from VI button on the Test Cases page.

 

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