Skip to content

a basic setup of Cucumber and (Selenium) Webdriver, to learn how to get started.

Notifications You must be signed in to change notification settings

fvanderwielen/cucumber-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is a basic setup of Cucumber and (Selenium) Webdriver, to learn how to get started.

Installation

  1. You will need a latest stable version of Git Node (with NPM, which comes with by default), and Firefox: https://nodejs.org/en/ https://www.mozilla.org/en-US/exp/firefox/new/
  2. check out this repository
  3. run npm install
  4. install the appropriate webdriver executable:
    1. download the (zipped) gecko webdriver executable to somewhere, easiest is to download it to the folder of this project, download link: https://github.com/mozilla/geckodriver/releases/tag/v0.26.0
    2. make sure that the executable can be found on the path when running the cucumber test, easiest is to unzip the executable in the root filder of this project
    3. you should now have a file called geckodriver.exe next to this readme
  5. you should now be ready to go to run the test

Usage

This is a standard cucumber package, so it runs as one, which means running the following command from a command linke prompt

On Windows:

.\node_modules\.bin\cucumber-js

On UNIX-like systems:

./node_modules/.bin/cucumber-js

Alternatively, let NPM run it for you, I have added this command as a script:

npm run test

About

a basic setup of Cucumber and (Selenium) Webdriver, to learn how to get started.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published