bddfire 1.9.7 → 1.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -13
  2. data/Gemfile +1 -2
  3. data/README.markdown +68 -37
  4. data/Rakefile +4 -4
  5. data/bddfire.gemspec +19 -16
  6. data/bin/bddfire +116 -106
  7. data/features/step_definitions/all_steps.rb +1 -4
  8. data/features/support/env.rb +4 -4
  9. data/lib/bddfire/accesibility/axe.rb +40 -0
  10. data/lib/bddfire/assertions/assert.rb +2 -2
  11. data/lib/bddfire/page-objects/HomePage.rb +7 -9
  12. data/lib/bddfire/require.rb +5 -4
  13. data/lib/bddfire/version.rb +1 -1
  14. data/lib/bddfire/web/browser_actions.rb +1 -1
  15. data/lib/bddfire/web/headless_steps.rb +9 -10
  16. data/lib/bddfire/web/web_methods.rb +4 -5
  17. data/lib/bddfire/web/web_steps.rb +3 -3
  18. data/lib/bddfire.rb +1 -3
  19. data/pre-defined-steps/accessibility_steps.md +24 -0
  20. data/pre-defined-steps/capybara_steps.md +1 -1
  21. data/scaffold/accessibility/features/01_validation.feature +6 -0
  22. data/scaffold/accessibility/features/02_javascript.feature +6 -0
  23. data/scaffold/accessibility/features/03_language.feature +9 -0
  24. data/scaffold/accessibility/features/04_page_titles.feature +7 -0
  25. data/scaffold/accessibility/features/05_main_landmark.feature +7 -0
  26. data/scaffold/accessibility/features/06_headings.feature +7 -0
  27. data/scaffold/accessibility/features/07_minimum_resizable_text.feature +8 -0
  28. data/scaffold/accessibility/features/08_tabindex.feature +6 -0
  29. data/scaffold/accessibility/features/09_focusable_controls.feature +9 -0
  30. data/scaffold/accessibility/features/10_color_contrast.feature +10 -0
  31. data/scaffold/accessibility/features/11_image.feature +10 -0
  32. data/scaffold/accessibility/features/12_form.feature +11 -0
  33. data/scaffold/accessibility/features/13_table.feature +10 -0
  34. data/scaffold/accessibility/features/general_accessibility_check.feature +9 -0
  35. data/scaffold/accessibility/features/step_definitions/base.rb +22 -0
  36. data/scaffold/accessibility/features/step_definitions/form.rb +0 -0
  37. data/scaffold/accessibility/features/step_definitions/headings.rb +7 -0
  38. data/scaffold/accessibility/features/step_definitions/image.rb +0 -0
  39. data/scaffold/accessibility/features/step_definitions/javascript.rb +3 -0
  40. data/scaffold/accessibility/features/step_definitions/language.rb +0 -0
  41. data/scaffold/accessibility/features/step_definitions/main_landmark.rb +15 -0
  42. data/scaffold/accessibility/features/step_definitions/minimum_resizable_text.rb +11 -0
  43. data/scaffold/accessibility/features/step_definitions/page_title.rb +10 -0
  44. data/scaffold/accessibility/features/step_definitions/tabindex.rb +3 -0
  45. data/scaffold/accessibility/features/step_definitions/table.rb +0 -0
  46. data/scaffold/accessibility/features/step_definitions/validation.rb +4 -0
  47. data/scaffold/accessibility/features/support/capybara.rb +42 -0
  48. data/scaffold/config_files/.rubocop.yml +5 -5
  49. data/scaffold/config_files/Dockerfile +24 -0
  50. data/scaffold/config_files/Gemfile +9 -5
  51. data/scaffold/config_files/Rakefile +36 -32
  52. data/scaffold/config_files/docker.sh +82 -0
  53. data/scaffold/features/pages/HomePage.rb +10 -10
  54. data/scaffold/features/support/env.rb +128 -130
  55. data/scaffold/features/support/hooks.rb +5 -6
  56. data/scaffold/load/Dockerfile +28 -0
  57. data/scaffold/load/README.md +31 -0
  58. data/scaffold/load/conf/application.conf +7 -0
  59. data/scaffold/load/conf/gatling.conf +157 -0
  60. data/scaffold/load/conf/logback.xml +22 -0
  61. data/scaffold/load/conf/recorder.conf +51 -0
  62. data/scaffold/load/docker-jenkins.sh +77 -0
  63. data/scaffold/load/gatling_jenkins.sh +28 -0
  64. data/scaffold/load/gatling_local.sh +29 -0
  65. data/scaffold/load/user-files/bodies/.keep +0 -0
  66. data/scaffold/load/user-files/data/search.csv +2 -0
  67. data/scaffold/load/user-files/simulations/SampleLoadTEST.scala +22 -0
  68. data/scaffold/rake_tasks/cucumber.rb +2 -3
  69. data/scaffold/rake_tasks/cuke_sniffer.rb +3 -3
  70. data/scaffold/rake_tasks/rspec.rb +3 -4
  71. data/scaffold/rake_tasks/rubocop.rb +4 -5
  72. data/scaffold/rake_tasks/yard.rb +3 -4
  73. metadata +142 -55
  74. data/scaffold/config_files/.ruby-version +0 -1
  75. data/scaffold/config_files/.travis.yml +0 -16
  76. data/scaffold/features/pages/Abstract.rb +0 -14
  77. data/scaffold/features/support/helpers.erb +0 -6
  78. data/scaffold/features/support/responsive.rb +0 -19
  79. data/scaffold/lib/project/version.erb +0 -3
  80. data/scaffold/lib/project.erb +0 -2
  81. data/scaffold/spec/spec_helper.rb +0 -8
