2

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

HGF
  • 51
  • 1
  • 2
  • 7

1 Answers1

1

RFT does not provide any APIs to write to file as such. You will need to use Java to get things done.

Following link should help how to create a file-stack overflow

Community
  • 1
  • 1
Prakash
  • 742
  • 7
  • 19