Skip to content

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

Notifications You must be signed in to change notification settings

anumsh/Cucumber-Ruby-Selenium-Sample-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Cucumber-Ruby-Selenium Sample Project

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

Test Environment

  • Cucumber Framework
  • Ruby Language
  • RubyMine IDE
  • Selenium Webdriver

How to run the project

  • 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'

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published