Ask a Question

message in execution log on Testcomplete

SOLVED
kathir_43
Regular Visitor

message in execution log on Testcomplete

I have handled the object not present in the web application using event handlers. Now i want to read the message that TestComplete generates when the object is not present, in my scripts and write to external file . Is there a way to read this message? I know log.message will post message to execution results and am specifically looking to read the message generated by TestComplete. 

1 ACCEPTED SOLUTION

Accepted Solutions
chriscc
Occasional Contributor

Re: message in execution log on Testcomplete

Hi Kathir_43.

 

I am not sure what language you are using, but using error handling like a try catch statement can trap the error and allow you to get the message and description of internal or custom errors as when they occur. Once you have the string variables you can write them to your file, something like below.  This shows it running in debug mode, so you can see the internal error message and description. 

 

TryCatch.png

 

Now, the generate Log files (report/error) are xml, so you could navigate to the Error Log using the associated GUID’s. The problem is, as far as I can tell, the error message during runtime doesn’t return a corresponding message Id, so it would be hard to find the exact message. 

You can see the generated message in the image below.  The message is identified as “message 0” with an id of 0. The next one would be “message 1” with an id of 1…

 

ErrorLog.png

 

 

Chris

View solution in original post

1 REPLY 1
chriscc
Occasional Contributor

Re: message in execution log on Testcomplete

Hi Kathir_43.

 

I am not sure what language you are using, but using error handling like a try catch statement can trap the error and allow you to get the message and description of internal or custom errors as when they occur. Once you have the string variables you can write them to your file, something like below.  This shows it running in debug mode, so you can see the internal error message and description. 

 

TryCatch.png

 

Now, the generate Log files (report/error) are xml, so you could navigate to the Error Log using the associated GUID’s. The problem is, as far as I can tell, the error message during runtime doesn’t return a corresponding message Id, so it would be hard to find the exact message. 

You can see the generated message in the image below.  The message is identified as “message 0” with an id of 0. The next one would be “message 1” with an id of 1…

 

ErrorLog.png

 

 

Chris

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: