In TestComplete, you can run a unit test in various ways. This topic describes them.
Running From the Project Explorer
Selenium or Unit Testing collections in Project Explorer contain all unit tests in your project. To run a test:
Right-click the needed test in Project Explorer.
Choose Run Test_Name from the context menu:
Running From Scripts
To run a unit test from scripts, call the
In the example above, SeleniumTests is a sample name of a Selenium or Unit Testing collection, to which your “unit test” item - JUnit1 - belongs:
In your project, the names can differ. For instance, you may have
Running From Keyword Tests
To run a unit test from a keyword test, use the Run Test operation.
Running As Project Test Items
Drag the desired unit test to the Execution Plan editor.
Save the changes by selecting File > Save from the TestComplete main menu.
When you run your project, TestComplete will run your unit tests.
Viewing the Test Log
After the test run is over, TestComplete will show a test log. The Additional Information panel of the test log will contain the command-line output produced by the appropriate unit testing framework.
If you use the MSTest unit testing tool, the TestComplete test log will report the test results in a specific format. See MSTest Log.