In TestComplete, you can add a Selenium or Unit Testing collection to your project and add your unit tests to that collection:
-
Add a Selenium or Unit Testing project item to the current TestComplete project. See Adding and Removing Project Items and Their Child Elements.
-
In Project Explorer, right-click the created Selenium or Unit Testing collection and then click Add | New Item.
-
In the Create Project Item dialog, select the type of the unit test you want to create:
-
MSTest
-
JUnit
-
TestNG
-
NUnit
-
DUnit
-
PyUnit
-
RubyUnit
-
PHPUnit
Enter the test name and click OK.
-
-
In Project Explorer, right-click the created test and then click Edit, or simply double-click the test. This will open the editor for the created test.
-
In the editor, configure the unit test:
-
For third-party unit tests, you will also need to specify the location of the unit testing tool executable that will run the tests. See Unit Testing Options Dialog.