Ask a Question

Prevent logging an error when a process crashes.

autoguy1
Occasional Contributor

Prevent logging an error when a process crashes.

So my application actually has a bug that is not going to get fixed. There is a scenario where a certain process will crash and restart. I am not using this process in my test and do not care about it. However, TestComplete is logging an error when this process crashes and since it is irrelevant to my test I would like to avoid this from happening.

 

The error I am getting is :  The (ProcessName).exe process crashed.

 

Is there a way I can tell TestComplete to ignore this particular error or process? 

6 REPLIES 6
Marsha_R
Community Hero

Re: Prevent logging an error when a process crashes.

Go in Current Project Properties and try this (Chrome.exe is my example here - use Add Process to put your own in the list)

 

Marsha_R_0-1630026081469.png

 


Marsha_R
[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
autoguy1
Occasional Contributor

Re: Prevent logging an error when a process crashes.

I did try this and I am still getting messages that this process crashed.  I would like to add that I don't want to ignore this process throughout my project. It is a part of the application I use in other tests. There is just an edge case that causes it to crash and I want to ignore the fact that it crashes since it will autorestart anyway. 

Marsha_R
Community Hero

Re: Prevent logging an error when a process crashes.

I don't know if there's a "sometimes ignore this process" option.  I'd check with Support directly.  Here's the link:

https://support.smartbear.com/testcomplete/message


Marsha_R
[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
AlexKaras
Community Hero

Re: Prevent logging an error when a process crashes.

Hi,

 

Consider to use OnLogError event handler and block this error from been posted to test log.

 

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
================================
autoguy1
Occasional Contributor

Re: Prevent logging an error when a process crashes.

The OnLogError Event documentation specifically states it is not raised on a "The .... process crashed" error. 

I did find a post from a couple of years ago with someone having a similar issue but there was no resolution. I guess currently I will just put a log to check if this is the only failure. This test may get removed eventually if we get network suite working. I was just curious if there was a fix in the meantime. It is looking like maybe there isn't. 

AlexKaras
Community Hero

Re: Prevent logging an error when a process crashes.

Hi,

 

The OnLogError Event documentation specifically states it is not raised on a "The .... process crashed" error. 

Thank you for this note.

(One more reminder that it is a good habit to review TestComplete's documentation to refresh one's (mine;) ) memory.)

 

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
================================
cancel
Showing results for 
Search instead for 
Did you mean: