Giter Site home page Giter Site logo

poc-cucumber-selenium's Introduction

Automation with BDD Testing

cd /home/odin/Downloads/learnmake-cucumber-selenium-master

mvn clean test -DisLocal=true -DisHeadless=false -Dwebdriver.gecko.driver=/home/odin/Downloads/geckodriver

Learn-Make BDD Automation Tests using Cucumber, Selenium, Java

LEARN & MAKE

Reading

Some useful links to advance your learning:

Setup your DEV env

Getting up and running for your dev-env is as easy as counting 1 to 4 :-)

  1. Make sure you have installed Java 8 version 8, Maven version 3.3.1 or higher.

  2. Clone this repo and verify compile

    git clone https://github.com/CapgeminiNorway/learnmake-cucumber-selenium  
    cd path/to/learnmake-cucumber-selenium  
    mvn clean compile  
    
  3. Run all tests and enjoy automation

    mvn clean test -DisLocal=true -DisHeadless=false
    

    to see test results are generated, just open this learnmake-cucumber-selenium/target/cucumber/index.html in your browser

    optional params:

    • when running inside Jenkins environment, you must append -DGITHUB_TOKEN=...public_access_token...
    • if you want to forcefully use custom webdrivers (e.g. specific versions), then just append:
      -Dwebdriver.gecko.driver=wdm_local/geckodriver -Dwebdriver.chrome.driver=wdm_local/chromedriver
  4. Run inside Intellij IDEA
    Import as standard Maven project.
    Then, set 'Cucumber java' defaults of this project as:

    • Main class: cucumber.api.cli.Main
    • Glue: learnmake.automation.stepdefs
    • feature folder path: point to folder where feature files are
    • VM options: (copy the same ones from mvn example )

    p.s. Intellij has a bug with Cucumber, here's a workaround
    If you remove --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvm2SMFormatter from program arguments in the run configuration it will work again. You'll have to do this until InteliJ fixes their plugin.

Together We DO!

Please contribute with comments, pull-requests, etc.

poc-cucumber-selenium's People

Contributors

thiagopt avatar

Watchers

 avatar

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.