SimpliTest 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -22
  3. data/SimpliTest.gemspec +41 -41
  4. data/bin/SimpliTest +22 -22
  5. data/lib/SimpliTest.rb +2 -2
  6. data/lib/SimpliTest/cli/main.rb +333 -305
  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 -196
  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/steps/debugging_steps.rb +19 -19
  32. data/lib/SimpliTest/steps/form_steps.rb +352 -352
  33. data/lib/SimpliTest/steps/form_verification_steps.rb +189 -189
  34. data/lib/SimpliTest/steps/navigation_steps.rb +47 -47
  35. data/lib/SimpliTest/steps/scoper.rb +42 -42
  36. data/lib/SimpliTest/steps/verification_steps.rb +306 -306
  37. data/lib/SimpliTest/tasks/document.rb +169 -169
  38. data/lib/SimpliTest/tasks/examples.rb +18 -18
  39. data/lib/SimpliTest/tasks/testinstall.rb +5 -5
  40. data/lib/SimpliTest/templates/NewSimpliTestProject/Readme.txt +4 -4
  41. data/lib/SimpliTest/templates/NewSimpliTestProject/cucumber.yml +26 -26
  42. data/lib/SimpliTest/templates/NewSimpliTestProject/documentation/step_definitions.html +87 -87
  43. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/RegressionTests/HelloWorld.feature +3 -3
  44. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/SmokeTest/HelloWorld.feature +3 -3
  45. data/lib/SimpliTest/templates/NewSimpliTestProject/features/specifications/accessibilityTests/HelloWorld.feature +3 -3
  46. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/environments.yml +10 -10
  47. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/pages.yml +26 -26
  48. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/selectors.yml +44 -44
  49. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/config/settings.yml +26 -26
  50. data/lib/SimpliTest/templates/NewSimpliTestProject/features/support/env.rb +33 -33
  51. data/lib/SimpliTest/templates/NewSimpliTestProject/license.txt +29 -29
  52. data/lib/SimpliTest/templates/document/css/style.css +28 -28
  53. data/lib/SimpliTest/templates/document/index.html +60 -60
  54. data/lib/version.rb +3 -3
  55. metadata +7 -8
  56. data/lib/SimpliTest/tasks/internal_release.rb +0 -39
@@ -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.1"
3
- end
1
+ module SimpliTest
2
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
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-09-11 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubygems-update
@@ -266,16 +266,16 @@ dependencies:
266
266
  name: tiny_tds
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - '='
269
+ - - "~>"
270
270
  - !ruby/object:Gem::Version
271
- version: '0.7'
271
+ version: '2.0'
272
272
  type: :runtime
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - '='
276
+ - - "~>"
277
277
  - !ruby/object:Gem::Version
278
- version: '0.7'
278
+ version: '2.0'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: rest-client
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -350,7 +350,6 @@ files:
350
350
  - lib/SimpliTest/steps/verification_steps.rb
351
351
  - lib/SimpliTest/tasks/document.rb
352
352
  - lib/SimpliTest/tasks/examples.rb
353
- - lib/SimpliTest/tasks/internal_release.rb
354
353
  - lib/SimpliTest/tasks/testinstall.rb
355
354
  - lib/SimpliTest/templates/NewSimpliTestProject/Readme.txt
356
355
  - lib/SimpliTest/templates/NewSimpliTestProject/cucumber.yml
@@ -387,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
387
386
  version: '0'
388
387
  requirements: []
389
388
  rubyforge_project:
390
- rubygems_version: 2.5.2
389
+ rubygems_version: 2.6.11
391
390
  signing_key:
392
391
  specification_version: 4
393
392
  summary: This gem provides common web steps and command line executable for automated
@@ -1,39 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.class_eval do
3
- def release_gem_internally(built_gem_path=nil, force=false)
4
- guard_clean
5
- built_gem_path ||= build_gem
6
- tag_version { git_push } unless already_tagged?
7
- rubygem_push_internally(built_gem_path, force) if gem_push?
8
- end
9
-
10
- def rubygem_push_internally(path, force)
11
- require 'geminabox'
12
- if Pathname.new("~/.gem/geminabox").expand_path.exist?
13
- if on_cgi_network?
14
- command = force ? "gem inabox -o '#{path}'" : "gem inabox '#{path}'"
15
- sh('git push -u gitlab master --follow-tags')
16
- Bundler.ui.confirm "Pushed latest update and tags to gitlab"
17
- sh(command)
18
- Bundler.ui.confirm "Pushed #{name} #{version} to rubygems.cgifederal.com"
19
- else
20
- raise "You are not on the CGI VPN Network. Please connect to the VPN and try again"
21
- end
22
- else
23
- raise "Your geminabox credentials aren't set. Run `gem inabox` to set them."
24
- end
25
- end
26
-
27
- def on_cgi_network?
28
- Net::HTTP.get_response(URI.parse 'http://rubygems.cgifederal.com').code == '200' rescue false
29
- end
30
- end
31
-
32
-
33
-
34
- desc "Create tag v#{SimpliTest::VERSION} and build and push SimpliTest-#{SimpliTest::VERSION}.gem to rubygems.cgifederal.com"
35
- task :internal_release, [:force] => :build do |t, args|
36
- force = args[:force] == 'force'
37
- Bundler::GemHelper.new.release_gem_internally(nil, force)
38
- end
39
-