Bad-Generating a report without @Test annotations #2570
Unanswered
fredisooon
asked this question in
Questions & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
700be9ef-f28d-410a-a57b-1da856861858-result.json
Hi everyone, I'm facing a problem with Allure reporting outside of a testing environment.
Instead of using TestNG, I'm utilizing the Allure.getLifecycle() methods to run my tests. The code inside these methods is annotated with @step and also makes calls to external APIs using rest-assured (meaning there should be attachment records).
The problem is that the generated uuid-result.json files have an incorrect structure. They completely lack any records about requests made through rest-assured, there are no steps annotated with @step, and the nested structure of all steps is broken (everything is at the same level). As a result, the generated report is poorly formatted.
What could have gone wrong here?
allure.version 2.24.0
aspectjweaver.version 1.9.19
Code responded to running test:
`
public static void main(String[] args) {
`
`
@step
public static void testActions(String host) {
`
Broken resulted uuid-result.json file in attachment
Beta Was this translation helpful? Give feedback.
All reactions