Adding Unit Tests to Test Projects

Applies to TestComplete 15.40, last modified on March 25, 2022

In TestComplete, you can add a Selenium or Unit Testing collection to your project and add your unit tests to that collection:

  1. Add a Selenium or Unit Testing project item to the current TestComplete project. See Adding and Removing Project Items and Their Child Elements.

  2. In Project Explorer, right-click the created Selenium or Unit Testing collection and then click Add | New Item.

  3. 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.

  4. 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.

  5. In the editor, configure the unit test:

  6. 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.

See Also

Integration With Unit Testing Frameworks - Overview

Highlight search results