Open Jacobvu84 opened 1 year ago
(1)
public static TestOutcome getLastOutcome() {
return StepEventBus.getEventBus().getBaseStepListener().latestTestOutcome().get();
}
(2)
Đặt @Tag("TestCase:TEST-12345")
@Nullable
private static String getTestCaseId(TestOutcome testOutcome) {
TestTag testId = testOutcome.getTags()
.stream()
.filter(tag->"TestCase".equals(tag.getType())).findAny().orElse(null);
return testId.getName();
}