Jump to content

VI Tester - Theory of Operation


JKI

Recommended Posts

Background VI Tester is a LabVIEW implementation of the xUnit test framework architecture. It is an object-oriented framework with several core classes and a graphical user interface for loading and running tests.

Terminology

VI Tester - Graphical Test Runner UI

The graphical user interface that loads and runs tests (which you launch by selecting Tools >> VI Tester >> Test VIs... from the LabVIEW menubar). When you open a Project, Test Case, or Test Suite, VI Tester searches for tests in Test Cases and Test Suites. You can then run the tests.

 

Core Class: TestCase.lvclass

All Test Cases must inherit from "TestCase.lvclass". This core class contains several utility methods for setting the pass/fail status, and performing other operations in test methods. This class also contains several other methods that are used by the framework for running tests.

Core Class: TestSuite.lvclass

All Test Suites must inherit from "TestCase.lvclass". This core class contains several utility methods for configuring tests in the test suite.

 

Test Case (contains your tests)

Any class that inherits from "TestCase.lvclass" (for example, a Test Case that you create by selecting Tools >> VI Tester >> New >> Test Case... from the LabVIEW menubar). A Test Case contains Unit Tests (a.k.a Test Methods) as well as optional Setup and Teardown methods.

Test Suite (your groupings of tests)

Any class that inherits from "TestSuite.lvclass". A Test Suite contains a collection of "Test Objects", which are either TestCase.lvclass or TestSuite.lvclass objects.

 

Unit Test / Test Method

A Test Case member VI whose name begins with the word "test"

 

Setup

A Test Case member VI named "setUp.vi".

 

Teardown

A Test Case member VI named "tearDown.vi".

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.