...
Table of Contents | ||
---|---|---|
|
Introduction
Run configurations specify details about how tests are executed. The Selenic run configurations panel enables you to configure which functionalities should be enabled during execution. Refer to the Usage section for additional information on executing the run configurations you create.
Scroll Ignore | ||||||||
---|---|---|---|---|---|---|---|---|
The following video tutorial describes how to configure Selenic run configurations.
|
Creating a Run Configuration with Default Settings
The recommended workflow is to select a test, package, or project and run it as a JUnit or TestNG test, which creates a configuration with default settings that you can modify.
Eclipse
- Select a test, package, or project and choose Run > Run with Selenic > JUnit Test or TestNG Test. If the necessary WebDriver(s) are configured in the Parasoft Preferences page, then the test will start running (see Installing WebDrivers).
- When the test execution completes, choose Run > Selenic Configurations....
- Click on the auto-generated run configuration under JUnit or TestNG in the sidebar menu.
Click the Selenic tab and update the run configuration settings accordingly. See Selenic Run Configuration Settings.
- Click Apply to save the configuration.
IntelliJ
- Right-click on a test, package, or project and choose Run '<Scope>' with Selenic. If the necessary WebDriver(s) are configured in the Parasoft Preferences page, then the test will start running (see Installing WebDrivers).
- When the test execution completes, choose Run > Edit Configurations....
- Click on the auto-generated run configuration under JUnit or TestNG in the sidebar menu.
- Click Modify options and enable Startup/Connection > Run, then update the Selenic run configuration settings accordingly. See Selenic Run Configuration Settings.
- Click Apply to save the configuration.
Manually Creating Run Configurations
You can manually create run configurations from the Selenic Configurations page.
Eclipse
- Choose Run > Selenic Configurations....
- Choose either JUnit or TestNG in the sidebar and click New launch configuration.
- Click the Test tab and configure the test execution settings.
- JUnit
- Choose either JUnit 4 or JUnit 5 as the test runner. The test runner must match the framework your tests were written for. If you created the project with Selenic, the framework configured in the Selenic preferences page will be used. See Configuring Test Creation Settings.
- Enable the Run a single test if you want to use the configuration to run a single test. Specify the project, test class, and test method in the appropriate fields.
- Enable the Run all test in the selected project, package or source folder option if you want to run a group of tests. Specify the project, package, or source folder.
- TestNG
- Specify the project containing your tests.
- Browse for the class, method, groups, package, or suite of tests you want to run in the appropriate field(s).
- Specify a log level and serialization protocol.
- JUnit
- Click the Selenic tab and enable your options. See Selenic Run Configuration Settings.
- Click Apply to save the configuration.
IntelliJ
Refer to the IntelliJ documentation for additional details about configuring tests.
- Choose Run > Edit Configurations....
- Click the + icon and choose either JUnit or TestNG.
- For JUnit:
- Configure the scope of the run configuration from the test kind, class, and method fields under Build and run.
- Go to Modify options > Startup/Connection > Run and enable your options (see Selenic Run Configuration Settings).
- Specify a name for the configuration and click OK.
- Configure the scope of the run configuration from the test kind, class, and method fields under Build and run.
- For TestNG:
- Choose the classpath containing your tests from the Use classpath of module menu.
- Configure the scope of the run configuration from the Test kind, Class, and Method fields.
- Click the Startup/Connection tab and enable your Selenic options (see Selenic Run Configuration Settings).
- Specify a name for the configuration and click OK.
Selenic Run Configuration Settings
The following table describes Selenic run configuration settings:
...