Versioning Selenium Test Cases

Updated 2 weeks ago by Copado Solutions

Copado allows you to track versions of Selenium test cases. This way, a Selenium test case can be promoted in the same way as the metadata changes are promoted into higher sandboxes or production orgs. Promote and rollback will show the usage of the current version and bulk update Selenium test suites with a newer or older version.

To make your test cases more reusable and environment-agnostic use group variables.

Promote Test Case Version

Assuming you have your test case version 1 already in use in several suites, you need to make some changes in the test case to reflect the new functionality. Here are the step-by-step instructions on how to create a new version and promote it:

  1. Go to the version 1 test case.
  2. Click on New Version. This will clone the test case, and increase the version number, version 2.
  3. Click on Promote Version.
  4. A list of test cases per suite will be displayed where version 1 is being used.
  5. Select the ones that should be promoted to version 2.
  6. Click on Save.
  7. Now the selected test suites are using version 2.
  8. You can now start making changes to version 2

Rollback Test Case Version

Assuming you have your test case version 2 already in use in several suites, you need to rollback test suites to use test case version 1, since version 2 might be faulty. Here are the step-by-step instructions on how to rollback to a previous version.

  1. Go to the version 2 test case.
  2. Click on Rollback to Previous Version.
  3. A list of test cases per suite will be displayed where version 2 is being used.
  4. Select the ones that should be rollbacked to version 1.
  5. Click on Save.
  6. Now the selected test suites are using version 1.


How did we do?