TestComplete event handling
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> 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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
