Selenium Test Groups

Updated 5 months ago by Copado Solutions

Selenium Test Groups

A Selenium Test Group is a collection of Selenium test suites and credentials where you can run those suites. The purpose of Selenium test groups is to run the same test suites in different orgs.

In Selenium test groups, test run records will be created automatically, one per suite and credential.

Creating Selenium Test Groups

To create a new Selenium test group follow the steps below:

  1. Navigate to the Selenium Test Groups tab and click on New.
  2. Enter a Name for the test group and select the desired Selenium Settings record.
  3. If Regression Test or User Story Test is selected in the Type field, you will be prompted to enter a value in the Environment lookup field. This way, all the promotions whose destination is set to this environment will execute the tests included in the test group.
    The regression tests linked to each promotion are visible from the Promotion page. Refer to the Promotion Selenium Tests section in Manage Selenium Tests.
  4. Click on Save.

After that, you will be able to select existing credentials and test suites by using the buttons New Selenium Group Credential and New Selenium Group Test Suite.

Group Variables

Use group variables in your test cases and pre/post Apex code so that they get replaced with different values in different groups.

To create a group variable follow the steps below:

  1. Click on New Selenium Group Variable in the Group Variables related list.
  2. Choose a name e.g. URL and a value e.g. In your test case refer to group variables as {!Group.Name} e.g. {!Group.URL}.
  3. Click on Save.

This variable will be available for selection in test cases.

How did we do?