Forum Discussion

soapuifan's avatar
soapuifan
Occasional Contributor
12 years ago

get the content of script and logged msgs to the file

Hi,
during execution (testrunner) of tests, the status files are produced for all the steps in test case.
For all test steps which are groovy scripts the following file content is produced - eg:

file name:

mysuite-mytestcase-myscript-0-OK.txt

file content - see between START_OF_FILE and END_OF_FILE scripts:

<START OF FILE>

Status: OK
Time Taken: 49
Size: 0
Timestamp: Tue Jul 10 10:55:08 CEST 2012
TestStep: My_Script

----------------- Messages ------------------------------


<END OF FILE>

How to manipulate this file content to have here in this file all log messages the given script produces,
and would be very good to get in this file the content of the given step too (the listing of given script itself)

Pls advise...