awetestlib 0.1.28 → 0.1.29pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/.gitattributes +22 -22
  2. data/.gitignore +69 -69
  3. data/.yardopts +7 -7
  4. data/README.md +108 -108
  5. data/awetestlib.gemspec +57 -57
  6. data/awetestlib.windows.gemspec +41 -41
  7. data/awetestlib_notes.txt +4 -4
  8. data/awetestlib_osx.gemspec +47 -48
  9. data/bin/awetestlib +99 -99
  10. data/bin/awetestlib-android-setup.rb +26 -26
  11. data/bin/awetestlib-cucumber-setup.rb +28 -28
  12. data/bin/awetestlib-driver-setup.rb +21 -21
  13. data/bin/awetestlib-helpers.rb +41 -41
  14. data/bin/awetestlib-mobile-app-setup.rb +31 -31
  15. data/bin/awetestlib-netbeans-setup.rb +58 -58
  16. data/bin/awetestlib-regression-setup.rb +15 -15
  17. data/bin/awetestlib-rubymine-setup.rb +39 -39
  18. data/drivers/chromedriver.exe +0 -0
  19. data/ext/Rakefile +1 -1
  20. data/ext/mkrf_conf.rb +27 -27
  21. data/lib/awetestlib/html_report.rb +142 -142
  22. data/lib/awetestlib/logging.rb +366 -366
  23. data/lib/awetestlib/regression/browser.rb +1380 -1375
  24. data/lib/awetestlib/regression/drag_and_drop.rb +421 -420
  25. data/lib/awetestlib/regression/find.rb +345 -345
  26. data/lib/awetestlib/regression/legacy.rb +1187 -1187
  27. data/lib/awetestlib/regression/page_data.rb +191 -191
  28. data/lib/awetestlib/regression/runner.rb +307 -307
  29. data/lib/awetestlib/regression/tables.rb +627 -619
  30. data/lib/awetestlib/regression/user_input.rb +576 -576
  31. data/lib/awetestlib/regression/utilities.rb +1046 -988
  32. data/lib/awetestlib/regression/validations.rb +1093 -1074
  33. data/lib/awetestlib/regression/waits.rb +470 -470
  34. data/lib/awetestlib/runner.rb +18 -18
  35. data/lib/awetestlib.rb +41 -41
  36. data/lib/patches/README +2 -2
  37. data/lib/patches/firewatir.rb +106 -106
  38. data/lib/patches/watir.rb +175 -175
  39. data/lib/version.rb +2 -2
  40. data/license.txt +13 -13
  41. data/netbeans_setup.md +29 -29
  42. data/rdoc_test.bat +1 -1
  43. data/rubymine_setup.md +23 -23
  44. data/setup_samples/sample_android/features/dk.mejer.hansen.control.FlyingColorsPlayerAidActivity.apk +0 -0
  45. data/setup_samples/sample_android/features/sample_android.feature +5 -5
  46. data/setup_samples/sample_android/features/step_definitions/calabash_steps.rb +1 -1
  47. data/setup_samples/sample_android/features/support/app_installation_hooks.rb +36 -36
  48. data/setup_samples/sample_android/features/support/app_life_cycle_hooks.rb +14 -14
  49. data/setup_samples/sample_android/features/test_servers/8ba795a0288381ae346b67867b586881_0.3.2.apk +0 -0
  50. data/setup_samples/sample_cucumber/features/step_definitions/predefined_steps.rb +76 -76
  51. data/setup_samples/sample_cucumber/features/yahoo_mail.feature +11 -11
  52. data/setup_samples/sample_mobile_app/features/my_first.feature +14 -14
  53. data/setup_samples/sample_mobile_app/features/step_definitions/predefined_webview_steps.rb +80 -80
  54. data/setup_samples/sample_mobile_app/features/support/env.rb +2 -2
  55. data/setup_samples/sample_netbeans/demo.rb +86 -86
  56. data/setup_samples/sample_netbeans/nbproject/configs/Demo.properties +2 -2
  57. data/setup_samples/sample_netbeans/nbproject/private/config.properties +1 -1
  58. data/setup_samples/sample_netbeans/nbproject/private/configs/Demo.properties +2 -2
  59. data/setup_samples/sample_netbeans/nbproject/private/private.properties +2 -2
  60. data/setup_samples/sample_netbeans/nbproject/project.properties +5 -5
  61. data/setup_samples/sample_netbeans/nbproject/project.xml +13 -13
  62. data/setup_samples/sample_rubymine/.idea/encodings.xml +5 -5
  63. data/setup_samples/sample_rubymine/.idea/misc.xml +5 -5
  64. data/setup_samples/sample_rubymine/.idea/modules.xml +9 -9
  65. data/setup_samples/sample_rubymine/.idea/sample_rubymine.iml +9 -9
  66. data/setup_samples/sample_rubymine/.idea/scopes/scope_settings.xml +4 -4
  67. data/setup_samples/sample_rubymine/.idea/vcs.xml +7 -7
  68. data/setup_samples/sample_rubymine/.idea/workspace.xml +213 -213
  69. data/setup_samples/sample_rubymine/demo.rb +86 -86
  70. data/test/create_zoho.rb +66 -66
  71. data/test/create_zoho_account1.rb +68 -68
  72. data/test/create_zoho_account2.rb +72 -72
  73. data/test/demo.rb +87 -87
  74. data/test/google_search1.rb +16 -16
  75. data/test/google_search2.rb +19 -19
  76. data/test/login_1.rb +37 -37
  77. data/test/login_1a.rb +37 -37
  78. data/test/login_2.rb +32 -32
  79. data/test/zoho_exercise.rb +21 -21
  80. data/test/zoho_util.rb +487 -487
  81. data/tmp/placeholder.html +71 -71
  82. metadata +18 -49