metadata CHANGED
@@ -1,119 +1,171 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bddfire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7
4
+ version: 1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant Jagtap
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: cucumber
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ~>
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '1.3'
20
- - - ! '>='
33
+ version: '2.3'
34
+ - - ">="
21
35
  - !ruby/object:Gem::Version
22
- version: 1.3.18
36
+ version: '2.3'
23
37
  type: :runtime
24
38
  prerelease: false
25
39
  version_requirements: !ruby/object:Gem::Requirement
26
40
  requirements:
27
- - - ~>
41
+ - - "~>"
28
42
  - !ruby/object:Gem::Version
29
- version: '1.3'
30
- - - ! '>='
43
+ version: '2.3'
44
+ - - ">="
31
45
  - !ruby/object:Gem::Version
32
- version: 1.3.18
46
+ version: '2.3'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: capybara
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
- - - ~>
51
+ - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: 2.4.4
40
- - - ! '>='
53
+ version: '2.6'
54
+ - - ">="
41
55
  - !ruby/object:Gem::Version
42
- version: 2.4.1
56
+ version: '2.4'
43
57
  type: :runtime
44
58
  prerelease: false
45
59
  version_requirements: !ruby/object:Gem::Requirement
46
60
  requirements:
47
- - - ~>
61
+ - - "~>"
48
62
  - !ruby/object:Gem::Version
49
- version: 2.4.4
50
- - - ! '>='
63
+ version: '2.6'
64
+ - - ">="
51
65
  - !ruby/object:Gem::Version
52
- version: 2.4.1
66
+ version: '2.4'
53
67
  - !ruby/object:Gem::Dependency
54
68
  name: rspec
55
69
  requirement: !ruby/object:Gem::Requirement
56
70
  requirements:
57
- - - ~>
71
+ - - "~>"
58
72
  - !ruby/object:Gem::Version
59
- version: 3.2.0
60
- - - ! '>='
73
+ version: '3.4'
74
+ - - ">="
61
75
  - !ruby/object:Gem::Version
62
76
  version: 3.0.0
63
77
  type: :runtime
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - ~>
81
+ - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: 3.2.0
70
- - - ! '>='
83
+ version: '3.4'
84
+ - - ">="
71
85
  - !ruby/object:Gem::Version
