This is sample project that how we can write test cases/scenario in cucumber and implement the test case using Ruby Language using selenium Webdriver. Here we are just one scenario: main page of facebook website
- Cucumber Framework
- Ruby Language
- RubyMine IDE
- Selenium Webdriver
-
open terminal (cmd) and run the following commands -gem install selenium-webdriver -v 2.53.0
- gem install cucumber
- gem install rails
-
Download Mozilla Firefox too to run this project
-
clone the repository from terminal in any folder using git clone https://github.com/anumsh/Cucumber-Ruby-Selenium-Sample-Project.git
-
open the IDE(RubyMine)
-
open the project using file tab--> open --> select project
-
select the language - Ruby from preferences --> language and framework
-
You can run the project in 2 ways Using terminal :
- cucumber -t @fb
OR
- go to instructions.feature file
- right click and clickon 'Run Scenario:LogIn'