From 0dfd704b53e3db0fa169abe64f32da9573f70f38 Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Tue, 26 Mar 2024 13:35:00 +0400 Subject: [PATCH] fix jbehave runtime api --- .../allure/jbehave5/AllureJbehave5.java | 7 ++- .../allure/jbehave5/AllureJbehave5Test.java | 47 ++++++++++++++++++- .../jbehave5/samples/RuntimeApiSteps.java | 34 ++++++++++++++ .../test/resources/stories/runtimeapi.story | 3 ++ 4 files changed, 88 insertions(+), 3 deletions(-) create mode 100644 allure-jbehave5/src/test/java/io/qameta/allure/jbehave5/samples/RuntimeApiSteps.java create mode 100644 allure-jbehave5/src/test/resources/stories/runtimeapi.story diff --git a/allure-jbehave5/src/main/java/io/qameta/allure/jbehave5/AllureJbehave5.java b/allure-jbehave5/src/main/java/io/qameta/allure/jbehave5/AllureJbehave5.java index 266fbf626..5ef296db8 100644 --- a/allure-jbehave5/src/main/java/io/qameta/allure/jbehave5/AllureJbehave5.java +++ b/allure-jbehave5/src/main/java/io/qameta/allure/jbehave5/AllureJbehave5.java @@ -24,6 +24,7 @@ import io.qameta.allure.model.StatusDetails; import io.qameta.allure.model.StepResult; import io.qameta.allure.model.TestResult; +import io.qameta.allure.util.ResultsUtils; import org.jbehave.core.failures.UUIDExceptionWrapper; import org.jbehave.core.model.ExamplesTable; import org.jbehave.core.model.Scenario; @@ -227,13 +228,15 @@ protected void startTestCase(final String uuid, .map(entry -> createParameter(entry.getKey(), entry.getValue())) .collect(Collectors.toList()); - final List