cuke: test file options
This commit is contained in:
@@ -2,7 +2,23 @@
|
||||
STRESS_TIMEOUT = 300
|
||||
|
||||
Before do |scenario|
|
||||
@scenario_title = scenario.title
|
||||
# feature name
|
||||
case scenario
|
||||
when Cucumber::Ast::Scenario
|
||||
@feature_name = scenario.feature.name
|
||||
when Cucumber::Ast::OutlineTable::ExampleRow
|
||||
@feature_name = scenario.scenario_outline.feature.name
|
||||
end
|
||||
|
||||
# scenario name
|
||||
case scenario
|
||||
when Cucumber::Ast::Scenario
|
||||
@scenario_title = scenario.name
|
||||
when Cucumber::Ast::OutlineTable::ExampleRow
|
||||
@scenario_title = scenario.scenario_outline.name
|
||||
end
|
||||
|
||||
|
||||
@scenario_time = Time.now.strftime("%Y-%m-%dT%H:%m:%SZ")
|
||||
reset_data
|
||||
@has_logged_preprocess_info = false
|
||||
|
||||
Reference in New Issue
Block a user