[

{
  "comments":[
    {
      "value":"# Name             : Gem Search",
      "line":1
    },
    {
      "value":"# Description      : covers scenarios under RubyGem search",
      "line":2
    },
    {
      "value":"# Author           : Chandra sekaran",
      "line":3
    },
    {
      "value":"# Important Note   : To run this feature add APP=RUBYGEMS in cucumber run command",
      "line":5
    },
    {
      "value":"# Cucumber run cmd : cucumber -p desktop_dev_chrome -t @rq_rubygems APP=RUBYGEMS",
      "line":6
    },
    {
      "value":"#                  : you can use any desktop browser profile in -p",
      "line":7
    },
    {
      "value":"# Rake run cmd     : rake desktop_rubygems_search",
      "line":8
    }
  ],
  "keyword":"Feature",
  "name":"Fetch the details of a gem from rubygems.org having the maximum downloads",
  "line":11,
  "description":"",
  "tags":[
    {
      "name":"@rq_rubygems",
      "line":10
    }
  ],
  "id":"fetch-the-details-of-a-gem-from-rubygems.org-having-the-maximum-downloads",
  "uri":"features\\desktop\\rubygems_search\\gem_search.feature",
  "elements":[
    {
      "keyword":"Background",
      "name":"Login to rubygems.org website",
      "line":13,
      "description":"",
      "type":"background",
      "steps":[
        {
          "keyword":"Given ",
          "name":"the user is on the rubygems.org home page",
          "line":14,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:5"
          },
          "result":{
            "status":"passed",
            "duration":1024669000
          }
        },
        {
          "keyword":"And ",
          "name":"the user is signed in",
          "line":15,
          "output":[
            "Sign in successful"
          ],
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:10"
          },
          "result":{
            "status":"passed",
            "duration":4005429999
          }
        }
      ]
    },
    {
      "keyword":"Scenario",
      "name":"Find a given static gem name in rubygems.org web site",
      "line":18,
      "description":"",
      "tags":[
        {
          "name":"@tc_02",
          "line":17
        }
      ],
      "id":"fetch-the-details-of-a-gem-from-rubygems.org-having-the-maximum-downloads;find-a-given-static-gem-name-in-rubygems.org-web-site",
      "type":"scenario",
      "steps":[
        {
          "keyword":"Given ",
          "name":"the user is on the rubygems.org home page",
          "line":14,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:5"
          },
          "result":{
            "status":"passed",
            "duration":0
          }
        },
        {
          "keyword":"And ",
          "name":"the user is signed in",
          "line":15,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:10"
          },
          "result":{
            "status":"passed",
            "duration":0
          }
        },
        {
          "keyword":"When ",
          "name":"the user enters \"watir\" in search textbox and press enter",
          "line":19,
          "match":{
            "arguments":[
              {
                "offset":17,
                "val":"watir"
              }
            ],
            "location":"step_definitions/desktop/gem_search.rb:20"
          },
          "result":{
            "status":"passed",
            "duration":1336580000
          }
        },
        {
          "keyword":"Then ",
          "name":"the user should be redirected to gem list page of \"watir\" gem",
          "line":20,
          "match":{
            "arguments":[
              {
                "offset":51,
                "val":"watir"
              }
            ],
            "location":"step_definitions/desktop/gem_search.rb:25"
          },
          "result":{
            "status":"passed",
            "duration":1829143000
          }
        },
        {
          "keyword":"When ",
          "name":"the user selects the gem having the maximum downloads",
          "line":21,
          "output":[
            "The gem 'watir-webdriver 0.7.0' has the maximum downloads"
          ],
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:30"
          },
          "result":{
            "status":"passed",
            "duration":4497396000
          }
        },
        {
          "keyword":"Then ",
          "name":"the user should be shown the gem description page",
          "line":22,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:36"
          },
          "result":{
            "status":"passed",
            "duration":14771058000
          }
        },
        {
          "keyword":"And ",
          "name":"the user is signed out",
          "line":23,
          "output":[
            "Sign out successful"
          ],
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:15"
          },
          "result":{
            "status":"passed",
            "duration":2684032000
          }
        }
      ]
    },
    {
      "keyword":"Scenario",
      "name":"Find a given gem from global test data file in rubygems.org web site",
      "line":26,
      "description":"",
      "tags":[
        {
          "name":"@tc_03",
          "line":25
        }
      ],
      "id":"fetch-the-details-of-a-gem-from-rubygems.org-having-the-maximum-downloads;find-a-given-gem-from-global-test-data-file-in-rubygems.org-web-site",
      "type":"scenario",
      "steps":[
        {
          "keyword":"Given ",
          "name":"the user is on the rubygems.org home page",
          "line":14,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:5"
          },
          "result":{
            "status":"passed",
            "duration":1052740000
          }
        },
        {
          "keyword":"And ",
          "name":"the user is signed in",
          "line":15,
          "output":[
            "Sign in successful"
          ],
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:10"
          },
          "result":{
            "status":"passed",
            "duration":3914562000
          }
        },
        {
          "keyword":"When ",
          "name":"the user searches for a gem name from test data",
          "line":27,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:41"
          },
          "result":{
            "status":"passed",
            "duration":1382356000
          }
        },
        {
          "keyword":"And ",
          "name":"the user selects the gem having the maximum downloads",
          "line":28,
          "output":[
            "The gem 'actionmailer-ironruby 0.2.0' has the maximum downloads"
          ],
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:30"
          },
          "result":{
            "status":"passed",
            "duration":2401950000
          }
        },
        {
          "keyword":"Then ",
          "name":"the user should be shown the gem description page",
          "line":29,
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:36"
          },
          "result":{
            "status":"passed",
            "duration":26368692000
          }
        },
        {
          "keyword":"And ",
          "name":"the user is signed out",
          "line":30,
          "output":[
            "Sign out successful"
          ],
          "match":{
            "location":"step_definitions/desktop/gem_search.rb:15"
          },
          "result":{
            "status":"passed",
            "duration":2772098000
          }
        }
      ]
    }
  ]
}

]