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
support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
Allure.addAttachment("My attachment", "My attachment content"); call not working when called from steps. Attachment can be created, but it is not attached to resulting JSON file and to report accordingly.
getLifecycle().updateStep(attachment -> attachment.withAttachments(new Attachment().withName("test"))); - Not working also.
getLifecycle().updateTestCase(uuid, attachment -> testResult..withAttachments(new Attachment().withName("test"))); - is only working one, when called with valid uuid of the test.
(can be tested inside before/afterScenario in io.qameta.allure.jbehave.AllureJbehave).
But this uuid is not accessible anywhere in the steps.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Expected possibility to add attachments for running scenario/step when using Jbehave.
For now, it is only possible to do inside io.qameta.allure.jbehave.AllureJbehave methods.
(E.g. calling getLifecycle().updateTestCase(uuid, attachment -> attachment.withAttachments(new Attachment().withName("test")));
inside before/afterScenario with current test uuid). Which is not accessible for client side.
What is the motivation / use case for changing the behavior?
Adding attachments for test results.
Please tell us about your environment:
Latest master branch for allure-java (allure-jbehave)
Other information
It may be caused because of getLifecycle().getCurrentTestCase(); is always Optional.Empty when called from steps.
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
What is the current behavior?
Allure.addAttachment("My attachment", "My attachment content"); call not working when called from steps. Attachment can be created, but it is not attached to resulting JSON file and to report accordingly.
getLifecycle().updateStep(attachment -> attachment.withAttachments(new Attachment().withName("test"))); - Not working also.
getLifecycle().updateTestCase(uuid, attachment -> testResult..withAttachments(new Attachment().withName("test"))); - is only working one, when called with valid uuid of the test.
(can be tested inside before/afterScenario in io.qameta.allure.jbehave.AllureJbehave).
But this uuid is not accessible anywhere in the steps.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Described in https://github.com/aKumpan/allure-java/tree/allure-jbehave-attachements-issue
Commit link: aKumpan@7f0be77
What is the expected behavior?
Expected possibility to add attachments for running scenario/step when using Jbehave.
For now, it is only possible to do inside io.qameta.allure.jbehave.AllureJbehave methods.
(E.g. calling getLifecycle().updateTestCase(uuid, attachment -> attachment.withAttachments(new Attachment().withName("test")));
inside before/afterScenario with current test uuid). Which is not accessible for client side.
What is the motivation / use case for changing the behavior?
Adding attachments for test results.
Please tell us about your environment:
Latest master branch for allure-java (allure-jbehave)
Other information
It may be caused because of getLifecycle().getCurrentTestCase(); is always Optional.Empty when called from steps.
The text was updated successfully, but these errors were encountered: