Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sridharbandi/selenium-cucumber-junit-template

Selenium Cucumber Junit Template, Compatible with Maven or Gradle
https://github.com/sridharbandi/selenium-cucumber-junit-template

cucumber-junit cucumber-jvm gradle maven selenium-webdriver webdrivermanager

Last synced: 20 days ago
JSON representation

Selenium Cucumber Junit Template, Compatible with Maven or Gradle

Awesome Lists containing this project

README

        

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

To automate [Selenium Webdriver](https://docs.seleniumhq.org/projects/webdriver/) binaries management in runtime am using [webdrivermanager](https://github.com/bonigarcia/webdrivermanager), an excellent library by [Boni García](https://github.com/bonigarcia)

### 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
```javascript
./gradlew test
```
By default it runs in Chrome browser, you can specify which browser to use as well
```javascript
./gradlew test -Dbrowser=firefox
```
>If you're on Windows replace `./gradlew` with `gradlew.bat`

Currently supported browsers are
* chrome
* firefox
* edge
* ie
* opera

##### Maven
```javascript
mvn test
```
Or
```javascript
mvn test -Dbrowser=firefox
```
> Feel free to modify it to your own needs :)