Cucumber
QA & Testing Related with Cucumber.
This is a compilation of useful info found online.
INSTALLATION STEPS on Local or VM
- see Cucumber-Installation
- for GIT integration, see: Cucumber-Git
- for Capybara, see: Cucumber Capybara
- sample code and files
SELENIUM
Videos of installation: very useful!
- http://qastuffs.blogspot.com/p/steps-by-steps-guide-to-setup-cucumber.html?_sm_au_=iVV0LHrq76049rP9
- http://qastuffs.blogspot.com/p/steps-by-steps-guide-to-setup-cucumber.html?_sm_au_=iVVq4VrDPvFjSWDF
- https://www.youtube.com/watch?v=P53e6ER2njk
Working with GEMS
- http://code.tutsplus.com/tutorials/ruby-for-newbies-working-with-gems–net-18977
- http://code.tutsplus.com/tutorials/ruby-for-newbies-testing-web-apps-with-capybara-and-cucumber–net-21446
Desktop Web Automation Using Selenium-Cucumber-Ruby
- https://seleniumcucumber.info/desktop/
- INSTRUCTIONS NOT COMPLETE or Not Clear!
Pre-requisites
- Mandatory
- Ruby (1.9.3 and above) – Download
- Devkit – Download
- Gem – selenium-cucumber
- Optional
- Or download selenium-cucumber bundle where you will find all the above requirements.
INSTALLATION GUIDE WITH IMAGES
Ruby on Rails
INSTALLING CUCUMBER AND CAPYBARA IN WINDOWS 8 – 64 BIT OS
- https://sqaengine.wordpress.com/2014/05/14/installing-cucumber-and-capybara-in-windows-8-64-bit-os/
- http://help.rubygems.org/discussions/questions/82-how-to-install-ruby-devkit-and-cucumber-on-windows-without-internet-connection
- https://sakib.wordpress.com/2015/10/31/simple-cucumber-installation-in-windows-7/
THIS IS THE INSTALLATION STEPS USED
see also: https://cucumber.io/docs/reference/ruby
Absolute beginner instructions
- http://www.paradigmitconsulting.com/setting-up-cucumber-on-windows-for-absolute-beginners/
- http://www.paradigmitconsulting.com/setting-up-cucumber-on-osx-for-absolute-beginners/
Hassle-Free Start Guide for Ruby, Cucumber, and Capybara on Windows
- http://www.swtestacademy.com/ruby-cucumber-and-capybara-on-windows/
Complete setup guide for Ruby, Cucumber and Watir or Selenium webdriver on Windows
Step 1 – Install Ruby
Step 2 – Extract DevKit
Explanation/details:
Make sure you create a new folder, it extracts the lib and bin folders to that location, there is no root folder such as DevKit for example.
DevKit is needed because Cucumber requires the json gem. Without installing DevKit you would get the error:
ERROR: Error installing cucumber:
The ‘json’ native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from ‘http://rubyinstaller.org/downloads‘ and follow the instructions
at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit‘
Step 3 – Install DevKit
Goto the root folder where you extracted DevKit and execute the commands:
Step 4 – Install the required gems
Explanation/details:
- Installing rspec because it is a commonly used gem.
- win32console supports colored output on the dos command line when executing the tests!
- watir-webdriver requires selenium webdriver, so that one will be installed always. If you only want selenium-webdriver, just do gem install selenium-webdriver instead.
When creating an install_gems.bat file including these commands, make sure to use the CALL command
Step 5 – Start with your Cucumber and Webdriver setup
New to cucumber? Have a look at our Web Testing With Cucumber blog!
- http://www.pmamediagroup.com/2009/04/tutorial-how-to-install-setup-cucumber/
- https://github.com/cucumber/cucumber/wiki/Install
- http://www.cheezyworld.com/2010/12/21/cucumber-on-windows/
- http://www.cheezyworld.com/2011/08/09/running-your-cukes-in-jenkins
- http://agileforall.com/getting-started-with-ruby-cucumber-and-capybara-on-windows/
- https://cukes.info/docs/reference/jvm#installation
Other docs: see https://cukes.info/docs#installation
Getting Started with Ruby, Cucumber, and Capybara on Windows
- http://agileforall.com/getting-started-with-ruby-cucumber-and-capybara-on-windows/
- http://seleniumcucumber.wordpress.com/
OTHER INSTALLATION GUIDES
- http://qastuffs.blogspot.com/p/steps-by-steps-guide-to-setup-cucumber.html?_sm_au_=iVVq4VrDPvFjSWDF
- https://github.com/giozom/Cucumber-Test-Framework-for-Newbies
Setting up Cucumber on MAC OS X
- http://www.paradigmitconsulting.com/setting-up-cucumber-on-osx/
- http://digitalab.org/2014/03/install-cucumber-mac/
- https://mayxu.wordpress.com/2012/04/17/complete-mac-setup-guide-for-rubycucumberwatirselenium-12/
- https://sifranklin.wordpress.com/2014/05/23/getting-started-with-ruby-cucumber-and-capybara/
Gherkin and Behat/PHP
Javascript Implementation (to research)
- CucumberJS
- https://www.chaijs.com/
- https://www.chaijs.com/guide/
- https://www.sitepoint.com/how-to-test-your-javascript-with-selenium-webdriver-and-mocha/
- https://blog.testproject.io/2018/03/08/selenium-javascript-best-practices/