Forum Discussion
YMinaev
Staff
14 years agoHi,
Can you clarify your request - what "error/warning message" do you mean? At the time OnStopTest executes, nothing is being posted to the log. And there can be multiple errors or warnings posted during the test execution.
If you just want to have the last error or warning in OnStopTest, handle the OnLogError (and/or OnLogWarning) event, save the message text to a project variable and then use this variable in the OnStopTest handler.
Can you clarify your request - what "error/warning message" do you mean? At the time OnStopTest executes, nothing is being posted to the log. And there can be multiple errors or warnings posted during the test execution.
If you just want to have the last error or warning in OnStopTest, handle the OnLogError (and/or OnLogWarning) event, save the message text to a project variable and then use this variable in the OnStopTest handler.