Selenium Test Suites
A Selenium Test Suite is a collection of Selenium Test Cases. A Test Suite is a set of test cases part of a scenario or process which we want to be tested. A group of test cases may also contain prerequisite states or steps, and descriptions of the following tests.
Creating Selenium Test Suites
To create a new Selenium Test Suite following the below steps:
Click on the Selenium Test Suites tab. Press the "New" button:
Enter a name for the Test Suite and optionally associate the test script to a Test Script (Copado Change Management)
Pre/post-code execution can also be added. This can be used for test creation or data deletion after completion of the Selenium Test Run. It is a good practice to delete unnecesary data after running our Test Suite.
Press "Save" button and click on “Add/Remove Test Cases”. This page allows users to add, re-order and remove test cases from the test suite, and also select the dataset to be executed, if needed. For example, if you have one Test Case with 3 different datasets, you can add that Test Case 3 times to your Test Suite, each one of them with a different dataset. Re-order them using drag and drop.
Running Selenium Test Suites
In the same way of Selenium Test Cases, Selenium Test suites are intended to be runned. For this purpose, Copado offers two ways:
- Quick run: With this option, Copado creates automatically a test run for this test suite, taking the specific quick Run Selenium settings.
Create a Test Run and relate it with our test suite.
Take a look at Selenium Test Runs to learn how to configure and proceed with the two ways before.
Apart from the list of test cases containing, Selenium Test Suites screen also shows the Selenium Test Runs related and the results of every execution,