Ask a Question

TestComplete event handling

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.

Champion Level 3



> to determine the error happened in Desktop or Web Application

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


  /Alex [Community Champion]
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Occasional Contributor

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

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. 

Showing results for 
Search instead for 
Did you mean: