As part of explaining all the new features in the latest Selenium IDE, I will explain filtering the Selenium IDE tests and executing only the filtered tests using Command Line Runner in Selenium IDE.
In Selenium IDE, if we have to filter the tests under a Test Suite say Smoke and then execute them, we need to provide the Suite Name in the command line runner. All the tests under the provided suite name will be executed and the tests under other suites won’t be executed.
In this article, I will explain practically the steps for filtering the Selenium IDE tests under a suite and execute them using Command Line Runner (i.e. SIDE Runner).
Let’s get started.
New Selenium IDE – Filtering Tests using Command Line Runner
Follow the below steps for filtering and executing the Selenium IDE tests under a suite using the Command Line Runner (i.e. SIDE Runner)
1) Create a Project say ‘ProjectA’ in Selenium IDE and add two-Test Suites ‘Smoke’ and ‘Regression’. Under Test Suite ‘Smoke’, add a Test say ‘TestA’ and under Test Suite ‘Regression’, add a Test say ‘TestB’ as shown below:
Save the project having this Test into any folder in your machine as shown below:
2) If not configured, configure the Command Line Runner (i.e. SIDE Runner) using the steps provided at the below link:
3) We can execute the following command in the command line to filter and execute the Tests under Test Suite ‘Smoke’
selenium-side-runner --filter Smoke C:\Users\arunm\Desktop\Projs\ProjectA.side
Observe that the only Test under Test Suite ‘Smoke’ i.e. TestA got filtered and executed as shown below:
Here concludes the practical demonstration of filtering and execution of Tests under a Test Suite using Command Line Runner.
In the next article, I will practically demonstrate another new feature in the latest Selenium IDE. (new features in the latest Selenium IDE)
- > Check complete Selenium Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning 🙂
On a mission to contribute to the Software Testing Community in all possible ways.