This is a sample test which does the following
- Opens bbc.com on browser
- Navigates to Sports section
- Clicks the feature artcile and verifies the article was indeed opened.
- JDK 8
- Maven
- Browser Drivers (see section below)
brew install selenium-server-standalone
Make sure the browser driver is on your path.
clone the repo and run mvn clean -Dbrowser=chrome -DremoteDriver=false -Dgroups={groupName} verify
mvn clean -Dbrowser=chrome -DremoteDriver=false -Dgroups=BBCSportStory verify
mvn clean -DgridURL=<URL> -Dbrowser=chrome -DremoteDriver=true -Dgroups=BBCSportStory verify
After execution navigate to /target/surefire-reports for detailed execution report.