<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html lang=‘en’ xml:lang=‘en’ xmlns=‘www.w3.org/1999/xhtml’>

<head>
  <title>step_definitions/desktop/google_search_steps.rb</title>
  <link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
  <link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
  <script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
  <h1>Cukes C0 Coverage Information - Simploco - RCov</h1>
  <h2>step_definitions/desktop/google_search_steps.rb</h2>
  <div class="report_table_wrapper">
    <table class='report' id='report_table'>
      <thead>
        <tr>
          <th class="left_align">Name</th>
          <th class="right_align">Total Lines</th>
          <th class="right_align">Lines of Code</th>
          <th class="left_align">Total Coverage</th>
          <th class="left_align">Code Coverage</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td class="left_align"><a href="step_definitions-desktop-google_search_steps_rb.html">step_definitions/desktop/google_search_steps.rb</a></td>
          <td class='right_align'><tt>36</tt></td>
          <td class='right_align'><tt>17</tt></td>
          <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
    <div class="percent_graph">
      <div class="covered" style="width:100px"></div>
      <div class="uncovered" style="width:0px"></div>
    </div></td>
          <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
    <div class="percent_graph">
      <div class="covered" style="width:100px"></div>
      <div class="uncovered" style="width:0px"></div>
    </div></td>
        </tr>
      </tbody>
    </table>
  </div>
  <h3>Key</h3>
  <div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
  <h3>Coverage Details</h3>
  <table class="details">
    <tbody>
      <tr class="inferred">
        <td><pre><a name="line2">2</a> # Description    : step definitions for steps related to Google search</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line3">3</a> # Author         : Chandra sekaran</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line4">4</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line5">5</a> # Given the user is on the Google home page</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line6">6</a> Given /^the user is on the Google home page$/ do</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line7">7</a>   visit(CUKES::Google_HomePage)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line8">8</a> end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line9">9</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line10">10</a> # When the user enters &quot;bet365&quot; in the search textbox and clicks the search button</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line11">11</a> When /^the user enters &quot;(.*?)&quot; in the search textbox and clicks the search button$/ do |search_text|</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line12">12</a>   on(CUKES::Google_HomePage).search_for_text(search_text)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line13">13</a> end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line14">14</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line15">15</a> # Then the user should be shown the search results</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line16">16</a> Then /^the user should be shown the search results$/ do</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line17">17</a>   on(CUKES::Google_HomePage) do |page|</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line18">18</a>     page.wait_until(20, &quot;Could not find &#39;result div&#39; within 20s&quot;) { page.div_result_element.visible? }</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line19">19</a>     expect(page.div_result_element.visible?).to be true</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line20">20</a>     $log.success(&quot;Successfully found search results&quot;)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line21">21</a>   end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line22">22</a> end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line23">23</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line24">24</a> # When the user clicks the link for bet365</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line25">25</a> When /^the user clicks the link for bet(\d+)$/ do |arg1|</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line26">26</a>   on(CUKES::Google_HomePage).click_bet365</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line27">27</a>   $log.success(&quot;Successfully clicked Bet365.com link&quot;)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line28">28</a> end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line29">29</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line30">30</a> # Then the user should be redirected to the bet365.com website</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line31">31</a> Then /^the user should be redirected to the bet(\d+)\.com website$/ do |arg1|</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line32">32</a>   on(CUKES::Google_HomePage) do |page|</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line33">33</a>     page.wait_for_page_load</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line34">34</a>     expect(page.title.include? &quot;bet365 - Sports Betting&quot;).to be true</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line35">35</a>     $log.success(&quot;Successfully redirected to Bet365.com page&quot;)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line36">36</a>   end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line37">37</a> end</pre></td>
      </tr>
    </tbody>
  </table>
  <p>Generated on 2015-05-08 10:40:30 +0530 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>

</html>