Skip to content

Selenium Cucumber Junit Template, Compatible with Maven or Gradle

Notifications You must be signed in to change notification settings

sridharbandi/Selenium-Cucumber-Junit-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Cucumber Junit Template with Gradle or Maven as build tools to getting started with

To automate Selenium Webdriver binaries management in runtime am using webdrivermanager, an excellent library by Boni García

How to use?

Create the Page Objects of your Web application under pageobjects package and call those Page Objects in your step definitions under stepdefinitions package (Sample Page Objects, Step definitions, Testrunner & Feature file included in this template)

How to run?

Issue the below commands in project root directory

Gradle
./gradlew test

By default it runs in Chrome browser, you can specify which browser to use as well

./gradlew test -Dbrowser=firefox

If you're on Windows replace ./gradlew with gradlew.bat

Currently supported browsers are

  • chrome
  • firefox
  • edge
  • ie
  • opera
Maven
mvn test

Or

mvn test -Dbrowser=firefox

Feel free to modify it to your own needs :)

Releases

No releases published

Packages

No packages published