SimpliTest 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -21
  3. data/SimpliTest.gemspec +42 -42
  4. data/bin/SimpliTest +22 -22
  5. data/lib/SimpliTest.rb +2 -2
  6. data/lib/SimpliTest/cli/main.rb +333 -333
  7. data/lib/SimpliTest/config/configuration.rb +107 -107
  8. data/lib/SimpliTest/config/directory_paths.rb +36 -36
  9. data/lib/SimpliTest/config/environment.rb +67 -67
  10. data/lib/SimpliTest/config/local_environment.rb +20 -20
  11. data/lib/SimpliTest/config/profiles/chrome.rb +18 -18
  12. data/lib/SimpliTest/config/profiles/firefox.rb +14 -14
  13. data/lib/SimpliTest/config/profiles/internet_explorer.rb +11 -11
  14. data/lib/SimpliTest/config/profiles/phantom.rb +9 -9
  15. data/lib/SimpliTest/config/profiles/phantom_debug.rb +12 -12
  16. data/lib/SimpliTest/config/profiles/selenium.rb +13 -13
  17. data/lib/SimpliTest/config/screen_size.rb +25 -25
  18. data/lib/SimpliTest/config/steps.rb +8 -8
  19. data/lib/SimpliTest/helpers/data_validation.rb +60 -60
  20. data/lib/SimpliTest/helpers/file.rb +38 -38
  21. data/lib/SimpliTest/helpers/project_setup.rb +186 -186
  22. data/lib/SimpliTest/helpers/step_helpers/custom_chrome_helpers.rb +14 -14
  23. data/lib/SimpliTest/helpers/step_helpers/custom_date_helpers.rb +64 -64
  24. data/lib/SimpliTest/helpers/step_helpers/custom_form_helpers.rb +66 -66
  25. data/lib/SimpliTest/helpers/step_helpers/custom_phantomjs_helpers.rb +49 -49
  26. data/lib/SimpliTest/helpers/step_helpers/custom_selenium_helpers.rb +41 -41
  27. data/lib/SimpliTest/helpers/step_helpers/html_selectors_helpers.rb +154 -154
  28. data/lib/SimpliTest/helpers/step_helpers/navigation_helpers.rb +206 -206
  29. data/lib/SimpliTest/helpers/step_helpers/tolerance_for_sync_issues.rb +38 -38
  30. data/lib/SimpliTest/helpers/step_helpers/within_helpers.rb +6 -6
  31. data/lib/SimpliTest/helpers/windows_ui.rb +51 -51
  32. data/lib/SimpliTest/steps/debugging_steps.rb +19 -19
  33. data/lib/SimpliTest/steps/form_steps.rb +348 -352
  34. data/lib/SimpliTest/steps/form_verification_steps.rb +189 -189
  35. data/lib/SimpliTest/steps/navigation_steps.rb +58 -47
  36. data/lib/SimpliTest/steps/scoper.rb +42 -42
  37. data/lib/SimpliTest/steps/verification_steps.rb +306 -306
  38. data/lib/SimpliTest/tasks/document.rb +169 -169
  39. data/lib/SimpliTest/tasks/examples.rb +18 -18
  40. data/lib/SimpliTest/tasks/testinstall.rb +5 -5
  41. data/lib/SimpliTest/templates/NewSimpliTestProject/Readme.txt +4 -4
  42. data/lib/SimpliTest/templates/NewSimpliTestProject/cucumber.yml +26 -26
  43. data/lib/SimpliTest/templates/NewSimpliTestProject/documentation/step_definitions.html +88 -87
  44. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/RegressionTests/HelloWorld.feature +3 -3
  45. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/SmokeTest/HelloWorld.feature +3 -3
  46. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/accessibilityTests/HelloWorld.feature +3 -3
  47. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/environments.yml +10 -10
  48. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/pages.yml +26 -26
  49. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/selectors.yml +44 -44
  50. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/settings.yml +26 -26
  51. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/env.rb +33 -33
  52. data/lib/SimpliTest/templates/NewSimpliTestProject/license.txt +29 -29
  53. data/lib/SimpliTest/templates/document/css/style.css +28 -28
  54. data/lib/SimpliTest/templates/document/index.html +60 -60
  55. data/lib/version.rb +3 -3
  56. metadata +4 -4
@@ -1,30 +1,30 @@
1
- The MIT License (MIT)
2
- =====================
3
- Copyright © CGI FEDERAL
4
-
5
- Permission is hereby granted, free of charge, to any person
6
- obtaining a copy of this software and associated documentation
7
- files (the “Software”), to deal in the Software without
8
- restriction, including without limitation the rights to use,
9
- copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the
11
- Software is furnished to do so, subject to the following
12
- conditions:
13
-
14
- The above copyright notice and this permission notice shall be
15
- included in all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
18
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
- OTHER DEALINGS IN THE SOFTWARE.
25
-
26
- ====================================================================================
27
-
28
- SimpliTest uses ax-matchers gem for accessibility testing.
29
- http://www.deque.com/
1
+ The MIT License (MIT)
2
+ =====================
3
+ Copyright © CGI FEDERAL
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the “Software”), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ ====================================================================================
27
+
28
+ SimpliTest uses ax-matchers gem for accessibility testing.
29
+ http://www.deque.com/
30
30
  https://github.com/dequelabs/axe-core
