Forum Discussion
khoffman90
13 years agoContributor
Hi thought I’d try to help.
As soon as any error occurs (except for errors which occur due to script/code being wrong) Test Complete goes to the onLogError handler to see how you would like to deal with the error.
As far as my knowledge goes LogParams (the information about the current error) is passed to the event error and you can use
http://support.smartbear.com/viewarticle/28074/
http://support.smartbear.com/viewarticle/32762/
to deal with errors.
So for example i think this should work:
If(LogParams.MessageText == “Message that is usually posted to the log when the error occurs”){
//deal with this type of error
}
http://support.smartbear.com/viewarticle/31750/
As soon as any error occurs (except for errors which occur due to script/code being wrong) Test Complete goes to the onLogError handler to see how you would like to deal with the error.
As far as my knowledge goes LogParams (the information about the current error) is passed to the event error and you can use
http://support.smartbear.com/viewarticle/28074/
http://support.smartbear.com/viewarticle/32762/
to deal with errors.
So for example i think this should work:
If(LogParams.MessageText == “Message that is usually posted to the log when the error occurs”){
//deal with this type of error
}
http://support.smartbear.com/viewarticle/31750/