This is simple example of test automation web framework.
- Java 15+
- Maven
- Selenium 4.0
- jUnit5
- Cucumber
- Chrome/Firefox
- BrowserStack
Install the most important package manager for MAC
-
Install Brew
Install latest JAVA version
-
Install Latest Java
Install latest MAVEN version
-
Install Maven
Install Chromedriver and automatically put it to PATH
-
Install Chromedriver
Default test will run on Chrome
- Run all
mvn clean test
- Run by tag
mvn clean test -Dcucumber.filter.tags="@Smoke"
- Run on different browser
mvn clean test -Dbrowser='firefox'
- Run on mobile emulator (Nexus 7)
mvn clean test -Dbrowser='chrome_mobile'
Also check Makefile for Browserstack