72
86
  version: 3.0.0
73
87
  - !ruby/object:Gem::Dependency
74
88
  name: selenium-webdriver
75
89
  requirement: !ruby/object:Gem::Requirement
76
90
  requirements:
77
- - - ~>
91
+ - - "~>"
78
92
  - !ruby/object:Gem::Version
79
- version: 2.44.0
80
- - - ! '>='
93
+ version: '2.52'
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
- version: 2.41.0
96
+ version: '2.52'
83
97
  type: :runtime
84
98
  prerelease: false
85
99
  version_requirements: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - ~>
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.52'
104
+ - - ">="
88
105
  - !ruby/object:Gem::Version
89
- version: 2.44.0
90
- - - ! '>='
106
+ version: '2.52'
107
+ - !ruby/object:Gem::Dependency
108
+ name: axe-matchers
109
+ requirement: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
91
112
  - !ruby/object:Gem::Version
92
- version: 2.41.0
113
+ version: 1.1.1
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 1.0.0
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 1.1.1
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 1.0.0
127
+ - !ruby/object:Gem::Dependency
128
+ name: be_valid_asset
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.3'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 1.3.0
137
+ type: :runtime
138
+ prerelease: false
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '1.3'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 1.3.0
93
147
  - !ruby/object:Gem::Dependency
94
148
  name: require_all
95
149
  requirement: !ruby/object:Gem::Requirement
96
150
  requirements:
97
- - - ~>
151
+ - - "~>"
98
152
  - !ruby/object:Gem::Version
99
153
  version: 1.3.1
100
- - - ! '>='
154
+ - - ">="
101
155
  - !ruby/object:Gem::Version
102
156
  version: 1.3.0
103
157
  type: :runtime
104
158
  prerelease: false
105
159
  version_requirements: !ruby/object:Gem::Requirement
106
160
  requirements:
107
- - - ~>
161
+ - - "~>"
108
162
  - !ruby/object:Gem::Version
109
163
  version: 1.3.1
110
- - - ! '>='
164
+ - - ">="
111
165
  - !ruby/object:Gem::Version
112
166
  version: 1.3.0
113
- description: ! 'BDDfire: Automate Mobile and Web apps with less code - Instant BDD
114
- framework with Ruby, Cucumber, Capybara, selenium, Appium, Saucelabs, Browserstack,
115
- Testingbot, poltergeist, cuke_sniffer, rubocop, relish, yard and many more awesome
116
- libraries'
167
+ description: 'BDDfire: Automate Mobile and Web apps with less code - Instant BDD framework
168
+ with Ruby, Cucumber, Capybara, selenium, Appium, Docker, Gatling and Axe Engine'
117
169
  email:
118
170
  - shashikant.jagtap@aol.co.uk
119
171
  executables:
@@ -121,7 +173,7 @@ executables:
121
173
  extensions: []
122
174
  extra_rdoc_files: []
123
175
  files:
124
- - .gitignore
176
+ - ".gitignore"
125
177
  - Gemfile
126
178
  - LICENSE
127
179
  - README.markdown
@@ -133,6 +185,7 @@ files:
133
185
  - features/support/env.rb
134
186
  - features/support/support_code.rb
135
187
  - lib/bddfire.rb
188
+ - lib/bddfire/accesibility/axe.rb
136
189
  - lib/bddfire/assertions/assert.rb
137
190
  - lib/bddfire/mobile/mobile_methods.rb
138
191
  - lib/bddfire/mobile/mobile_steps.rb
@@ -143,29 +196,64 @@ files:
143
196
  - lib/bddfire/web/headless_steps.rb
144
197
  - lib/bddfire/web/web_methods.rb
145
198
  - lib/bddfire/web/web_steps.rb
199
+ - pre-defined-steps/accessibility_steps.md
146
200
  - pre-defined-steps/capybara_steps.md
147
201
  - pre-defined-steps/headless_steps.md
202
+ - scaffold/accessibility/features/01_validation.feature
203
+ - scaffold/accessibility/features/02_javascript.feature
204
+ - scaffold/accessibility/features/03_language.feature
205
+ - scaffold/accessibility/features/04_page_titles.feature
206
+ - scaffold/accessibility/features/05_main_landmark.feature
207
+ - scaffold/accessibility/features/06_headings.feature
208
+ - scaffold/accessibility/features/07_minimum_resizable_text.feature
209
+ - scaffold/accessibility/features/08_tabindex.feature
210
+ - scaffold/accessibility/features/09_focusable_controls.feature
211
+ - scaffold/accessibility/features/10_color_contrast.feature
212
+ - scaffold/accessibility/features/11_image.feature
213
+ - scaffold/accessibility/features/12_form.feature
214
+ - scaffold/accessibility/features/13_table.feature
215
+ - scaffold/accessibility/features/general_accessibility_check.feature
216
+ - scaffold/accessibility/features/step_definitions/base.rb
217
+ - scaffold/accessibility/features/step_definitions/form.rb
218
+ - scaffold/accessibility/features/step_definitions/headings.rb
219
+ - scaffold/accessibility/features/step_definitions/image.rb
220
+ - scaffold/accessibility/features/step_definitions/javascript.rb
221
+ - scaffold/accessibility/features/step_definitions/language.rb
222
+ - scaffold/accessibility/features/step_definitions/main_landmark.rb
223
+ - scaffold/accessibility/features/step_definitions/minimum_resizable_text.rb
224
+ - scaffold/accessibility/features/step_definitions/page_title.rb
225
+ - scaffold/accessibility/features/step_definitions/tabindex.rb
226
+ - scaffold/accessibility/features/step_definitions/table.rb
227
+ - scaffold/accessibility/features/step_definitions/validation.rb
228
+ - scaffold/accessibility/features/support/capybara.rb
148
229
  - scaffold/config_files/.relish
149
230
  - scaffold/config_files/.rubocop.yml
150
- - scaffold/config_files/.ruby-version
151
- - scaffold/config_files/.travis.yml
152
231
  - scaffold/config_files/.yard.yml
232
+ - scaffold/config_files/Dockerfile
153
233
  - scaffold/config_files/Gemfile
154
234
  - scaffold/config_files/README.md
155
235
  - scaffold/config_files/Rakefile
156
236
  - scaffold/config_files/browser.json
157
237
  - scaffold/config_files/cucumber.yml
238
+ - scaffold/config_files/docker.sh
158
239
  - scaffold/config_files/package.json
159
240
  - scaffold/features/google.feature
160
- - scaffold/features/pages/Abstract.rb
161
241
  - scaffold/features/pages/HomePage.rb
162
242
  - scaffold/features/step_definitions/google_steps.rb
163
243
  - scaffold/features/support/env.rb
164
- - scaffold/features/support/helpers.erb
165
244
  - scaffold/features/support/hooks.rb
166
- - scaffold/features/support/responsive.rb
167
- - scaffold/lib/project.erb
168
- - scaffold/lib/project/version.erb
245
+ - scaffold/load/Dockerfile
246
+ - scaffold/load/README.md
247
+ - scaffold/load/conf/application.conf
248
+ - scaffold/load/conf/gatling.conf
249
+ - scaffold/load/conf/logback.xml
250
+ - scaffold/load/conf/recorder.conf
251
+ - scaffold/load/docker-jenkins.sh
252
+ - scaffold/load/gatling_jenkins.sh
253
+ - scaffold/load/gatling_local.sh
254
+ - scaffold/load/user-files/bodies/.keep
255
+ - scaffold/load/user-files/data/search.csv
256
+ - scaffold/load/user-files/simulations/SampleLoadTEST.scala
169
257
  - scaffold/rake_tasks/cucumber.rb
170
258
  - scaffold/rake_tasks/cuke_sniffer.rb
171
259
  - scaffold/rake_tasks/rspec.rb
@@ -173,32 +261,31 @@ files:
173
261
  - scaffold/rake_tasks/yard.rb
