Basic source code for learning web automation tests using Selenium. This repository is intended to be extensible, yet able to run tests quickly.
Requirements:
- Eclipse/IntelliJ
- Git
- Java JDK 8
- Maven
- Clone this repo
- In project root directory, run this command
mvn clean test
. This command should download all necessary plugins and run unit tests
- Right-click on
src/test/resources/testcases/TestGoogleHomePage.xml
>Run as TestNG
if in Eclipse or justRun
in IntelliJ - Observe Chrome browser being launched and execute test steps
- Test results can be seen in
test-output
directory
Some of extensions which many testers do:
- Better reporting and statistics using third-party library like ExtentReport
- Behavior Driven Development tests using Cucumber BDD framework
- Scaling tests using SeleniumGrid
- API testing/scaffolding using RestAssured
- Packaging source code into executable JAR for easy deploy-and-execute
- etc...