How to run scripts in a specific browser with Maven

mvn test is the Maven command for running test scripts in command prompt (or Jenkins). It runs all test scripts from the test class in the browser defined in the project. But what if you would like to specify the browser name as a parameter of the command? Such as mvn test -Dbrowser=chrome or mvn…

Run Test Automation Scripts in Command Prompt With MAVEN

While developing the Selenium WebDriver test automation scripts, the scripts are executed within Eclipse. But as soon as the scripts work as expected, you may want to make the scripts available to other team members. Like other manual testers. Or developers. You may also want to run the test scripts automatically as scheduled jobs. Or…