Cucumber Features

Expand All

Collapse All

# Name             : Google Search
# Description : covers scenarios under Google search on mobile
# Author : Chandra sekaran
# Important Note : To run this feature add APP=GOOGLE in cucumber run command
# Cucumber run cmd : cucumber -p mobile_dev_chrome_device -t @rq_mobile_google APP=GOOGLE
# : you can use any mobile browser profile in -p
# Rake run cmd : rake mobile_google_search
@rq_mobile_google

Feature: Google for a given input string

@tc_05features\mobile\google_search\mobile_google_search.feature:14

Scenario: Search for "rubygems" in google and open "rubygems.org" website

  1. Given the user is on the mobile Google home page
    step_definitions/mobile/mobile_google_search_steps.rb:5
  2. When the user searches for "rubygems"
    step_definitions/mobile/mobile_google_search_steps.rb:10
  3. Search completed successfully for string 'rubygems'
  4. Then the user should be shown search results
    step_definitions/mobile/mobile_google_search_steps.rb:15
  5. Successfully found search results
  6. When the user clicks the link for mobile rubygems
    step_definitions/mobile/mobile_google_search_steps.rb:24
  7. rubygems link clicked successfully
  8. Successfully clicked rubygems.org link
  9. Then the user should be redirected to the mobile rubygems.org website
    step_definitions/mobile/mobile_google_search_steps.rb:30
  10. Successfully redirected to rubygems.org page