allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Allure logs all skipped steps into the report even when they do nothing since failed in previous steps

Open Hungleminh opened this issue 2 years ago • 3 comments

Problem: I'm running script using pabot and listener allure-robotframework. The problem is when the current steps failed, allure didn't stop at this step, but still log all the rest steps of current test. Can someone know any configuration of allure to stop at the failed steps and run into teardown?

Please see the attached screenshot. I got error at step 1, but the report log all the rest steps as red. Screen Shot 2022-08-08 at 14 42 54

Hungleminh avatar Aug 08 '22 07:08 Hungleminh

I run by command: pabot --pabotlib --processes $NUMBER_OF_PROCESS --listener "allure_robotframework;$DIR_REPORT"

Hungleminh avatar Aug 08 '22 07:08 Hungleminh

Hey @Hungleminh ! could you please provide tests (.robot files) example reproducing this problem?

skhomuti avatar Aug 10 '22 11:08 skhomuti

@skhomuti Please see the attached screenshot for robot file. also I use below command to run:

robot --listener "allure_robotframework;${ALLURE_RESULT_PATH}" ${PATH_TO_TEST}

Screen Shot 2022-08-10 at 21 07 15

Hungleminh avatar Aug 10 '22 14:08 Hungleminh

Yea, I see. Seems like these steps should be 'Skipped' as earlier, not failed. It's definetely a bug and I'll fix this. Steps should be present in report like from builtin robotframework html report but they should not be failed

skhomuti avatar Sep 13 '22 13:09 skhomuti