Skip to content

Automation Testing Using Selenide, BDD (cucumber), Browserstack and Allure reports

License

Notifications You must be signed in to change notification settings

Pavelya/Selenide-cucumber-allure-reports-java

Repository files navigation

Selenide-cucumber-allure-reports-java

License GitHub issues

Automation Testing using BrowserStack, Selenide API, Cucumber and Allure reports

Behavior Driven Development (BDD) approach to write automation test scripts.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Git - Getting Started - Installing Git
Maven - Maven in 5 Minutes

How to install this project

git clone https://github.com/Pavelya/Selenide-cucumber-allure-reports-java.git  

Running the tests - command line mode

cd to project path   

Run with BrowserStack  
mvn clean install test -U -DuseBS=true -Denv=prod -Dbs_local=false -Ddevice=OS_X_Catalina_Safari "-Dcucumber.options=--tags @google --plugin io.qameta.allure.cucumberjvm.AllureCucumberJvm"  
  
Run locally with headless browser   
mvn clean install test -U "-Dcucumber.options=--tags @google --plugin io.qameta.allure.cucumberjvm.AllureCucumberJvm" 

Run locally with UI 
mvn clean install test -U -Dheadless=false "-Dcucumber.options=--tags @google --plugin io.qameta.allure.cucumberjvm.AllureCucumberJvm" 

Run locally with mobile emulaiton
mvn clean install test -U -Dheadless=false -DmobileLocal=true "-Dcucumber.options=--tags @google --plugin io.qameta.allure.cucumberjvm.AllureCucumberJvm" 

Parameters usage

Variable Description Example Default
useBS Launch test using BrowserStack true false
bs_local Use BrowsserStack local config true true
device Specify BrowserStack device iPhone_XS N/A
env Environment config to be used dev prod
headless Use headless mode true true
mobileLocal Use mobile emulation true false

Running the tests - from IDE

Run [src/test/java/com/qa/automation/BaseTest.java](src/test/java/com/qa/automation/BaseTest.java)  as maven test

Documentation

Built With

  • Browserstack - Cloud web and mobile testing platform
  • Selenium - Portable framework for testing web applications
  • Selenide - Framework for test automation powered by Selenium WebDriver
  • Maven - Dependency Management
  • Cucumber - Behavior Driven Development (BDD) library
  • Allure reports - Framework designed to create test execution reports
  • Owner API - Java properties management

Contributing

Please read CONTRIBUTING.md for details of the process for submitting pull requests.

Versioning

SemVer is in use for versioning.

Authors

Pavel Yampolsky - Skype: pavel.yampolsky.willhill Email: 2pavelya@gmail.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Thanks

Huge kudos to wonderful software that allowed to create this project:

BrowserStack
Selenide
Allure
Cucumber Maven