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

Unit Test Framework Results Window

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

In the Project Explorer window, click the Unit Test Framework Results button on the Unit Test Framework toolbar to display this window. LabVIEW displays this window after executing tests interactively. LabVIEW also displays this window if you use Open Results Window VI when executing tests programmatically.

Use this window to view the results of a test execution. You also can load results from a .lvutf file to view the results you saved from a previous test execution.

  • Summary—Displays summary results of the test execution. This page includes the following components:
    • Test Results—Displays the number of tests that passed, failed, were skipped, or produced errors.
      • Passed—Displays the number of tests that passed.
      • Failed—Displays the number of tests that failed.
      • Skipped—Displays the number of tests that LabVIEW skips during test execution. LabVIEW skips a test in the following cases:
      • Error—Displays the number of tests that contain errors.
      • Total—Displays the number of tests that executed.
    • Test Errors—Displays the number of .lvtest file errors, VI under test errors, setup VI errors, teardown VI errors, and errors that occurred during test execution.
      • .lvtest File—Displays the number of errors that .lvtest files contain.
      • VI under Test—Displays the number of errors that the VIs under test contain.
      • Setup VI—Displays the number of errors that setup VIs contain.
      • Teardown VI—Displays the number of errors that teardown VIs contain.
      • Test Execution—Displays the number of errors that occurred during test execution.
      • Total—Displays the number of errors that occurred during test execution and errors that .lvtest files, VIs under test, setup VIs, and teardown VIs contain.
    • Statistics—Displays the total execution time and the project code coverage of the current tests.
      • Total Time—Displays the total execution time of the current tests.
      • Project Code Coverage—Displays the project code coverage of the current tests. When you execute the tests, LabVIEW opens all VIs in this project to count subdiagrams and generates the code coverage of this project. For example, you can create a project that contains two VIs and each VI contains three subdiagrams and a test case that covers all three subdiagrams of one VI. When you execute this test, LabVIEW opens both VIs to count subdiagrams. Because this project contains six subdiagrams and the test covers three subdiagrams, the project code coverage measurement is 50%.
    • VIs—Displays the number of VIs in the current project that passed, failed, did not have .lvtest test files, or did not run during test execution.
      • VIs in Project—Displays the number of VIs in the current project.
      • VIs Passed—Displays the number of VIs in the current project that passed during test execution.
      • VIs Failed—Displays the number of VIs in the current project that failed during test execution.
      • VIs Indirectly Tested—Displays the number of VIs in the current project that ran during test execution but did not have .lvtest test files. VIs Indirectly Tested may include subVIs, teardown VIs, and setup VIs.
      • VIs Not Tested—Displays the number of VIs in the current project that did not run during test execution.
  • Test Results—Displays the details of the test results. This page includes the following components:
    • Results Details—Lists the results of each test. Expand the tree to view the individual elements. Double-click an item to open the VI in which a test failed. LabVIEW highlights the indicator where the test failed.
      Note  If the VI under test has been modified since the last execution, LabVIEW might highlight the wrong indicator.
    • Show failures only—Specifies whether to display only the results of tests that failed.
    • Display by VI name—Displays the test results according to the names of the VIs.
    • Display by test name—Displays the test results according to the names of the tests.
    • Description—Displays details about the item you select in the Results Details tree.
  • Test Errors—Displays errors that occurred during test execution. This page includes the following components:
    • Error Details—Lists the tests and VIs that produced errors during test execution. Expand the tree to view the individual elements.
    • Error Description—Displays details about the item you select in the Error Details tree.
  • Code Coverage—Displays the details of code coverage during test execution. This page includes the following components:
    • Code Coverage Details—Lists the code coverage details of each test. If the VI under test calls other VIs, LabVIEW lists the code coverage details of dependencies separately. Expand the tree to view the individual details.

      Code Coverage—Displays the percentage of subdiagrams LabVIEW executed during test execution.
    • Uncovered Diagrams—Displays details about subdiagrams that LabVIEW did not execute during test execution.
      Note  Double-click an item to open the VI. LabVIEW highlights the subdiagram that was not covered during execution.
  • SaveSaves the results from the Unit Test Framework Results window to a .lvutf file.
  • LoadLoads the results from a previous execution to the Unit Test Framework Results window. LabVIEW loads .lvutf files in the Unit Test Framework Results window only.
  • Expand Tree—Expands the tree on the current page.

 

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