Skip to content

TomBecketBelda/Seleniumtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation with BDD Testing

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published