Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHello Vijay,
The TestStepResult object contains many parameters of the request and response, but you cannot add additional information to it yourself, so you can't get the actual log messages that you are printing. You would have to recreate the log messages from the result data in the teardown script, just as you are currently doing in the script assertion. Through the TestStepResult object you should have access to all the data you need to do this. Alternatively you could store the log messages through some other method (basically creating the message, logging it, and also storing it for later use).
Regards,
Dain
eviware.com
The TestStepResult object contains many parameters of the request and response, but you cannot add additional information to it yourself, so you can't get the actual log messages that you are printing. You would have to recreate the log messages from the result data in the teardown script, just as you are currently doing in the script assertion. Through the TestStepResult object you should have access to all the data you need to do this. Alternatively you could store the log messages through some other method (basically creating the message, logging it, and also storing it for later use).
Regards,
Dain
eviware.com