Cucumber Features

Expand All

Collapse All

# Name             : Gem Search
# Description : covers scenarios under RubyGem search
# Author : Chandra sekaran
# Important Note : To run this feature add APP=RUBYGEMS in cucumber run command
# Cucumber run cmd : cucumber -p desktop_dev_chrome -t @rq_rubygems APP=RUBYGEMS
# : you can use any desktop browser profile in -p
# Rake run cmd : rake desktop_rubygems_search
@rq_rubygems

Feature: Fetch the details of a gem from rubygems.org having the maximum downloads

Background Login to rubygems.org website

  1. Given the user is on the rubygems.org home page
    step_definitions/desktop/gem_search.rb:5
  2. And the user is signed in
    step_definitions/desktop/gem_search.rb:10
  3. Sign in successful
@tc_02features/desktop/rubygems_search/gem_search.feature:18

Scenario: Find a given static gem name in rubygems.org web site

  1. When the user enters "watir" in search textbox and press enter
    step_definitions/desktop/gem_search.rb:20
  2. Then the user should be redirected to gem list page of "watir" gem
    step_definitions/desktop/gem_search.rb:25
  3. When the user selects the gem having the maximum downloads
    step_definitions/desktop/gem_search.rb:30
  4. The gem 'watir-webdriver 0.7.0' has the maximum downloads
  5. Then the user should be shown the gem description page
    step_definitions/desktop/gem_search.rb:36
  6. And the user is signed out
    step_definitions/desktop/gem_search.rb:15
  7. Sign out successful
@tc_03features\desktop\rubygems_search\gem_search.feature:26

Scenario: Find a given gem from global test data file in rubygems.org web site

  1. When the user searches for a gem name from test data
    step_definitions/desktop/gem_search.rb:41
  2. Sign in successful
  3. And the user selects the gem having the maximum downloads
    step_definitions/desktop/gem_search.rb:30
  4. The gem 'actionmailer-ironruby 0.2.0' has the maximum downloads
  5. Then the user should be shown the gem description page
    step_definitions/desktop/gem_search.rb:36
  6. And the user is signed out
    step_definitions/desktop/gem_search.rb:15
  7. Sign out successful