Open vvyushmanov opened 2 months ago
Update:
I tried running the tests separately and in a row (within a test class). Turned out, the first test I launch has all the steps inside the listener correctly, while every other consequential test does not.
To my understanding, this has to do something with how Step Lyfecycle is determined. Is there any way to "reset" Step lifycycle after every test explicitely? Or maybe any other way to mitigate this issue.
Please let me know if any additional information is needed.
And here I launch the test isolated, the steps are present:
What happened?
Hi!
I am trying to integrate allure report with my okhttp3-sse SSE tests. Particularly, I use EventSourceListener to asyncronously collect events to then process them with different asserts.
I tried adding
AllureOkHttp3
interceptor, but this completely breaks the code, looks like it consumes the events and they do not reach theonEvent
in the listener.Also, without this integration, any methods annotated with
@Step
annotation, that are executed within the listener, are not present in the report.I am not sure if this is a bug, but maybe you could point me in a direction on how I can make sure my
@Step
methods are included in the report (like some mumbo-jumbo with AspectJ).Here's my SSEClient class:
What Allure Integration are you using?
allure-okhttp3
What version of Allure Integration you are using?
2.27.0
What version of Allure Report you are using?
2.27.0
Code of Conduct