A
A
Antonio2021-03-25 13:35:10
Java
Antonio, 2021-03-25 13:35:10

How to display all failed steps in the allure report?

Hello.

It is necessary that in the allure2 report you can see all the fallen steps. So that the test does not end at the first step that falls.
How can I do that?

I tried to use Softassert, but if you pull it at the end, you can't see which step is the error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonio, 2021-03-30
@Apokaliepsis

Resolved in the following way:

Allure.step("Ошибка", Status.FAILED); 
Allure.getLifecycle().updateStep(testResult -> testResult.setStatus(Status.FAILED)); 
Allure.getLifecycle().stopStep();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question