friendly-cukes 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/DETAILED_DESCRIPTION.md +235 -0
  4. data/Gemfile +17 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +108 -0
  7. data/Rakefile +2 -0
  8. data/bin/build-extractor +69 -0
  9. data/bin/friendly-cukes +48 -0
  10. data/friendly-cukes.gemspec +41 -0
  11. data/lib/friendly/build_extractor.rb +647 -0
  12. data/lib/friendly/cukes.rb +29 -0
  13. data/lib/friendly/cukes/framework/Gemfile +16 -0
  14. data/lib/friendly/cukes/framework/Gemfile.lock +113 -0
  15. data/lib/friendly/cukes/framework/Rakefile.rb +19 -0
  16. data/lib/friendly/cukes/framework/config/config.yml +87 -0
  17. data/lib/friendly/cukes/framework/config/cucumber.yml +49 -0
  18. data/lib/friendly/cukes/framework/coverage/.last_run.json +5 -0
  19. data/lib/friendly/cukes/framework/coverage/.resultset.json +3519 -0
  20. data/lib/friendly/cukes/framework/coverage/.resultset.json.lock +0 -0
  21. data/lib/friendly/cukes/framework/coverage/rcov/assets/0.2.3/jquery-1.3.2.min.js +19 -0
  22. data/lib/friendly/cukes/framework/coverage/rcov/assets/0.2.3/jquery.tablesorter.min.js +15 -0
  23. data/lib/friendly/cukes/framework/coverage/rcov/assets/0.2.3/print.css +12 -0
  24. data/lib/friendly/cukes/framework/coverage/rcov/assets/0.2.3/rcov.js +42 -0
  25. data/lib/friendly/cukes/framework/coverage/rcov/assets/0.2.3/screen.css +270 -0
  26. data/lib/friendly/cukes/framework/coverage/rcov/index.html +392 -0
  27. data/lib/friendly/cukes/framework/coverage/rcov/library-app_init-app_driver_rb.html +98 -0
  28. data/lib/friendly/cukes/framework/coverage/rcov/library-app_utils-data_file_names_rb.html +65 -0
  29. data/lib/friendly/cukes/framework/coverage/rcov/library-app_utils-page_utils_rb.html +533 -0
  30. data/lib/friendly/cukes/framework/coverage/rcov/library-generic-create_log_rb.html +521 -0
  31. data/lib/friendly/cukes/framework/coverage/rcov/library-generic-custom_html_report_rb.html +2522 -0
  32. data/lib/friendly/cukes/framework/coverage/rcov/library-generic-datetime_library_rb.html +296 -0
  33. data/lib/friendly/cukes/framework/coverage/rcov/library-generic-file_library_rb.html +995 -0
  34. data/lib/friendly/cukes/framework/coverage/rcov/library-generic-performance_report_rb.html +1613 -0
  35. data/lib/friendly/cukes/framework/coverage/rcov/library-generic-read_from_yml_rb.html +944 -0
  36. data/lib/friendly/cukes/framework/coverage/rcov/object_repository-desktop-gem_search_rb.html +773 -0
  37. data/lib/friendly/cukes/framework/coverage/rcov/object_repository-desktop-google_search_rb.html +230 -0
  38. data/lib/friendly/cukes/framework/coverage/rcov/object_repository-mobile-mobile_google_search_rb.html +230 -0
  39. data/lib/friendly/cukes/framework/coverage/rcov/step_definitions-desktop-gem_search_rb.html +188 -0
  40. data/lib/friendly/cukes/framework/coverage/rcov/step_definitions-desktop-google_search_steps_rb.html +167 -0
  41. data/lib/friendly/cukes/framework/coverage/rcov/step_definitions-mobile-mobile_google_search_steps_rb.html +167 -0
  42. data/lib/friendly/cukes/framework/coverage/rcov/support-browser_settings_rb.html +851 -0
  43. data/lib/friendly/cukes/framework/coverage/rcov/support-env_rb.html +242 -0
  44. data/lib/friendly/cukes/framework/coverage/rcov/support-hooks_rb.html +878 -0
  45. data/lib/friendly/cukes/framework/coverage/rcov/support-html_formatter_rb.html +230 -0
  46. data/lib/friendly/cukes/framework/features/desktop/google_search/google_search.feature +19 -0
  47. data/lib/friendly/cukes/framework/features/desktop/rubygems_search/gem_name_tc_04.yml +2 -0
  48. data/lib/friendly/cukes/framework/features/desktop/rubygems_search/gem_search.feature +37 -0
  49. data/lib/friendly/cukes/framework/features/desktop/test_data/gem_name.yml +2 -0
  50. data/lib/friendly/cukes/framework/features/mobile/google_search/mobile_google_search.feature +19 -0
  51. data/lib/friendly/cukes/framework/library/app_init/app_init.rb +13 -0
  52. data/lib/friendly/cukes/framework/library/app_utils/data_file_names.rb +2 -0
  53. data/lib/friendly/cukes/framework/library/app_utils/page_utils.rb +157 -0
  54. data/lib/friendly/cukes/framework/library/generic/app_logo_1.png +0 -0
  55. data/lib/friendly/cukes/framework/library/generic/create_log.rb +154 -0
  56. data/lib/friendly/cukes/framework/library/generic/custom_html_report.rb +852 -0
  57. data/lib/friendly/cukes/framework/library/generic/datetime_library.rb +79 -0
  58. data/lib/friendly/cukes/framework/library/generic/file_library.rb +311 -0
  59. data/lib/friendly/cukes/framework/library/generic/performance_report.rb +518 -0
  60. data/lib/friendly/cukes/framework/library/generic/read_from_yml.rb +294 -0
  61. data/lib/friendly/cukes/framework/object_repository/desktop/desktop_web_object_repo.rb +50 -0
  62. data/lib/friendly/cukes/framework/object_repository/mobile/mobile_web_object_repo.rb +22 -0
  63. data/lib/friendly/cukes/framework/page_objects/desktop/gem_search.rb +213 -0
  64. data/lib/friendly/cukes/framework/page_objects/desktop/google_search.rb +53 -0
  65. data/lib/friendly/cukes/framework/page_objects/mobile/mobile_google_search.rb +53 -0
  66. data/lib/friendly/cukes/framework/step_definitions/desktop/gem_search.rb +43 -0
  67. data/lib/friendly/cukes/framework/step_definitions/desktop/google_search_steps.rb +36 -0
  68. data/lib/friendly/cukes/framework/step_definitions/mobile/mobile_google_search_steps.rb +36 -0
  69. data/lib/friendly/cukes/framework/support/browser_settings.rb +264 -0
  70. data/lib/friendly/cukes/framework/support/env.rb +65 -0
  71. data/lib/friendly/cukes/framework/support/hooks.rb +274 -0
  72. data/lib/friendly/cukes/framework/support/html_formatter.rb +57 -0
  73. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/app_env.log +15 -0
  74. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/custom_report/detailed_report/app_logo_1.png +0 -0
  75. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/custom_report/detailed_report/desktop_gem_search.html +647 -0
  76. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/custom_report/detailed_report/desktop_google_search.html +590 -0
  77. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/custom_report/report_home.html +593 -0
  78. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/desktop_rubygems_search.log +84 -0
  79. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/report_21_05_2015-11_04_54.html +472 -0
  80. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_33/report_21_05_2015-11_04_54.json +299 -0
  81. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_37/app_env.log +15 -0
  82. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_37/desktop_google_search.log +22 -0
  83. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_37/report_21_05_2015-11_03_49.html +472 -0
  84. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-11_03_37/report_21_05_2015-11_03_49.json +155 -0
  85. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-17_28_10/app_env.log +15 -0
  86. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-17_28_10/mobile_google_search.log +22 -0
  87. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-17_28_10/report_21_05_2015-17_29_26.html +472 -0
  88. data/lib/friendly/cukes/framework/test_result/test_report_21_05_2015-17_28_10/report_21_05_2015-17_29_26.json +143 -0
  89. data/lib/friendly/cukes/version.rb +61 -0
  90. metadata +309 -0
