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

Test Results (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)

The LabVIEW Unit Test Framework Toolkit provides several methods of returning test results from the test execution. You can view test results in the Unit Test Framework Results window that appears after execution is complete. The Project Explorer window also displays results from the test execution. You can generate test reports in several file formats. You also can generate log files.

Related Information

Generating Test Reports

Generating Log Files

Results Window

The Unit Test Framework Results window provides both summary and detailed information about the test execution, including tests and VIs that passed, failed, were skipped, or produced errors. Use this window to view test results. You also can save the results from this window to a .lvutf file that you can load later.

A .lvutf file contains the test results of the test execution. You can read .lvutf files interactively from the project window or programmatically by using the Open Results Window VI. LabVIEW loads .lvutf files in the Unit Test Framework Results window only.

The following figure shows an example of test results in the Unit Test Framework Results window.

Related Information

Saving and Loading Test Results

Project Explorer Window

After you execute tests and return to the Project Explorer window, colored dots appear next to the icon of each test you executed. These dots denote whether the test passed (green), failed (red), produced errors (exclamation mark), or was skipped (gray).

The following figure shows an example of test results in the Project Explorer window.

Note  After every subsequent test execution, LabVIEW updates the test results in the Project Explorer window. However, you cannot save the test results when you close the project.

Test Reports

You can configure the Unit Test Framework Toolkit to generate test reports after test execution is complete. Test reports contain results from the execution. You can customize test reports by specifying the contents of the reports.

You can generate test reports in the following file formats:

  • HTML—HTML reports contain advanced text formatting such as headings, a table of contents, tables, and hyperlinks. You can view HTML reports by using any Web browser. You also can format HTML reports by using a Cascading Style Sheet (CSS) file.
  • ATML—Automatic Test Markup Language (ATML) is a standardized, XML-based report format. ATML is an emerging standard in military and aerospace industries for sharing data between different components of a test system. The primary purpose of ATML is to specify standards for test environments that encompass the total product life cycle. ATML defines an integrated set of test-related information that supports the information needs of test environments for testing applications. ATML reports include requirement IDs so that you can track tests and test results in NI Requirements Gateway. You can transform ATML files into HTML files by using Extensible Stylesheet Language Transformations (XSLT), providing flexibility in creating user-defined test reports. For more information about ATML, refer to the ATML website.
  • ASCII—ASCII reports are tab-delimited text reports that you can view by using any data processing applications.

Log Files

You can configure the Unit Test Framework Toolkit to generate log files during test execution. Log files contain detailed information about the execution.

You can generate the following log files:

  • Test Status—This log file is a .txt file that contains information about the most recent test execution and results. During execution, LabVIEW logs test names, times of execution, durations of execution, and whether the tests passed (1), failed (0), produced errors (2), or were skipped (3).
    Note  LabVIEW uses the information in this log file to determine which tests to execute when you execute tests that have been modified since the last execution. You must generate this log file in order to execute only modified tests.
  • Test Execution—This log file is a .txt file that contains detailed information about the previous test execution(s). During execution, LabVIEW logs the entire execution process, including the test path, VI path, time of execution, running setup and teardown VIs, code coverage measurement, and test cases results. You can use this log file to troubleshoot tests that timed out, produced errors, or did not complete.

Related Information

Executing Only Modified Tests

Generating Log Files


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