@@ -1,28 +1,28 @@
1
- * {
2
- margin: 0;
3
- padding: 0;
4
- }
5
- body {
6
- font: 14px/1.4 Georgia, Serif;
7
- }
8
- p {
9
- margin: 20px 0;
10
- }
11
-
12
- /*
13
- Generic Styling, for Desktops/Laptops
14
- */
15
- table {
16
- width: 100%;
17
- border-collapse: collapse;
18
- }
19
- th {
20
- background: #333;
21
- color: white;
22
- font-weight: bold;
23
- }
24
- td, th {
25
- padding: 6px;
26
- border: 1px solid #ccc;
27
- text-align: left;
28
- }
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ }
5
+ body {
6
+ font: 14px/1.4 Georgia, Serif;
7
+ }
8
+ p {
9
+ margin: 20px 0;
10
+ }
11
+
12
+ /*
13
+ Generic Styling, for Desktops/Laptops
14
+ */
15
+ table {
16
+ width: 100%;
17
+ border-collapse: collapse;
18
+ }
19
+ th {
20
+ background: #333;
21
+ color: white;
22
+ font-weight: bold;
23
+ }
24
+ td, th {
25
+ padding: 6px;
26
+ border: 1px solid #ccc;
27
+ text-align: left;
28
+ }
@@ -1,60 +1,60 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset='UTF-8'>
6
-
7
- <title>SimpliTest Steps</title>
8
-
9
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
- <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
11
- <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.9.4/jquery.dataTables.min.js"></script>
12
- <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
13
- <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
14
- <script>
15
- $(document).ready( function () {
16
- $('.dataTable').dataTable( {
17
- "bPaginate": false
18
- } );
19
- } );
20
- </script>
21
- <style>@css</style>
22
- </head>
23
-
24
- <div class="container">
25
- <div class="row clearfix">
26
- <div class="col-md-12 column">
27
- <div class="row clearfix">
28
- <div class="col-md-12 column">
29
- <div class="page-header">
30
- <h1>
31
- SimpliTest <span>Available Steps</span>
32
- </h1>
33
- </div>
34
- </div>
35
- </div>
36
- <div class="row clearfix">
37
- <div class="col-md-8 column">
38
- <p>
39
- Version: @version of SimpliTest adds the following steps to the framework.
40
- </p>
41
- </div>
42
- <div class="col-md-4 column">
43
- </div>
44
- </div>
45
- <table class="dataTable table table-striped table-bordered">
46
- <thead>
47
- <tr>
48
- @header_row
49
- </tr>
50
- </thead>
51
- <tbody>
52
- @table_body
53
- </tbody>
54
- </table>
55
- </div>
56
- </div>
57
- </div>
58
- </body>
59
-
60
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset='UTF-8'>
6
+
7
+ <title>SimpliTest Steps</title>
8
+
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
+ <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
11
+ <script type="text/javascript" charset="utf8" src="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.9.4/jquery.dataTables.min.js"></script>
12
+ <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
13
+ <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
14
+ <script>
15
+ $(document).ready( function () {
16
+ $('.dataTable').dataTable( {
17
+ "bPaginate": false
18
+ } );
19
+ } );
20
+ </script>
21
+ <style>@css</style>
22
+ </head>
23
+
24
+ <div class="container">
25
+ <div class="row clearfix">
26
+ <div class="col-md-12 column">
27
+ <div class="row clearfix">
28
+ <div class="col-md-12 column">
29
+ <div class="page-header">
30
+ <h1>
31
+ SimpliTest <span>Available Steps</span>
32
+ </h1>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ <div class="row clearfix">
37
+ <div class="col-md-8 column">
38
+ <p>
39
+ Version: @version of SimpliTest adds the following steps to the framework.
40
+ </p>
41
+ </div>
42
+ <div class="col-md-4 column">
43
+ </div>
44
+ </div>
45
+ <table class="dataTable table table-striped table-bordered">
46
+ <thead>
47
+ <tr>
48
+ @header_row
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+ @table_body
53
+ </tbody>
54
+ </table>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </body>
59
+
60
+ </html>
@@ -1,3 +1,3 @@
1
- module SimpliTest
2
- VERSION = "0.0.4"
3
- end
1
+ module SimpliTest
2
+ VERSION = "0.0.5"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SimpliTest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CGI Federal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubygems-update
@@ -196,14 +196,14 @@ dependencies:
196
196
  name: capybara
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - '='
200
200
  - !ruby/object:Gem::Version
201
201
  version: '2.5'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - "~>"
206
+ - - '='
207
207
  - !ruby/object:Gem::Version
208
208
  version: '2.5'
209
209
  - !ruby/object:Gem::Dependency