Forum Discussion

md1's avatar
md1
New Contributor
4 years ago

Need SoapUI to write TestRunner automation success or failure message to 1 of 2 files

Please help!

I need a Groovy script to do the following SoapUI automation.

 

if(TestRunner has failed) then,
      overwrite "no duplicates allowed error" or "plain old error" into
      a new file named "FAILED.txt"

else if (TestRunner has success) then,
      overwrite "Ok" into a new file named "SUCCESS.txt"



Or possibly could these 2 files be written into with some kind of SoapUI report feature?


Thanks in advanced