GithubHelp home page GithubHelp logo

bdd-tests's Introduction

"Selenium" BDD with "Cucumber" and "Serenity"

  • This project is an example of how to setup and write selenium tests using BDD approach with Serenity framework
  • How to create jenkins pipeline

Project Description:

  • Project setup with Selenium WebDriver and windows 10
  • serenity.version: 1.8.3
  • serenity.cucumber.version: 1.6.6
  • Makes use of Page Objects.
  • Written in Java with Junit, Cucumber & Maven
  • Can run test scripts in parallel

Setup:

  • Install Java 8
  • Install Maven Maven
  • "mvn archetype:generate -Dfilter=net.serenity-bdd:serenity-cucumber-archetype" to setup project from scratch
  • Install "natural plugin" using eclipse marketplace

Run tests:

  • mvn clean verify -P api OR mvn clean verify -P web OR mvn clean verify -Dwebdriver.driver=chrome - Run test scripts using Chrome browser.

View HTML Report

  • HTML report will be generated once execution finish -bdd-cucumber\target\site\serenity
  • Open Index.html in browser to see the reports

Run tests in parallel:

  • TBD

Setting jenkins pipeline for Selenium(Cucumber serenity project)

  • This project is example how can setup jenkins pipeline for selenium project step by step

Setup

  • Download latest jenkins.war Jenkins download link
  • Start jenkins.jar on default port using command 'java -jar jenkins.war'
  • Start jenkins.jar on specific port using command 'java -jar jenkins.war --httpPort=portnumber'
  • Open localhost:portnumber and login using displayed insructions on browser screens
  • Now install all default plugin and set user & password

Installing required plugins

  • Navigate to jenkins home and click on "Manage jenkins" tab
  • Now click on "Manage plugins"
  • In "Available plugins" tab, perform serach for "Pipeline Maven Integration" and install
  • Follwing above steps, install "HTML Publisher" plugin

Setting up Java-jdk and maven

  • Navigate to "Manage jenkins->Global Tool configuration"
  • Configure java-jdk & maven with java8 & maven_3_5_0 name respectivelly

Global configuration for Github

  • Navigate to "Manage jenkins->Configure System" and in Github section configure github credentials

Creating jenkins pipe line

Running created pipeline

  • Click build now and execution will be started
  • Pipeline steps will be displayed on jenkins screen
  • Once execution finish, Click on "HTML Report" tab to view serenity HTML Reports

bdd-tests's People

Contributors

narottamc avatar narottamgla avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

divyasrirangam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.