n***@anakatech.com
2018-10-01 13:55:40 UTC
Hello,
I want somehow to mark the failing tests because of known issues into the
test report.
I was thinking about something like the following into the @After hook but
I don't know how can I override the current scenario's Result:
@After
public void afterScenario(Scenario scenario) {
if (scenario.isFailed() && scenario.getSourceTagNames().contains(
"someJiraIssueNumber") {
// change result here
scenario.add(new Result("knownIssue", null, null));
}
}
Regards,
Nayden
I want somehow to mark the failing tests because of known issues into the
test report.
I was thinking about something like the following into the @After hook but
I don't know how can I override the current scenario's Result:
@After
public void afterScenario(Scenario scenario) {
if (scenario.isFailed() && scenario.getSourceTagNames().contains(
"someJiraIssueNumber") {
// change result here
scenario.add(new Result("knownIssue", null, null));
}
}
Regards,
Nayden
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.