174
262
  - scaffold/scripts/ci_script
175
263
  - scaffold/scripts/run_appium
176
- - scaffold/spec/spec_helper.rb
177
264
  homepage: https://github.com/Shashikant86/bddfire
178
265
  licenses:
179
266
  - MIT
180
267
  metadata: {}
181
- post_install_message: Thanks for installing BDDfire gem. More exciting BDD stuff on
182
- the way. Stay Tuned !
268
+ post_install_message: Thanks for installing BDDfire gem. BDDfire supports Docker,
269
+ Load Test and Accessibility Testing
183
270
  rdoc_options: []
184
271
  require_paths:
185
272
  - lib
186
273
  required_ruby_version: !ruby/object:Gem::Requirement
187
274
  requirements:
188
- - - ! '>='
275
+ - - ">="
189
276
  - !ruby/object:Gem::Version
190
277
  version: 1.9.3
191
278
  required_rubygems_version: !ruby/object:Gem::Requirement
192
279
  requirements:
193
- - - ! '>='
280
+ - - ">="
194
281
  - !ruby/object:Gem::Version
195
282
  version: '0'
196
283
  requirements: []
197
284
  rubyforge_project:
198
- rubygems_version: 2.4.5
285
+ rubygems_version: 2.4.6
199
286
  signing_key:
200
287
  specification_version: 4
201
- summary: ! 'BDDfire: Automate Mobile & Web apps with less code. An instant Ruby-Cucumber
288
+ summary: 'BDDfire: Automate Mobile & Web apps with less code. An instant Ruby-Cucumber
202
289
  BDD framework'
203
290
  test_files: []
204
291
  has_rdoc:
@@ -1 +0,0 @@
1
- ruby-1.9.3-p194
@@ -1,16 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- rvm:
5
- - 2.0.0
6
-
7
- before_script: 'bundle install'
8
- script: 'bundle exec rake features'
9
-
10
- branches:
11
- only:
12
- - master
13
-
14
- notifications:
15
- email:
16
- - your_email
@@ -1,14 +0,0 @@
1
- class Abstract
2
-
3
- def initialize(session)
4
- @session = Capybara.current_session
5
- end
6
-
7
- def your_abstracted_method1
8
- #your code goes here
9
- end
10
-
11
- def your_abstracted_method2
12
- #your code goes here
13
- end
14
- end
@@ -1,6 +0,0 @@
1
- module <%= project_name.camelize %>
2
- module CucumberHelpers
3
- end
4
- end
5
-
6
- World(<%= project_name.camelize %>::CucumberHelpers)
@@ -1,19 +0,0 @@
1
- # def set_window_size(width, height)
2
- # if Capybara.current_driver == :selenium
3
- # Capybara.current_session.driver.browser.manage.window.resize_to(width, height)
4
- # elsif Capybara.current_driver == :poltergeist
5
- # Capybara.current_session.driver.resize(width, height)
6
- # end
7
- # end
8
- #
9
- # begin
10
- # window_sizes = {
11
- # :'320' => { :width => 320, :height => 480 },
12
- # :'600' => { :width => 600, :height => 769 },
13
- # :'770' => { :width => 770, :height => 1025 },
14
- # :'1026' => { :width => 1026, :height => 1200 },
15
- # }
16
- # window_sizes.default = { :width => 994, :height=> 689 }
17
- # size = window_sizes[(ENV['DEVICE'] || 'default').to_sym]
18
- # set_window_size(size[:width], size[:height])
19
- # end
@@ -1,3 +0,0 @@
1
- module <%= project_name.camelize %>
2
- VERSION = "0.0.1"
3
- end
@@ -1,2 +0,0 @@
1
- module <%= project_name.camelize %>
2
- end
@@ -1,8 +0,0 @@
1
- require "rubygems"
2
- require "bundler/setup"
3
-
4
- require 'rspec'
5
-
6
- RSpec.configure do |config|
7
- config.fail_fast = true
8
- end