The NI LabVIEW Unit Test Framework Toolkit helps you automate LabVIEW VI unit testing to perform functional validation and demonstrate that an application behaves properly. Right-click on any VI in the LabVIEW Project Explorer to generate a unit test, or import test parameters from a text document created in an editor such as Microsoft Excel. Tests can encompass multiple test cases, which define input values and the expected output for any data type, including arrays and clusters.
The resulting dialog identifies the source of incorrect outputs and reports the percentage of code that was exercised during testing to track code coverage. The included reporting functionality can automatically generate validation documents in HTML, ATML/XML, or ASCII formats, which are valuable for documenting that an application meets requirements and behaves within defined parameters. You also can integrate this toolkit with NI Requirements Gateway for automated tracking of test requirements coverage.
Advanced test configuration is possible with setup and teardown VIs. These are useful when the VI under test needs to be in a particular state or when it requires a large amount of complex data. You can also define custom tests that are called from the framework and included in the generated reports. Use this toolkit to install a palette for programmatic control of tests.