You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addAttribute functionality not working for Scenario Or Feature
Environment
WebdriverIO version: 7.0.7
wdio-reportportal-version version: 7.0.0
Node.js version: v14.16.1
WDIO Testrunner and version(mocha\cucumber\jasmine): cucumber 7.2.1
Details
I don't like to have the tags in the suite titles, so I'm trying to add them using a different approach using addAttribute. Even though If i look for the attribute keys/values, those are in fact added to ReportPortal. Those are not assigned to the executed Feature or Scenario
It would be good to have the chance to remove tags from title when using the parseTagsFromTestTitle functionality
Code To Reproduce Issue [ Good To Have ]
/**
* Runs before a Cucumber feature
*/
beforeFeature: async function (uri, feature) {
let tags = Array.from(feature['tags'])
tags.forEach(function (featureTagItem) {
reportportal.addAttribute({key: 'tag', value: featureTagItem['name']})
})
},
/**
* Runs before a Cucumber scenario
*/
beforeScenario: async function (world) {
let tags = Array.from(world['gherkinDocument']['feature']['tags'])
tags.forEach(function (featureTagItem) {
reportportal.addAttribute({key: 'tag', value: featureTagItem['name']})
})
},
The text was updated successfully, but these errors were encountered:
This would be great to have. For some reason I can't get addAttribute to work at all in Cucumber; not in wdio hooks, cucumber hooks, nor step definitions. parseTagsFromTestTitle seems to work fine though.
I'm jumping on this too. For Cucumber, I cannot add attributes either at feature-level, scenario-level, or step-level. Having these attributes would be a huge improvement.
The problem
addAttribute functionality not working for Scenario Or Feature
Environment
Details
I don't like to have the tags in the suite titles, so I'm trying to add them using a different approach using addAttribute. Even though If i look for the attribute keys/values, those are in fact added to ReportPortal. Those are not assigned to the executed Feature or Scenario
It would be good to have the chance to remove tags from title when using the parseTagsFromTestTitle functionality
Code To Reproduce Issue [ Good To Have ]
The text was updated successfully, but these errors were encountered: