Skip to content
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

Issue with Scenario level tags #28

Open
vsridhargovx opened this issue Sep 25, 2020 · 1 comment
Open

Issue with Scenario level tags #28

vsridhargovx opened this issue Sep 25, 2020 · 1 comment

Comments

@vsridhargovx
Copy link

vsridhargovx commented Sep 25, 2020

Hello, I have a use-case where I wanted to include Scenario tags in the report, so that I could import them to XRay (Jira cloud for test case management) after the automation tests run.
For instance, lets look at below. The report doesn't log the tag (@xraydemooneupdated) I had defined in the JSON file. I want to map each Scenario in the JSON report with its unique tags, which will be useful when I import the report into Jira/Xray system.
Please advise.

Feature: Sample Xray Feature

  @xraydemooneupdated
  Scenario: Xray Demo Scenario One Updated
    Given a test xray step

It should add the tags into the Scenario section of the report as shown below. The tags JSON object was empty, I manually updated with the unique scenario tag specified in the feature file.
```
"elements": [
{
"id": "ScenarioSample Xray Feature;Scenario: Xray Demo Scenario One Updated",
"keyword": "Scenario",
"line": 0,
"name": "Xray Demo Scenario One Updated",
"skipped": false,
"sourceLine": "undefined",
"status": "passed",
"steps": [
{
"hidden": false,
"keyword": ">",
"match": {
"location": "/Users/vsridhar/IdeaProjects/ptf-testcafe/tests/BillingSolution/bddTests/features/xray/XrayDemo.feature:1:0"
},
"name": "Scenario: Xray Demo Scenario One Updated",
"result": {
"duration": 257,
"status": "passed"
},
"tags": [],
"text": [
"<a href="#">Scenario: Xray Demo Scenario One Updated"
]
}
],
"tags": [{
"name": "@xraydemooneupdated"
}],

"type": "scenario",
"uri": ""
}

@hdorgeval
Copy link
Owner

Hi @vsridhargovx , thank you for your feedback. It would be great if you could provide a sample repo that demonstrates your issue, it will help me to fix that the right way. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants