Cucumber Features

Expand All

Collapse All

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

Feature: Google for a given input string

@tc_01features\desktop\google_search\google_search.feature:14

Scenario: Search for "bet365" in google and open "bet365.com" website

  1. Given the user is on the Google home page
    step_definitions/desktop/google_search_steps.rb:5
  2. When the user enters "bet365" in the search textbox and clicks the search button
    step_definitions/desktop/google_search_steps.rb:10
  3. Search completed successfully for string 'bet365'
  4. Then the user should be shown the search results
    step_definitions/desktop/google_search_steps.rb:15
  5. Successfully found search results
  6. When the user clicks the link for bet365
    step_definitions/desktop/google_search_steps.rb:24
  7. Bet365.com link clicked successfully
  8. Successfully clicked Bet365.com link
  9. Then the user should be redirected to the bet365.com website
    step_definitions/desktop/google_search_steps.rb:30
  10. Successfully redirected to Bet365.com page