Manage Selenium Tests
With this new Visualforce page, you will be able to manage the creation of different Selenium test groups from a very simple UI, where you can select the suite you want to execute and the org credentials with which you want to run those suites.
Then, all these groups will be visible from the Promotion page, where you can monitor the overall status of your Selenium tests in the user story or the regression tests in the source and destination environments.
User Story Selenium Tests
You can link a Selenium test to a user story by clicking on Manage Selenium Tests:
Selenium test runs added from the user story will be tied to that user story in the User Story Selenium Tests junction object and will be of a User Story Test type.
Regression Selenium Tests
You can link a Selenium test to a pipeline by clicking on Manage Regression Tests in the Pipeline’s Details page:
Selenium tests added from a pipeline will be of a Regression Test type. When you click on Manage Regression Tests, the following grid will be displayed:
The page will show you all the available test suites in your organization and all the available environments (and their org credentials) for the current flow (user story or pipeline).
Match suites and org credentials as desired and Copado will create Selenium test groups and Selenium test runs. Once these are executed, you can monitor the outcomes both from the User Story and the Promotion layouts.
Copado will try to populate the Selenium settings based on the previous Selenium test groups created by the running user.
Promotion Selenium Tests
The Promotion page displays the regression tests of the source and the destination environments as well as the user story tests linked to the selected user stories in the promotion. The test results will be displayed in the Selenium Test Results Summary section, and also in the Promotion Selenium Tests related list.
In the Promotion Selenium Tests related list the following actions will take place:
- If you click on Run source regression, all the regression tests in the source environment will be run.
- If you click on Run destination regression, all the regression tests in the destination environment will be run.
- If you click on Run source user story, all the user story tests in the source environment will be run.
- If you click on Run destination user story, all the user story tests in the destination environment will be run.