A basic test automation framework using Java, Selenium, and TestNG
The sample tests in this framework use Parabank as a test environment
Each test class can contain one or more tests
- Tests in the same class will reuse the same browser to save time
To run tests:
- label tests with "group" annotation:
- such as "@Test(groups={'smoke'})"
- in Terminal, run the following commands:
- mvn clean test -Dgroups=group_name
- mvn clean test -Dtest=class_name
- mvn clean test -Dtest=class_name#testMethod
- optional Maven command-line parameters:
- -DtestBrowser=browser_name
- currently 'Chrome' or 'Edge'
- -DtestBrowser=browser_name