Ask a Question

TestComplete event handling

KP13
Occasional Contributor

TestComplete event handling

I have created a General Event such as GeneralEvents_OnLogError (Sender, LogParams) ( it's an OnLogError event - Occurs when an error message is posted to the test log) which is being called by both my desktop and web applications, whenever errors occur. I'm capturing the log message in a file by extracting the message using 'LogParams.MessageText'.  Whenever it shows the error as 'The object does not exist. See Additional Information for details', its difficult to get the failure whether happened in Desktop application or Web Application. So, could you please suggest me how I can create a customized function to determine the error happened in Desktop or Web Application.

3 REPLIES 3
AlexKaras
Community Hero

Hi,

 

> to determine the error happened in Desktop or Web Application

Can't this information be obtained from LogParams.AdditionalText?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
KP13
Occasional Contributor

Thanks AlexKaras for your reply. I will try and confirm you.

cneedham
Occasional Contributor

You could set a project variable then it would be in scope to the event handler... Be careful though... make sure you reset the project variable once you read it if you do that. 

cancel
Showing results for 
Search instead for 
Did you mean: