Module: BrowserStackCucumber
- Defined in:
- lib/browserstack/version.rb,
lib/browserstack/wait_until.rb,
lib/browserstack/with_rescue.rb,
lib/browserstack/browserstack.rb,
lib/browserstack/jenkins_formatter.rb
Defined Under Namespace
Modules: RetryHelper, WaitUntil
Classes: Config, JenkinsFormatter
Constant Summary
collapse
- VERSION =
'0.2'
Class Method Summary
collapse
Class Method Details
.around_hook_impl(scenario, block) ⇒ Object
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
|
# File 'lib/browserstack/browserstack.rb', line 209
def around_hook_impl(scenario, block)
my_browser = BrowserStackCucumber::Config.init_browser(scenario)
unless scenario.instance_of? ::Cucumber::Ast::OutlineTable::ExampleRow
scenario.steps.each do |step|
step.instance_variable_set(:@skip_invoke, false)
end
end
block.call
BrowserStackCucumber::Config.close_browser
end
|
.before_hook_impl ⇒ Object