@@ -0,0 +1,188 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
3
+ <head>
4
+ <title>step_definitions/desktop/gem_search.rb</title>
5
+ <link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
6
+ <link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
7
+ <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
8
+ <script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
9
+ </head>
10
+ <body>
11
+ <h1>Cukes C0 Coverage Information - Simploco - RCov</h1>
12
+ <h2>step_definitions/desktop/gem_search.rb</h2>
13
+
14
+ <div class="report_table_wrapper">
15
+ <table class='report' id='report_table'>
16
+ <thead>
17
+ <tr>
18
+ <th class="left_align">Name</th>
19
+ <th class="right_align">Total Lines</th>
20
+ <th class="right_align">Lines of Code</th>
21
+ <th class="left_align">Total Coverage</th>
22
+ <th class="left_align">Code Coverage</th>
23
+ </tr>
24
+ </thead>
25
+ <tbody>
26
+ <tr>
27
+ <td class="left_align"><a href="step_definitions-desktop-gem_search_rb.html">step_definitions/desktop/gem_search.rb</a></td>
28
+ <td class='right_align'><tt>43</tt></td>
29
+ <td class='right_align'><tt>17</tt></td>
30
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>79.07%</tt></div>
31
+ <div class="percent_graph">
32
+ <div class="covered" style="width:79px"></div>
33
+ <div class="uncovered" style="width:21px"></div>
34
+ </div></td>
35
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>47.06%</tt></div>
36
+ <div class="percent_graph">
37
+ <div class="covered" style="width:47px"></div>
38
+ <div class="uncovered" style="width:53px"></div>
39
+ </div></td>
40
+ </tr>
41
+ </tbody>
42
+ </table>
43
+ </div>
44
+
45
+ <h3>Key</h3>
46
+
47
+ <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>
48
+
49
+ <h3>Coverage Details</h3>
50
+
51
+ <table class="details">
52
+ <tbody>
53
+ <tr class="inferred">
54
+ <td><pre><a name="line2">2</a> # Description : step definitions for steps related to Gem search</pre></td>
55
+ </tr>
56
+ <tr class="inferred">
57
+ <td><pre><a name="line3">3</a> # Author : Chandra sekaran</pre></td>
58
+ </tr>
59
+ <tr class="inferred">
60
+ <td><pre><a name="line4">4</a> </pre></td>
61
+ </tr>
62
+ <tr class="inferred">
63
+ <td><pre><a name="line5">5</a> # Given the user is on the rubygems.org home page</pre></td>
64
+ </tr>
65
+ <tr class="marked">
66
+ <td><pre><a name="line6">6</a> Given /^the user is on the rubygems\.org home page$/ do</pre></td>
67
+ </tr>
68
+ <tr class="uncovered">
69
+ <td><pre><a name="line7">7</a> visit(CUKES::RubyGems)</pre></td>
70
+ </tr>
71
+ <tr class="inferred">
72
+ <td><pre><a name="line8">8</a> end</pre></td>
73
+ </tr>
74
+ <tr class="inferred">
75
+ <td><pre><a name="line9">9</a> </pre></td>
76
+ </tr>
77
+ <tr class="inferred">
78
+ <td><pre><a name="line10">10</a> # And the user is signed in</pre></td>
79
+ </tr>
80
+ <tr class="marked">
81
+ <td><pre><a name="line11">11</a> And /^the user is signed in$/ do</pre></td>
82
+ </tr>
83
+ <tr class="uncovered">
84
+ <td><pre><a name="line12">12</a> on(CUKES::RubyGems).sign_in</pre></td>
85
+ </tr>
86
+ <tr class="inferred">
87
+ <td><pre><a name="line13">13</a> end</pre></td>
88
+ </tr>
89
+ <tr class="inferred">
90
+ <td><pre><a name="line14">14</a> </pre></td>
91
+ </tr>
92
+ <tr class="inferred">
93
+ <td><pre><a name="line15">15</a> # And the user is signed out</pre></td>
94
+ </tr>
95
+ <tr class="marked">
96
+ <td><pre><a name="line16">16</a> And /^the user is signed out$/ do</pre></td>
97
+ </tr>
98
+ <tr class="uncovered">
99
+ <td><pre><a name="line17">17</a> visit(CUKES::RubyGems).sign_out</pre></td>
100
+ </tr>
101
+ <tr class="inferred">
102
+ <td><pre><a name="line18">18</a> end</pre></td>
103
+ </tr>
104
+ <tr class="inferred">
105
+ <td><pre><a name="line19">19</a> </pre></td>
106
+ </tr>
107
+ <tr class="inferred">
108
+ <td><pre><a name="line20">20</a> # When the user enters &quot;watir&quot; in search textbox and press enter</pre></td>
109
+ </tr>
110
+ <tr class="marked">
111
+ <td><pre><a name="line21">21</a> When /^the user enters &quot;(.*?)&quot; in search textbox and press enter$/ do |search_text|</pre></td>
112
+ </tr>
113
+ <tr class="uncovered">
114
+ <td><pre><a name="line22">22</a> on(CUKES::RubyGems).search_for_gem(search_text)</pre></td>
115
+ </tr>
116
+ <tr class="inferred">
117
+ <td><pre><a name="line23">23</a> end</pre></td>
118
+ </tr>
119
+ <tr class="inferred">
120
+ <td><pre><a name="line24">24</a> </pre></td>
121
+ </tr>
122
+ <tr class="inferred">
123
+ <td><pre><a name="line25">25</a> # Then the user should be redirected to gem list page of &quot;watir&quot; gem</pre></td>
124
+ </tr>
125
+ <tr class="marked">
126
+ <td><pre><a name="line26">26</a> Then /^the user should be redirected to gem list page of &quot;(.*?)&quot; gem$/ do |gem_name|</pre></td>
127
+ </tr>
128
+ <tr class="uncovered">
129
+ <td><pre><a name="line27">27</a> on(CUKES::RubyGems).compare_heading(gem_name)</pre></td>
130
+ </tr>
131
+ <tr class="inferred">
132
+ <td><pre><a name="line28">28</a> end</pre></td>
133
+ </tr>
134
+ <tr class="inferred">
135
+ <td><pre><a name="line29">29</a> </pre></td>
136
+ </tr>
137
+ <tr class="inferred">
138
+ <td><pre><a name="line30">30</a> # When the user selects the gem having the maximum downloads</pre></td>
139
+ </tr>
140
+ <tr class="marked">
141
+ <td><pre><a name="line31">31</a> When /^the user selects the gem having the maximum downloads$/ do</pre></td>
142
+ </tr>
143
+ <tr class="uncovered">
144
+ <td><pre><a name="line32">32</a> @gem = on(CUKES::RubyGems).fetch_desired_gem</pre></td>
145
+ </tr>
146
+ <tr class="uncovered">
147
+ <td><pre><a name="line33">33</a> $log.success(&quot;The gem &#39;#{@gem}&#39; has the maximum downloads&quot;)</pre></td>
148
+ </tr>
149
+ <tr class="inferred">
150
+ <td><pre><a name="line34">34</a> end</pre></td>
151
+ </tr>
152
+ <tr class="inferred">
153
+ <td><pre><a name="line35">35</a> </pre></td>
154
+ </tr>
155
+ <tr class="inferred">
156
+ <td><pre><a name="line36">36</a> # Then the user should be shown the gem description page</pre></td>
157
+ </tr>
158
+ <tr class="marked">
159
+ <td><pre><a name="line37">37</a> Then /^the user should be shown the gem description page$/ do</pre></td>
160
+ </tr>
161
+ <tr class="uncovered">
162
+ <td><pre><a name="line38">38</a> on(CUKES::RubyGems).fetch_gem_details(@gem)</pre></td>
163
+ </tr>
164
+ <tr class="inferred">
165
+ <td><pre><a name="line39">39</a> end</pre></td>
166
+ </tr>
167
+ <tr class="inferred">
168
+ <td><pre><a name="line40">40</a> </pre></td>
169
+ </tr>
170
+ <tr class="inferred">
171
+ <td><pre><a name="line41">41</a> # When the user searches for a gem name from test data</pre></td>
172
+ </tr>
173
+ <tr class="marked">
174
+ <td><pre><a name="line42">42</a> When /^the user searches for a gem name from test data$/ do</pre></td>
175
+ </tr>
176
+ <tr class="uncovered">
177
+ <td><pre><a name="line43">43</a> on(CUKES::RubyGems).search_for_gem</pre></td>
178
+ </tr>
179
+ <tr class="inferred">
180
+ <td><pre><a name="line44">44</a> end</pre></td>
181
+ </tr>
182
+ </tbody>
183
+ </table>
184
+
185
+ <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>
186
+
187
+ </body>
188
+ </html>
@@ -0,0 +1,167 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
3
+ <head>
4
+ <title>step_definitions/desktop/google_search_steps.rb</title>
5
+ <link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
6
+ <link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
7
+ <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
8
+ <script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
9
+ </head>
10
+ <body>
11
+ <h1>Cukes C0 Coverage Information - Simploco - RCov</h1>
12
+ <h2>step_definitions/desktop/google_search_steps.rb</h2>
13
+
14
+ <div class="report_table_wrapper">
15
+ <table class='report' id='report_table'>
16
+ <thead>
17
+ <tr>
18
+ <th class="left_align">Name</th>
19
+ <th class="right_align">Total Lines</th>
20
+ <th class="right_align">Lines of Code</th>
21
+ <th class="left_align">Total Coverage</th>
22
+ <th class="left_align">Code Coverage</th>
23
+ </tr>
24
+ </thead>
25
+ <tbody>
26
+ <tr>
27
+ <td class="left_align"><a href="step_definitions-desktop-google_search_steps_rb.html">step_definitions/desktop/google_search_steps.rb</a></td>
28
+ <td class='right_align'><tt>36</tt></td>
29
+ <td class='right_align'><tt>17</tt></td>
30
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
31
+ <div class="percent_graph">
32
+ <div class="covered" style="width:100px"></div>
33
+ <div class="uncovered" style="width:0px"></div>
34
+ </div></td>
35
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
36
+ <div class="percent_graph">
37
+ <div class="covered" style="width:100px"></div>
38
+ <div class="uncovered" style="width:0px"></div>
39
+ </div></td>
40
+ </tr>
41
+ </tbody>
42
+ </table>
43
+ </div>
44
+
45
+ <h3>Key</h3>
46
+
47
+ <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>
48
+
49
+ <h3>Coverage Details</h3>
50
+
51
+ <table class="details">
52
+ <tbody>
53
+ <tr class="inferred">
54
+ <td><pre><a name="line2">2</a> # Description : step definitions for steps related to Google search</pre></td>
55
+ </tr>
56
+ <tr class="inferred">
57
+ <td><pre><a name="line3">3</a> # Author : Chandra sekaran</pre></td>
58
+ </tr>
59
+ <tr class="inferred">
60
+ <td><pre><a name="line4">4</a> </pre></td>
61
+ </tr>
62
+ <tr class="inferred">
63
+ <td><pre><a name="line5">5</a> # Given the user is on the Google home page</pre></td>
64
+ </tr>
65
+ <tr class="marked">
66
+ <td><pre><a name="line6">6</a> Given /^the user is on the Google home page$/ do</pre></td>
67
+ </tr>
68
+ <tr class="marked">
69
+ <td><pre><a name="line7">7</a> visit(CUKES::Google_HomePage)</pre></td>
70
+ </tr>
71
+ <tr class="inferred">
72
+ <td><pre><a name="line8">8</a> end</pre></td>
73
+ </tr>
74
+ <tr class="inferred">
75
+ <td><pre><a name="line9">9</a> </pre></td>
76
+ </tr>
77
+ <tr class="inferred">
78
+ <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>
79
+ </tr>
80
+ <tr class="marked">
81
+ <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>
82
+ </tr>
83
+ <tr class="marked">
84
+ <td><pre><a name="line12">12</a> on(CUKES::Google_HomePage).search_for_text(search_text)</pre></td>
85
+ </tr>
86
+ <tr class="inferred">
87
+ <td><pre><a name="line13">13</a> end</pre></td>
88
+ </tr>
89
+ <tr class="inferred">
90
+ <td><pre><a name="line14">14</a> </pre></td>
91
+ </tr>
92
+ <tr class="inferred">
93
+ <td><pre><a name="line15">15</a> # Then the user should be shown the search results</pre></td>
94
+ </tr>
95
+ <tr class="marked">
96
+ <td><pre><a name="line16">16</a> Then /^the user should be shown the search results$/ do</pre></td>
97
+ </tr>
98
+ <tr class="marked">
99
+ <td><pre><a name="line17">17</a> on(CUKES::Google_HomePage) do |page|</pre></td>
100
+ </tr>
101
+ <tr class="marked">
102
+ <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>
103
+ </tr>
104
+ <tr class="marked">
105
+ <td><pre><a name="line19">19</a> expect(page.div_result_element.visible?).to be true</pre></td>
106
+ </tr>
107
+ <tr class="marked">
108
+ <td><pre><a name="line20">20</a> $log.success(&quot;Successfully found search results&quot;)</pre></td>
109
+ </tr>
110
+ <tr class="inferred">
111
+ <td><pre><a name="line21">21</a> end</pre></td>
112
+ </tr>
113
+ <tr class="inferred">
114
+ <td><pre><a name="line22">22</a> end</pre></td>
115
+ </tr>
116
+ <tr class="inferred">
117
+ <td><pre><a name="line23">23</a> </pre></td>
118
+ </tr>
119
+ <tr class="inferred">
120
+ <td><pre><a name="line24">24</a> # When the user clicks the link for bet365</pre></td>
121
+ </tr>
122
+ <tr class="marked">
123
+ <td><pre><a name="line25">25</a> When /^the user clicks the link for bet(\d+)$/ do |arg1|</pre></td>
124
+ </tr>
125
+ <tr class="marked">
126
+ <td><pre><a name="line26">26</a> on(CUKES::Google_HomePage).click_bet365</pre></td>
127
+ </tr>
128
+ <tr class="marked">
129
+ <td><pre><a name="line27">27</a> $log.success(&quot;Successfully clicked Bet365.com link&quot;)</pre></td>
130
+ </tr>
131
+ <tr class="inferred">
132
+ <td><pre><a name="line28">28</a> end</pre></td>
133
+ </tr>
134
+ <tr class="inferred">
135
+ <td><pre><a name="line29">29</a> </pre></td>
136
+ </tr>
137
+ <tr class="inferred">
138
+ <td><pre><a name="line30">30</a> # Then the user should be redirected to the bet365.com website</pre></td>
139
+ </tr>
140
+ <tr class="marked">
141
+ <td><pre><a name="line31">31</a> Then /^the user should be redirected to the bet(\d+)\.com website$/ do |arg1|</pre></td>
142
+ </tr>
143
+ <tr class="marked">
144
+ <td><pre><a name="line32">32</a> on(CUKES::Google_HomePage) do |page|</pre></td>
145
+ </tr>
146
+ <tr class="marked">
147
+ <td><pre><a name="line33">33</a> page.wait_for_page_load</pre></td>
148
+ </tr>
149
+ <tr class="marked">
150
+ <td><pre><a name="line34">34</a> expect(page.title.include? &quot;bet365 - Sports Betting&quot;).to be true</pre></td>
151
+ </tr>
152
+ <tr class="marked">
153
+ <td><pre><a name="line35">35</a> $log.success(&quot;Successfully redirected to Bet365.com page&quot;)</pre></td>
154
+ </tr>
155
+ <tr class="inferred">
156
+ <td><pre><a name="line36">36</a> end</pre></td>
157
+ </tr>
158
+ <tr class="inferred">
159
+ <td><pre><a name="line37">37</a> end</pre></td>
160
+ </tr>
161
+ </tbody>
162
+ </table>
163
+
164
+ <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>
165
+
166
+ </body>
167
+ </html>
@@ -0,0 +1,167 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
3
+ <head>
4
+ <title>step_definitions/mobile/mobile_google_search_steps.rb</title>
5
+ <link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
6
+ <link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
7
+ <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
8
+ <script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
9
+ </head>
10
+ <body>
11
+ <h1>Cukes C0 Coverage Information - Simploco - RCov</h1>
12
+ <h2>step_definitions/mobile/mobile_google_search_steps.rb</h2>
13
+
14
+ <div class="report_table_wrapper">
15
+ <table class='report' id='report_table'>
16
+ <thead>
17
+ <tr>
18
+ <th class="left_align">Name</th>
19
+ <th class="right_align">Total Lines</th>
20
+ <th class="right_align">Lines of Code</th>
21
+ <th class="left_align">Total Coverage</th>
22
+ <th class="left_align">Code Coverage</th>
23
+ </tr>
24
+ </thead>
25
+ <tbody>
26
+ <tr>
27
+ <td class="left_align"><a href="step_definitions-mobile-mobile_google_search_steps_rb.html">step_definitions/mobile/mobile_google_search_steps.rb</a></td>
28
+ <td class='right_align'><tt>36</tt></td>
29
+ <td class='right_align'><tt>17</tt></td>
30
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>66.67%</tt></div>
31
+ <div class="percent_graph">
32
+ <div class="covered" style="width:67px"></div>
33
+ <div class="uncovered" style="width:33px"></div>
34
+ </div></td>
35
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>29.41%</tt></div>
36
+ <div class="percent_graph">
37
+ <div class="covered" style="width:29px"></div>
38
+ <div class="uncovered" style="width:71px"></div>
39
+ </div></td>
40
+ </tr>
41
+ </tbody>
42
+ </table>
43
+ </div>
44
+
45
+ <h3>Key</h3>
46
+
47
+ <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>
48
+
49
+ <h3>Coverage Details</h3>
50
+
51
+ <table class="details">
52
+ <tbody>
53
+ <tr class="inferred">
54
+ <td><pre><a name="line2">2</a> # Description : step definitions for steps related to Google search</pre></td>
55
+ </tr>
56
+ <tr class="inferred">
57
+ <td><pre><a name="line3">3</a> # Author : Chandra sekaran</pre></td>
58
+ </tr>
59
+ <tr class="inferred">
60
+ <td><pre><a name="line4">4</a> </pre></td>
61
+ </tr>
62
+ <tr class="inferred">
63
+ <td><pre><a name="line5">5</a> # Given the user is on the Google home page</pre></td>
64
+ </tr>
65
+ <tr class="marked">
66
+ <td><pre><a name="line6">6</a> Given /^the user is on the mobile Google home page$/ do</pre></td>
67
+ </tr>
68
+ <tr class="uncovered">
69
+ <td><pre><a name="line7">7</a> visit(CUKES::MobileGoogle_HomePage)</pre></td>
70
+ </tr>
71
+ <tr class="inferred">
72
+ <td><pre><a name="line8">8</a> end</pre></td>
73
+ </tr>
74
+ <tr class="inferred">
75
+ <td><pre><a name="line9">9</a> </pre></td>
76
+ </tr>
77
+ <tr class="inferred">
78
+ <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>
79
+ </tr>
80
+ <tr class="marked">
81
+ <td><pre><a name="line11">11</a> When /^the user searches for &quot;(.*?)&quot;$/ do |search_text|</pre></td>
82
+ </tr>
83
+ <tr class="uncovered">
84
+ <td><pre><a name="line12">12</a> on(CUKES::MobileGoogle_HomePage).search_for_text(search_text)</pre></td>
85
+ </tr>
86
+ <tr class="inferred">
87
+ <td><pre><a name="line13">13</a> end</pre></td>
88
+ </tr>
89
+ <tr class="inferred">
90
+ <td><pre><a name="line14">14</a> </pre></td>
91
+ </tr>
92
+ <tr class="inferred">
93
+ <td><pre><a name="line15">15</a> # Then the user should be shown the search results</pre></td>
94
+ </tr>
95
+ <tr class="marked">
96
+ <td><pre><a name="line16">16</a> Then /^the user should be shown search results$/ do</pre></td>
97
+ </tr>
98
+ <tr class="uncovered">
99
+ <td><pre><a name="line17">17</a> on(CUKES::MobileGoogle_HomePage) do |page|</pre></td>
100
+ </tr>
101
+ <tr class="uncovered">
102
+ <td><pre><a name="line18">18</a> page.wait_for_object(page.div_result_element, &quot;Could not find &#39;result div&#39;&quot;)</pre></td>
103
+ </tr>
104
+ <tr class="uncovered">
105
+ <td><pre><a name="line19">19</a> expect(page.div_result_element.visible?).to be true</pre></td>
106
+ </tr>
107
+ <tr class="uncovered">
108
+ <td><pre><a name="line20">20</a> $log.success(&quot;Successfully found search results&quot;)</pre></td>
109
+ </tr>
110
+ <tr class="inferred">
111
+ <td><pre><a name="line21">21</a> end</pre></td>
112
+ </tr>
113
+ <tr class="inferred">
114
+ <td><pre><a name="line22">22</a> end</pre></td>
115
+ </tr>
116
+ <tr class="inferred">
117
+ <td><pre><a name="line23">23</a> </pre></td>
118
+ </tr>
119
+ <tr class="inferred">
120
+ <td><pre><a name="line24">24</a> # When the user clicks the link for bet365</pre></td>
121
+ </tr>
122
+ <tr class="marked">
123
+ <td><pre><a name="line25">25</a> When /^the user clicks the link for mobile rubygems$/ do</pre></td>
124
+ </tr>
125
+ <tr class="uncovered">
126
+ <td><pre><a name="line26">26</a> on(CUKES::MobileGoogle_HomePage).click_rubygems</pre></td>
127
+ </tr>
128
+ <tr class="uncovered">
129
+ <td><pre><a name="line27">27</a> $log.success(&quot;Successfully clicked rubygems.org link&quot;)</pre></td>
130
+ </tr>
131
+ <tr class="inferred">
132
+ <td><pre><a name="line28">28</a> end</pre></td>
133
+ </tr>
134
+ <tr class="inferred">
135
+ <td><pre><a name="line29">29</a> </pre></td>
136
+ </tr>
137
+ <tr class="inferred">
138
+ <td><pre><a name="line30">30</a> # Then the user should be redirected to the bet365.com website</pre></td>
139
+ </tr>
140
+ <tr class="marked">
141
+ <td><pre><a name="line31">31</a> Then /^the user should be redirected to the mobile rubygems.org website$/ do</pre></td>
142
+ </tr>
143
+ <tr class="uncovered">
144
+ <td><pre><a name="line32">32</a> on(CUKES::MobileGoogle_HomePage) do |page|</pre></td>
145
+ </tr>
146
+ <tr class="uncovered">
147
+ <td><pre><a name="line33">33</a> page.wait_for_page_load</pre></td>
148
+ </tr>
149
+ <tr class="uncovered">
150
+ <td><pre><a name="line34">34</a> expect(page.title.include? &quot;RubyGems.org&quot;).to be true</pre></td>
151
+ </tr>
152
+ <tr class="uncovered">
153
+ <td><pre><a name="line35">35</a> $log.success(&quot;Successfully redirected to rubygems.org page&quot;)</pre></td>
154
+ </tr>
155
+ <tr class="inferred">
156
+ <td><pre><a name="line36">36</a> end</pre></td>
157
+ </tr>
158
+ <tr class="inferred">
159
+ <td><pre><a name="line37">37</a> end</pre></td>
160
+ </tr>
161
+ </tbody>
162
+ </table>
163
+
164
+ <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>
165
+
166
+ </body>
167
+ </html>