Is there's a way to write log output to the txt file in Groovy Script test step?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017
07:56 AM
07-26-2017
07:56 AM
Is there's a way to write log output to the txt file in Groovy Script test step?
Is there's a way to write log output to the txt file in Groovy Script test step?
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017
08:29 AM
07-26-2017
08:29 AM
Here you go
//You can change the log content
def content = "This is the message that user like to log, but to a file"
//You can change the file name def fileName = '/tmp/test.log' //Write to the file new File(fileName).write(content)
Regards,
Rao.
