Integration With Selenium - Prerequisites

Applies to TestComplete 15.31, last modified on March 17, 2022

Before you run your Selenium WebDriver tests in TestComplete, you need to prepare your test computer and TestComplete for Selenium integration.

Preparing Test Computer and Selenium Tests

  • Your Selenium WebDriver tests must be created by using one of the following unit testing frameworks:

    • JUnit

    • TestNG

    • NUnit

    • PyUnit

    • Ruby’s Test::Unit

    • PHPUnit

  • The appropriate framework must be installed and configured on your computer and have Selenium WebDriver modules installed and configured.

  • To use Maven to run Selenium tests created by using JUnit or TestNG, you must have Maven modules installed and configured on your computer.

    The PATH environment variable on your computer must specify the path to Maven modules. The JAVA_HOME environment variable must specify the path to your Java Developer Kit software location.

    For more information on how to install and configure Maven, see the Maven documentation.

  • If your Selenium tests use a specific web browser driver, that driver modules must be installed and configured on your computer.

  • If you use the Selenium Server, the appropriate modules must be installed and configured on your computer.

    Also, the Selenium Server must be running before you run your Selenium tests in TestComplete. See below.

Preparing TestComplete

  • Depending on the unit testing framework you use for your Selenium tests, in the Unit Testing Options dialog, specify the path to the appropriate framework executable that will run the tests in TestComplete:

    • If you used the NUnit testing framework, specify the path to the NUnit executable (nunit-console.exe).

    • If you used the JUnit or TestNG testing framework, specify the path to the Java Virtual Machine executable (java.exe).

    • If you used the PyUnit testing framework, specify the path to the Python executable (python.exe).

    • If you used the standard Ruby Test::Unit framework, specify the path to the Ruby executable (ruby.exe).

    • If you used the PHPUnit testing framework, specify the path to the phpunit.cmd batch file.

  • If you use the Selenium Server, you can configure your TestComplete project to run the server automatically upon the testing start.

    To control the Selenium Server, you must have a license for the TestComplete Web module.

    1. In the Selenium Options dialog, set the path to your Selenium Server and the path to the Java Virtual Machine that will run the server.

    2. On the Properties | Selenium page of your project, select the Run Selenium standalone server check box. If needed, set additional options of your Selenium Server.

See Also

Integration With Selenium
Working With TestComplete

Highlight search results