Preparing for Cucumber Tests - HeHStudy/surveyor GitHub Wiki
##install chrome driver for cucumber tests
- get chromedriver that works with your version of chrome browser. See http://chromedriver.storage.googleapis.com/2.9/notes.txt to find version driver you need then download version from http://chromedriver.storage.googleapis.com/index.html
- unzip [chromedriver...].zip
- cp chromedriver /usr/bin/chromedriver
- chmod 777 /usr/bin/chromedriver
##Prepare testbed and run cucumber
$ bundle exec rake testbed
$ bundle exec rake cucumber
##Run specific cucumber tests Choose the feature set you want to run. Such as validations...
rake cucumber FEATURE=features/validations.feature
or one test in a feature set, such as "creating a question with a time answer". 73 below is the line number in the file.
rake cucumber FEATURE=features/validations.feature:73
pause after each step in a scenario by inserting @pause in the feature file like so:
@javascript @pause
Scenario: Creating a mandatory pick-any question selecting one