-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI / Location values in JSON 'can not be determined with webdriver.io' ? #60
Comments
Hi @raumB WebdriverIO behaves in a different way regarding Cucumber reports in comparison to other frameworks that use CucumberJS. WebdriverIO has its own way of reporting and this module is translating that way back into JSON. |
This data should be available now as we updated the payload information with the last Cucumber release. @raumB you want to give us a hand and help us fix this? |
Thanks a lot for the updates. I understand that in principle an enhancement with regard to the mentioned properties would be possible. With which exact versions of WDIO and Cucumber such an enhancement would work together? I'm asking since we are still using WDIO v6 for some other reason. Maybe we would need to go to v7 and maybe also switch in parallel to higher versions of other components? Thanks and kind regards. |
@raumB I would recommend to switch to v7 anyway. If you aren't a TypeScript user this update should be fairly simple. See more on this in our migration guide. Then we can fix this and release a new version of the reporter that you can then use in your project. Happy to help in this process. |
We plan to evaluate v7 for our test setup. |
@christian-bromann @wswebcreation |
I've checked the output but the WDIO reporter is not giving back this information for the reporter. Will keep this one open, but this might first need to be fixed in the Cucumber framework adapter |
Does also the WDIO v7 reporter does not give back this information? |
Nope, this is not given back, but maybe something Cucumber is giving back, but not passing it to the Cucumber framework adapter. Need to dive into this as this might be a 3rd party dependency, but if someone wants to take a look at it then be my guest |
Some info for the person who's going to pick this up
|
I've looked into this again, I can determine the Do you happen to know how this could be added to the |
Unfortunately the |
@wswebcreation |
@wswebcreation |
Sorry for not getting back to this. I have it on my to-do list, which is pretty long ATM :(, but will notify you when this is released |
Hi @wswebcreation |
I hope before the end of the month |
Hi @wswebcreation, |
A new version has been published, see https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/releases/tag/v4.2.0 This will now add the [
{
"keyword": "Feature",
"type": "feature",
"description": "",
"line": 2,
"name": "Sample",
"uri": "/Users/Git/wdio-cucumber-v6-v7/v7/test/features/sample.feature",
"tags": [
{
"location": {
"line": 1,
"column": 1
},
"name": "@sample",
"id": "4"
}
],
"elements": [
{
"keyword": "Scenario",
"type": "scenario",
"description": "",
"name": "cukes",
"tags": [
{
"name": "@sample",
"astNodeId": "4"
}
],
"id": "sample;cukes",
"steps": [
{
"arguments": [],
"keyword": "Before",
"name": "",
"result": {
"status": "passed",
"duration": 1000000
},
"line": null,
"match": {
"location": "can not be determined with webdriver.io"
}
},
{
"arguments": [],
"keyword": "Before",
"name": "",
"result": {
"status": "passed",
"duration": 0
},
"line": null,
"match": {
"location": "can not be determined with webdriver.io"
}
},
{
"arguments": [],
"keyword": "Given",
"name": "I have a background",
"result": {
"status": "passed",
"duration": 2000000
},
"line": null,
"match": {
"location": "can not be determined with webdriver.io"
}
},
{
"arguments": [],
"keyword": "Given",
"name": "I have 42 cukes in my belly",
"result": {
"status": "passed",
"duration": 2905000000
},
"line": null,
"match": {
"location": "can not be determined with webdriver.io"
}
},
{
"arguments": [],
"keyword": "After",
"name": "",
"result": {
"status": "passed",
"duration": 1000000
},
"line": null,
"match": {
"location": "can not be determined with webdriver.io"
}
}
]
}
],
"id": "sample",
"metadata": {
"browser": {
"name": "chrome",
"version": "97.0.4692.71"
},
"device": "Test Device",
"platform": {
"name": "ios",
"version": "14"
}
}
}
]
Can you please confirm and then close this issue if this fixes your needs |
Hi @wswebcreation, thank you so much! I forwarded this information to development and hope to get feedback very quickly. |
Hi @wswebcreation, |
Cool, thanks for the update |
Hi @wswebcreation, |
|
Hi @wswebcreation, |
Thanks for the answer, officially the If they want to have the step name they need to use the combination of {
"arguments": [],
"keyword": "Given",
"name": "I have 42 cukes in my belly",
"result": { "status": "passed", "duration": 1322000000 },
"line": null,
"match": { "location": "can not be determined with webdriver.io" }
}, |
Hi Wim, |
Sure, no problem |
Any updates @silke-vormbrock ? |
Describe your question with as much detail as possible
Hello, being not a specialist in this subject I just wanted to understand the reason for https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/blob/v6/lib/reporter.js#L238 and https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/blob/v6/lib/reporter.js#L319. Is this due to some principle technical restriction and it never would be possible to have the URI / location parameters implemented? Thanks and kind regards.
If it's about a specific piece of code, try and include some of it to support your question.
(https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/blob/v6/lib/reporter.js#L238)
(https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/blob/v6/lib/reporter.js#L319)
Environment (please complete the following information):
Additional context
Cucumber reporters for other technologies seem to to offer these parameters which could be used for forward navigation to the test case.
The text was updated successfully, but these errors were encountered: