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
Community Manager

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

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
nmrao
Community Hero

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

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

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

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: