Forum Discussion

kannan's avatar
kannan
Occasional Contributor
4 years ago

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

  • nmrao's avatar
    nmrao
    Champion Level 3
    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?
    • kannan's avatar
      kannan
      Occasional Contributor

      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.