Ask a Question

how to stop exporting failed test cases result to a file in - FAIL.txt in afterStep

kannan
Occasional Contributor

how to stop exporting failed test cases result to a file in - FAIL.txt in afterStep

I have lots of pre steps in my test suite which might fail sometime but that is expected. But the problem here is this is generating a FAIL.txt file in Jenkins machine  . is there any way to stop creating this file  ?

 

Thanks in Advance.

3 REPLIES 3
sonya_m
SmartBear Alumni (Retired)

Hi @kannan ! I am not sure there's an easy way to achieve what you'd like. However, if you are using our plugin, you can try using test runners as its alternative and get the needed reports through parameters.

An article on test runners, hope this is helpful - https://support.smartbear.com/readyapi/docs/integrations/jenkins.html#command-line


Sonya Mihaljova
Community and Education Specialist

nmrao
Community Hero

Do you have any script in the afterStep event? Would you please show if there is one? Can't you disable that if you don't need?


Regards,
Rao.
kannan
Occasional Contributor

kannan_0-1615798945252.png

I had added a simple print statement in TestRunListener.afterStep but this is not getting executed for Rest Test Step however it is getting executed for Groovy Test Steps. 

cancel
Showing results for 
Search instead for 
Did you mean: