andisan86 / seleniumjava

Basic source code for learning web automation tests using Selenium. This repository is intended to be extensible, yet able to run tests quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SeleniumJava

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

First time run

  1. Clone this repo
  2. In project root directory, run this command mvn clean test. This command should download all necessary plugins and run unit tests

How to run Selenium tests

  1. Right-click on src/test/resources/testcases/TestGoogleHomePage.xml > Run as TestNG if in Eclipse or just Run in IntelliJ
  2. Observe Chrome browser being launched and execute test steps
  3. Test results can be seen in test-output directory

Possible extensions

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...

About

Basic source code for learning web automation tests using Selenium. This repository is intended to be extensible, yet able to run tests quickly.

License:MIT License


Languages

Language:Java 100.0%