data/tmp/placeholder.html CHANGED
@@ -1,71 +1,71 @@
1
- <html>
2
- <head>
3
- <meta content=text/html; charset=ISO-8859-1 http-equiv=content-type>
4
- <title>Awetestlib Test Run</title>
5
- <style type=text/css>
6
- .title { font-family: verdana; font-size: 30px; font-weight: bold; align: left; color: #000000;}
7
- .bold_text { font-family: verdana; font-size: 12px; font-weight: bold;}
8
- .bold_large_text { font-family: verdana; font-size: 13px; font-weight: bold;}
9
- .normal_text { font-family: verdana; font-size: 12px; font-weight: normal;}
10
- .small_text { font-family: verdana; font-size: 10px; font-weight: normal; }
11
- .border { border: 1px solid #000000;}
12
- .mark_testlevel_left { border-top: 1px solid #858585; border-left: 1px solid #858585;background-color:#E2F4FE;}
13
- .mark_testlevel_right { border-top: 1px solid #858585; border-right: 1px solid #858585;background-color:#E2F4FE;}
14
- .border_left { border-top: 1px solid #858585; border-left: 1px solid #858585; border-right: 1px solid #858585;}
15
- .border_right { border-top: 1px solid #858585; border-right: 1px solid #858585;}
16
- .result_ok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: green;}
17
- .result_nok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: red;}
18
- .overall_ok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: left; color: green;}
19
- .overall_nok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: left; color: red;}
20
- .bborder_left { border-top: 1px solid #858585; border-left: 1px solid #858585; border-bottom: 1px solid #858585; background-color:#858585;font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: white;}
21
- .bborder_right { border-right: 1px solid #858585; background-color:#858585;font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: white;}
22
- </style>
23
- </head>
24
- <body>
25
- <br>
26
- <center>
27
- <table width=800 border=0 cellpadding=2 cellspacing=2>
28
- <tbody>
29
- <tr>
30
- <td>
31
- <table width=100% border=0 cellpadding=2 cellspacing=2>
32
- <tbody>
33
- <tr>
34
- <td style=width: 150px;>&nbsp;</td>
35
- <td align=left><img src="../images/logo.png"></img></td>
36
- <td align=right><p class=title>Test Report</p></td>
37
- </tr>
38
- </tbody>
39
- </table>
40
- <br>
41
- <hr width=100% class=border size=1px>
42
- <center>
43
- <table border=0 width=95% cellpadding=2 cellspacing=2>
44
- <tbody>
45
- <tr>
46
- <td width=20%><p class=bold_text>Script</p></td>
47
- <td width=5%><p class=bold_text>:</p></td>
48
- <td width=75%><p class=normal_text>Demo</p></td>
49
- </tr>
50
- <tr>
51
- <td width=20%><p class=bold_text>Test Execution</p></td>
52
- <td width=5%><p class=bold_text>:</p></td>
53
- <td width=75%><p class=normal_text>27-08-2012 @ 10:20:44</p></td>
54
- </tr>
55
- <tr>
56
- </tr>
57
- </tbody>
58
- </table>
59
- </center>
60
- <br>
61
- <center>
62
- <table width=95% cellpadding=2 cellspacing=0>
63
- <tbody>
64
- <tr>
65
- <td class=bborder_left width=80%><p>Test Step</p></td>
66
- <td class=bborder_left width=20%><p>Result</p></td>
67
- </tr><tr><td class=border_left width=80%><p class=normal_text> [unknown]</p></td><td class=border_right width=20%><p class=result_nok>FAILED</p></td><tr><td class=mark_testlevel_left width=80%><p class=bold_large_text>>> Duration: 00:00:00</p></td><td class=mark_testlevel_right width=20%><p class=result_nok>&nbsp</p></td><tr><td class=mark_testlevel_left width=80%><p class=bold_large_text>>> Validations: 1 | Fails: 1</p></td><td class=mark_testlevel_right width=20%><p class=result_nok>&nbsp</p></td><tr>
68
- <td class=bborder_left width=80%><p>&nbsp;</p></td>
69
- <td class=bborder_left width=20%><p>&nbsp;</p></td>
70
- </tr>
71
- </table>
1
+ <html>
2
+ <head>
3
+ <meta content=text/html; charset=ISO-8859-1 http-equiv=content-type>
4
+ <title>Awetestlib Test Run</title>
5
+ <style type=text/css>
6
+ .title { font-family: verdana; font-size: 30px; font-weight: bold; align: left; color: #000000;}
7
+ .bold_text { font-family: verdana; font-size: 12px; font-weight: bold;}
8
+ .bold_large_text { font-family: verdana; font-size: 13px; font-weight: bold;}
9
+ .normal_text { font-family: verdana; font-size: 12px; font-weight: normal;}
10
+ .small_text { font-family: verdana; font-size: 10px; font-weight: normal; }
11
+ .border { border: 1px solid #000000;}
12
+ .mark_testlevel_left { border-top: 1px solid #858585; border-left: 1px solid #858585;background-color:#E2F4FE;}
13
+ .mark_testlevel_right { border-top: 1px solid #858585; border-right: 1px solid #858585;background-color:#E2F4FE;}
14
+ .border_left { border-top: 1px solid #858585; border-left: 1px solid #858585; border-right: 1px solid #858585;}
15
+ .border_right { border-top: 1px solid #858585; border-right: 1px solid #858585;}
16
+ .result_ok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: green;}
17
+ .result_nok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: red;}
18
+ .overall_ok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: left; color: green;}
19
+ .overall_nok { font-family: verdana; font-size: 12px; font-weight: bold; text-align: left; color: red;}
20
+ .bborder_left { border-top: 1px solid #858585; border-left: 1px solid #858585; border-bottom: 1px solid #858585; background-color:#858585;font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: white;}
21
+ .bborder_right { border-right: 1px solid #858585; background-color:#858585;font-family: verdana; font-size: 12px; font-weight: bold; text-align: center; color: white;}
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <br>
26
+ <center>
27
+ <table width=800 border=0 cellpadding=2 cellspacing=2>
28
+ <tbody>
29
+ <tr>
30
+ <td>
31
+ <table width=100% border=0 cellpadding=2 cellspacing=2>
32
+ <tbody>
33
+ <tr>
34
+ <td style=width: 150px;>&nbsp;</td>
35
+ <td align=left><img src="../images/logo.png"></img></td>
36
+ <td align=right><p class=title>Test Report</p></td>
37
+ </tr>
38
+ </tbody>
39
+ </table>
40
+ <br>
41
+ <hr width=100% class=border size=1px>
42
+ <center>
43
+ <table border=0 width=95% cellpadding=2 cellspacing=2>
44
+ <tbody>
45
+ <tr>
46
+ <td width=20%><p class=bold_text>Script</p></td>
47
+ <td width=5%><p class=bold_text>:</p></td>
48
+ <td width=75%><p class=normal_text>Demo</p></td>
49
+ </tr>
50
+ <tr>
51
+ <td width=20%><p class=bold_text>Test Execution</p></td>
52
+ <td width=5%><p class=bold_text>:</p></td>
53
+ <td width=75%><p class=normal_text>27-08-2012 @ 10:20:44</p></td>
54
+ </tr>
55
+ <tr>
56
+ </tr>
57
+ </tbody>
58
+ </table>
59
+ </center>
60
+ <br>
61
+ <center>
62
+ <table width=95% cellpadding=2 cellspacing=0>
63
+ <tbody>
64
+ <tr>
65
+ <td class=bborder_left width=80%><p>Test Step</p></td>
66
+ <td class=bborder_left width=20%><p>Result</p></td>
67
+ </tr><tr><td class=border_left width=80%><p class=normal_text> [unknown]</p></td><td class=border_right width=20%><p class=result_nok>FAILED</p></td><tr><td class=mark_testlevel_left width=80%><p class=bold_large_text>>> Duration: 00:00:00</p></td><td class=mark_testlevel_right width=20%><p class=result_nok>&nbsp</p></td><tr><td class=mark_testlevel_left width=80%><p class=bold_large_text>>> Validations: 1 | Fails: 1</p></td><td class=mark_testlevel_right width=20%><p class=result_nok>&nbsp</p></td><tr>
68
+ <td class=bborder_left width=80%><p>&nbsp;</p></td>
69
+ <td class=bborder_left width=20%><p>&nbsp;</p></td>
70
+ </tr>
71
+ </table>
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awetestlib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
5
- prerelease:
4
+ hash: -223651757
5
+ prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 28
10
- version: 0.1.28
9
+ - 29
10
+ - pre
11
+ - 1
12
+ version: 0.1.29pre1
11
13
  platform: ruby
12
14
  authors:
13
15
  - Anthony Woo
@@ -16,7 +18,7 @@ autorequire:
16
18
  bindir: bin
17
19
  cert_chain: []
18
20
 
19
- date: 2013-03-05 00:00:00 Z
21
+ date: 2013-03-21 00:00:00 Z
20
22
  dependencies:
21
23
  - !ruby/object:Gem::Dependency
22
24
  name: watir-webdriver
@@ -54,14 +56,12 @@ dependencies:
54
56
  requirement: &id003 !ruby/object:Gem::Requirement
55
57
  none: false
56
58
  requirements:
57
- - - "="
59
+ - - ">="
58
60
  - !ruby/object:Gem::Version
59
- hash: 29
61
+ hash: 3
60
62
  segments:
61
- - 1
62
- - 3
63
- - 3
64
- version: 1.3.3
63
+ - 0
64
+ version: "0"
65
65
  type: :runtime
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
@@ -184,26 +184,10 @@ dependencies:
184
184
  version: "0"
185
185
  type: :runtime
186
186
  version_requirements: *id011
187
- - !ruby/object:Gem::Dependency
188
- name: json
189
- prerelease: false
190
- requirement: &id012 !ruby/object:Gem::Requirement
191
- none: false
192
- requirements:
193
- - - "="
194
- - !ruby/object:Gem::Version
195
- hash: 13
196
- segments:
197
- - 1
198
- - 6
199
- - 1
200
- version: 1.6.1
201
- type: :runtime
202
- version_requirements: *id012
203
187
  - !ruby/object:Gem::Dependency
204
188
  name: pry
205
189
  prerelease: false
206
- requirement: &id013 !ruby/object:Gem::Requirement
190
+ requirement: &id012 !ruby/object:Gem::Requirement
207
191
  none: false
208
192
  requirements:
209
193
  - - ">="
@@ -213,11 +197,11 @@ dependencies:
213
197
  - 0
214
198
  version: "0"
215
199
  type: :runtime
216
- version_requirements: *id013
200
+ version_requirements: *id012
217
201
  - !ruby/object:Gem::Dependency
218
202
  name: cucumber
219
203
  prerelease: false
220
- requirement: &id014 !ruby/object:Gem::Requirement
204
+ requirement: &id013 !ruby/object:Gem::Requirement
221
205
  none: false
222
206
  requirements:
223
207
  - - ">="
@@ -227,27 +211,11 @@ dependencies:
227
211
  - 0
228
212
  version: "0"
229
213
  type: :runtime
230
- version_requirements: *id014
231
- - !ruby/object:Gem::Dependency
232
- name: gherkin
233
- prerelease: false
234
- requirement: &id015 !ruby/object:Gem::Requirement
235
- none: false
236
- requirements:
237
- - - "="
238
- - !ruby/object:Gem::Version
239
- hash: 41
240
- segments:
241
- - 2
242
- - 11
243
- - 5
244
- version: 2.11.5
245
- type: :runtime
246
- version_requirements: *id015
214
+ version_requirements: *id013
247
215
  - !ruby/object:Gem::Dependency
248
216
  name: calabash-cucumber
249
217
  prerelease: false
250
- requirement: &id016 !ruby/object:Gem::Requirement
218
+ requirement: &id014 !ruby/object:Gem::Requirement
251
219
  none: false
252
220
  requirements:
253
221
  - - ">="
@@ -257,7 +225,7 @@ dependencies:
257
225
  - 0
258
226
  version: "0"
259
227
  type: :runtime
260
- version_requirements: *id016
228
+ version_requirements: *id014
261
229
  description: Awetest DSL for automated testing of browser-based applications.
262
230
  email: patrick@3qilabs.com
263
231
  executables:
@@ -402,3 +370,4 @@ specification_version: 3
402
370
  summary: Awetest DSL for automated testing of browser-based applications.
403
371
  test_files: []
404
372
 
373
+ has_rdoc: