I'm writing a negative test script in order to deliberately generate error messages which will be displayed on the screen to the end user. I've written the script and it works, and I added a System.print in order to write the message to the console.
My question is how do I write this message to a txt file instead? I'd like to have the error message automatically added to a text file after each run.
Thanks