- Use Windows 10 x64 and Chrome 60 x64 with defined JAVA_HOME and JDK 1.8(doesn't tested on other environments)
- Clone project from github.
- Install maven 3.5.2
For running tests use command mvn test from project directory
/test/java/com/:
- test directory - package with test-classes with test-methods inside.
- pages directory - package with page-objects files, all page-methods and locators inside.
- utils directory - package with commonly used non-test methods.
- initializations directory - package with only one file - Wrappers.java, which is used for wrapping Selenium methods.
/test:
Resources directory - resources with ChromeDriver for Windows and test-suite file TestNG.xml.
All tests presented in TestNG.xml test-suite file There are few required parameter in the test-suite file:
- uiDomain - for UI-testing domain link(prod, dev, local, etc.), "https://examplesite.com/" by default.
- apiDomain - for API-testing domain link(prod, dev, local, etc.), "https://api.examplesite.com/" by default.
- apiKey - for app access