unobtainium-cucumber 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/Gemfile.lock +18 -11
- data/features/multi.feature +11 -0
- data/features/step_definitions/multi.rb +20 -0
- data/lib/unobtainium-cucumber/version.rb +1 -1
- data/lib/unobtainium-cucumber.rb +4 -0
- data/unobtainium-cucumber.gemspec +6 -4
- metadata +41 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1536dbe03d9a927d71215e77c49761b1592ee34
|
4
|
+
data.tar.gz: f1016d43b7e61f8ca3eb841c39ca23c06cb8cf48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 929b79e684a003cb937bf6e6045f1bde6aac02ecd572201fc2bd370c18f189e06802b660333e424ba7254fbec07edcb00aa651b7c860764a0458c62778fdf1ed
|
7
|
+
data.tar.gz: d861ed535955247e012a6a953f031cb04de1ee46056040c6c7afaf9941c42a884e66db7ea9fd3f7c90e0136b7458788d2107cfbfd5ef676e540eca4eee2aefad
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unobtainium-cucumber (0.
|
4
|
+
unobtainium-cucumber (0.3.0)
|
5
5
|
cucumber (~> 2.0)
|
6
6
|
octiron (~> 0.1)
|
7
|
-
unobtainium (~> 0.
|
7
|
+
unobtainium (~> 0.11)
|
8
|
+
unobtainium-multifind (~> 0.3)
|
9
|
+
unobtainium-multiwait (~> 0.2)
|
8
10
|
|
9
11
|
GEM
|
10
12
|
remote: https://rubygems.org/
|
11
13
|
specs:
|
12
|
-
appium_lib (9.
|
14
|
+
appium_lib (9.1.1)
|
13
15
|
awesome_print (~> 1.6)
|
14
|
-
json (
|
16
|
+
json (>= 1.8)
|
15
17
|
nokogiri (~> 1.6, >= 1.6.6)
|
16
|
-
selenium-webdriver (~> 2
|
18
|
+
selenium-webdriver (~> 3.0, >= 3.0.2)
|
17
19
|
tomlrb (~> 1.1)
|
18
20
|
archive-zip (0.7.0)
|
19
21
|
io-like (~> 0.3.0)
|
@@ -46,14 +48,14 @@ GEM
|
|
46
48
|
ffi (1.9.14)
|
47
49
|
gherkin (4.0.0)
|
48
50
|
io-like (0.3.0)
|
49
|
-
json (
|
51
|
+
json (2.0.2)
|
50
52
|
lazy_priority_queue (0.1.1)
|
51
53
|
mini_portile2 (2.1.0)
|
52
54
|
multi_json (1.12.1)
|
53
55
|
multi_test (0.1.2)
|
54
56
|
nokogiri (1.6.8.1)
|
55
57
|
mini_portile2 (~> 2.1.0)
|
56
|
-
octiron (0.
|
58
|
+
octiron (0.3.0)
|
57
59
|
collapsium (~> 0.8)
|
58
60
|
rgl (~> 0.5)
|
59
61
|
parser (2.3.3.1)
|
@@ -74,7 +76,7 @@ GEM
|
|
74
76
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
75
77
|
ruby-progressbar (1.8.1)
|
76
78
|
rubyzip (1.2.0)
|
77
|
-
selenium-webdriver (
|
79
|
+
selenium-webdriver (3.0.3)
|
78
80
|
childprocess (~> 0.5)
|
79
81
|
rubyzip (~> 1.0)
|
80
82
|
websocket (~> 1.0)
|
@@ -87,11 +89,16 @@ GEM
|
|
87
89
|
sys-proctable (1.1.3)
|
88
90
|
tomlrb (1.2.3)
|
89
91
|
unicode-display_width (1.1.2)
|
90
|
-
unobtainium (0.
|
92
|
+
unobtainium (0.11.0)
|
91
93
|
collapsium (~> 0.8)
|
92
94
|
collapsium-config (~> 0.4)
|
93
95
|
ptools (~> 1.3)
|
94
96
|
sys-proctable (~> 1.1)
|
97
|
+
unobtainium-multifind (0.3.0)
|
98
|
+
unobtainium (~> 0.5)
|
99
|
+
unobtainium-multiwait (0.2.0)
|
100
|
+
unobtainium (~> 0.5)
|
101
|
+
unobtainium-multifind (~> 0.3)
|
95
102
|
websocket (1.2.3)
|
96
103
|
yard (0.9.5)
|
97
104
|
|
@@ -99,12 +106,12 @@ PLATFORMS
|
|
99
106
|
ruby
|
100
107
|
|
101
108
|
DEPENDENCIES
|
102
|
-
appium_lib
|
109
|
+
appium_lib (>= 9.1)
|
103
110
|
bundler (~> 1.13)
|
104
111
|
chromedriver-helper
|
105
112
|
codeclimate-test-reporter
|
106
113
|
phantomjs
|
107
|
-
rake (~> 11.
|
114
|
+
rake (~> 11.3)
|
108
115
|
rubocop (~> 0.46)
|
109
116
|
selenium-webdriver
|
110
117
|
simplecov (~> 0.12)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
#
|
3
|
+
# unobtainium-cucumber
|
4
|
+
# https://github.com/jfinkhaeuser/unobtainium-cucumber
|
5
|
+
#
|
6
|
+
# Copyright (c) 2016 Jens Finkhaeuser and other unobtainium-cucumber
|
7
|
+
# contributors. All rights reserved.
|
8
|
+
#
|
9
|
+
|
10
|
+
Given(/^I have a driver$/) do
|
11
|
+
if driver.nil?
|
12
|
+
raise "No driver found!"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
Then(/^I expect it to respond to "([^"]*)"$/) do |methname|
|
17
|
+
if not driver.respond_to?(methname.to_sym)
|
18
|
+
raise "Driver does not respond to '#{methname}'!"
|
19
|
+
end
|
20
|
+
end
|
data/lib/unobtainium-cucumber.rb
CHANGED
@@ -10,6 +10,10 @@
|
|
10
10
|
require 'unobtainium'
|
11
11
|
require 'unobtainium-cucumber/version'
|
12
12
|
|
13
|
+
# Require dependencies
|
14
|
+
require 'unobtainium-multifind'
|
15
|
+
require 'unobtainium-multiwait'
|
16
|
+
|
13
17
|
# First things first: extend the World. Otherwise nothing in this file will
|
14
18
|
# work.
|
15
19
|
World(Unobtainium::World)
|
@@ -34,19 +34,21 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
35
35
|
spec.require_paths = ["lib"]
|
36
36
|
|
37
|
-
spec.required_ruby_version = '>= 2.
|
37
|
+
spec.required_ruby_version = '>= 2.2'
|
38
38
|
|
39
39
|
spec.add_development_dependency "bundler", "~> 1.13"
|
40
40
|
spec.add_development_dependency "rubocop", "~> 0.46"
|
41
|
-
spec.add_development_dependency "rake", "~> 11.
|
41
|
+
spec.add_development_dependency "rake", "~> 11.3"
|
42
42
|
spec.add_development_dependency "simplecov", "~> 0.12"
|
43
43
|
spec.add_development_dependency "yard", "~> 0.9"
|
44
|
-
spec.add_development_dependency "appium_lib"
|
44
|
+
spec.add_development_dependency "appium_lib", ">= 9.1"
|
45
45
|
spec.add_development_dependency "selenium-webdriver"
|
46
46
|
spec.add_development_dependency "chromedriver-helper"
|
47
47
|
spec.add_development_dependency "phantomjs"
|
48
48
|
|
49
|
-
spec.add_dependency "unobtainium", "~> 0.
|
49
|
+
spec.add_dependency "unobtainium", "~> 0.11"
|
50
|
+
spec.add_dependency "unobtainium-multifind", "~> 0.3"
|
51
|
+
spec.add_dependency "unobtainium-multiwait", "~> 0.2"
|
50
52
|
spec.add_dependency "cucumber", "~> 2.0"
|
51
53
|
spec.add_dependency "octiron", "~> 0.1"
|
52
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unobtainium-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Finkhaeuser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '11.
|
47
|
+
version: '11.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '11.
|
54
|
+
version: '11.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '9.1'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '9.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: selenium-webdriver
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,42 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
145
|
+
version: '0.11'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.11'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: unobtainium-multifind
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.3'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.3'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: unobtainium-multiwait
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.2'
|
146
174
|
type: :runtime
|
147
175
|
prerelease: false
|
148
176
|
version_requirements: !ruby/object:Gem::Requirement
|
149
177
|
requirements:
|
150
178
|
- - "~>"
|
151
179
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
180
|
+
version: '0.2'
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
182
|
name: cucumber
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,6 +229,7 @@ files:
|
|
201
229
|
- features/action_support.feature
|
202
230
|
- features/driver_reset.feature
|
203
231
|
- features/extensions.feature
|
232
|
+
- features/multi.feature
|
204
233
|
- features/octiron_events.feature
|
205
234
|
- features/status_actions.feature
|
206
235
|
- features/step_definitions/action.rb
|
@@ -208,6 +237,7 @@ files:
|
|
208
237
|
- features/step_definitions/driver_reset.rb
|
209
238
|
- features/step_definitions/extensions.rb
|
210
239
|
- features/step_definitions/mocks/scenario.rb
|
240
|
+
- features/step_definitions/multi.rb
|
211
241
|
- features/step_definitions/octiron_events.rb
|
212
242
|
- features/step_definitions/status_actions.rb
|
213
243
|
- features/support/env.rb
|
@@ -233,7 +263,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
263
|
requirements:
|
234
264
|
- - ">="
|
235
265
|
- !ruby/object:Gem::Version
|
236
|
-
version: '2.
|
266
|
+
version: '2.2'
|
237
267
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
268
|
requirements:
|
239
269
|
- - ">="
|
@@ -250,6 +280,7 @@ test_files:
|
|
250
280
|
- features/action_support.feature
|
251
281
|
- features/driver_reset.feature
|
252
282
|
- features/extensions.feature
|
283
|
+
- features/multi.feature
|
253
284
|
- features/octiron_events.feature
|
254
285
|
- features/status_actions.feature
|
255
286
|
- features/step_definitions/action.rb
|
@@ -257,6 +288,7 @@ test_files:
|
|
257
288
|
- features/step_definitions/driver_reset.rb
|
258
289
|
- features/step_definitions/extensions.rb
|
259
290
|
- features/step_definitions/mocks/scenario.rb
|
291
|
+
- features/step_definitions/multi.rb
|
260
292
|
- features/step_definitions/octiron_events.rb
|
261
293
|
- features/step_definitions/status_actions.rb
|
262
294
|
- features/support/env.rb
|