Closed NastaNe closed 6 years ago
i was also facing the same issue...with all the latest version
Hi, I am experiencing the same issue with dependencies: "allure-commandline": "^2.5.0", "cucumber": "^4.2.1", "wdio-allure-reporter": "0.6.2", "wdio-cucumber-framework": "^2.1.0", "webdriverio": "^4.12.0"
Dummy scenario:
Feature: Navigation in app
Scenario: I can navigate between pages
Given I have opened the app
And I am logged in
Scenario: I can check the app
Given I have opened the app
When I have opened the app
Then I have opened the app
The problem here is the order in which the messages are sent.
All steps are assigned to the last, because "event": "suite:start",
are send together and after all steps
V1.1.1
{"event":"suite:start","cid":"0-0","uid":"SEARCH TOOLS ONE1","title":"SEARCH TOOLS ONE","pending":false,"parent":null,"type":"suite","file":"/src/features/testSimple/search_ONE.feature","err":{},"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"suite:start","cid":"0-0","uid":"GOOGLE3","title":"GOOGLE","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"/src/features/testSimple/search_ONE.feature","err":{},"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"test:start","cid":"0-0","uid":"I open the url \"https://www.google.com/\"4","title":"I open the url \"https://www.google.com/\"","pending":false,"parent":"GOOGLE3","type":"test","file":"/Users/src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"GOOGLE"}
{"event":"test:pass","cid":"0-0","uid":"I open the url \"https://www.google.com/\"4","title":"I open the url \"https://www.google.com/\"","pending":false,"parent":"GOOGLE3","type":"test","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":458,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"test:start","cid":"0-0","uid":"I pause for 3000ms5","title":"I pause for 3000ms","pending":false,"parent":"GOOGLE3","type":"test","file":"/Users/src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"GOOGLE"}
{"event":"test:pass","cid":"0-0","uid":"I pause for 3000ms5","title":"I pause for 3000ms","pending":false,"parent":"GOOGLE3","type":"test","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":3007,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"suite:end","cid":"0-0","uid":"GOOGLE3","title":"GOOGLE","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":3477,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"suite:start","cid":"0-0","uid":"DUCK DUCK GO8","title":"DUCK DUCK GO","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"/src/features/testSimple/search_ONE.feature","err":{},"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"test:start","cid":"0-0","uid":"I open the url \"https://duckduckgo.com/\"9","title":"I open the url \"https://duckduckgo.com/\"","pending":false,"parent":"DUCK DUCK GO8","type":"test","file":"/Users/src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"DUCK DUCK GO"}
{"event":"test:pass","cid":"0-0","uid":"I open the url \"https://duckduckgo.com/\"9","title":"I open the url \"https://duckduckgo.com/\"","pending":false,"parent":"DUCK DUCK GO8","type":"test","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":334,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"test:start","cid":"0-0","uid":"I pause for 3000ms10","title":"I pause for 3000ms","pending":false,"parent":"DUCK DUCK GO8","type":"test","file":"/Users/src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"DUCK DUCK GO"}
{"event":"test:pass","cid":"0-0","uid":"I pause for 3000ms10","title":"I pause for 3000ms","pending":false,"parent":"DUCK DUCK GO8","type":"test","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":3010,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"suite:end","cid":"0-0","uid":"DUCK DUCK GO8","title":"DUCK DUCK GO","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":3354,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
{"event":"suite:end","cid":"0-0","uid":"SEARCH TOOLS ONE1","title":"SEARCH TOOLS ONE","pending":false,"parent":null,"type":"suite","file":"/src/features/testSimple/search_ONE.feature","err":{},"duration":6885,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[]}
V2.2.2
{"event":"suite:start","cid":"0-0","uid":"SEARCH TOOLS ONE1","title":"SEARCH TOOLS ONE","pending":false,"parent":null,"type":"suite","file":"src/features/testSimple/search_ONE.feature","err":{},"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":"Feature"}
{"event":"suite:start","cid":"0-0","uid":"GOOGLE3","title":"GOOGLE","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"src/features/testSimple/search_ONE.feature","err":{},"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":null}
{"event":"suite:start","cid":"0-0","uid":"DUCK DUCK GO7","title":"DUCK DUCK GO","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"src/features/testSimple/search_ONE.feature","err":{},"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":null}
{"event":"test:start","cid":"0-0","uid":"I open the url \"https://www.google.com/\"4","title":"I open the url \"https://www.google.com/\"","pending":false,"parent":"GOOGLE3","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"GOOGLE","keyword":null}
{"event":"test:pass","cid":"0-0","uid":"I open the url \"https://www.google.com/\"4","title":"I open the url \"https://www.google.com/\"","pending":false,"parent":"GOOGLE3","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":338,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":"Given ","argument":[]}
{"event":"test:start","cid":"0-0","uid":"I pause for 3000ms5","title":"I pause for 3000ms","pending":false,"parent":"GOOGLE3","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"GOOGLE","keyword":null}
{"event":"test:pass","cid":"0-0","uid":"I pause for 3000ms5","title":"I pause for 3000ms","pending":false,"parent":"GOOGLE3","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":3009,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":"And ","argument":[]}
{"event":"suite:end","cid":"0-0","uid":"GOOGLE3","title":"GOOGLE","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":3567,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":null}
{"event":"test:start","cid":"0-0","uid":"I open the url \"https://duckduckgo.com/\"8","title":"I open the url \"https://duckduckgo.com/\"","pending":false,"parent":"DUCK DUCK GO7","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"DUCK DUCK GO","keyword":null}
{"event":"test:pass","cid":"0-0","uid":"I open the url \"https://duckduckgo.com/\"8","title":"I open the url \"https://duckduckgo.com/\"","pending":false,"parent":"DUCK DUCK GO7","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":318,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":"Given ","argument":[]}
{"event":"test:start","cid":"0-0","uid":"I pause for 3000ms9","title":"I pause for 3000ms","pending":false,"parent":"DUCK DUCK GO7","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":0,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"featureName":"SEARCH TOOLS ONE","scenarioName":"DUCK DUCK GO","keyword":null}
{"event":"test:pass","cid":"0-0","uid":"I pause for 3000ms9","title":"I pause for 3000ms","pending":false,"parent":"DUCK DUCK GO7","type":"test","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":3010,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":"And ","argument":[]}
{"event":"suite:end","cid":"0-0","uid":"DUCK DUCK GO7","title":"DUCK DUCK GO","pending":false,"parent":"SEARCH TOOLS ONE1","type":"suite","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":6901,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":null}
{"event":"suite:end","cid":"0-0","uid":"SEARCH TOOLS ONE1","title":"SEARCH TOOLS ONE","pending":false,"parent":null,"type":"suite","file":"src/features/testSimple/search_ONE.feature","err":{},"duration":6910,"runner":{"0-0":{"browserName":"chrome","name":"SEARCH TOOLS ONE"}},"specs":["/Users/src/features/testSimple/search_ONE.feature"],"tags":[],"keyword":null}
Hello, I recently updated to 2.0.1 version and run into this problem. My steps of features is all assigned to one scenario. And when using for example allure framework I am receiving unknown results for all others scenario.
The example feature file:
And result in spec reporter:
In allure report:
Dependencies: "cucumber": "4.1.0", "webdriverio": "4.9.11" "wdio-allure-reporter": "0.6.1", "wdio-cucumber-framework": "2.0.1"
With "wdio-cucumber-framework": "1.1.1" all is working fine