Forum Discussion

BrandonCB's avatar
BrandonCB
New Contributor
7 days ago

How to stop TestComplete from failing a test when unrelated processes crash?

Hello! I've been hitting an issue for some time now where TestComplete will intermittently fail my test(s) because some unrelated process that I don't care about crashes. Typically these are Windows processes and they are 100% unrelated to my application or test running. Here's an example of it crashing for "GameBar.exe" which is a Windows process:

I've searched extensively in these forums and there seems to be multiple threads over the last few years reporting the same frustrating behavior but I haven't found an example of how to configure TestComplete to not fail tests for this.

I thought setting the "Process Filter Mode" to something like "Ignore all processes" would address this issue, but it seems to persist:

Could anyone provide guidance on the

proper way to prevent TestComplete from failing due to this? Thank you very much for any help!

  • scottroutesmart's avatar
    scottroutesmart
    Occasional Contributor

    I had this occurring on my old laptop for years and never came to find a reason behind it happening.  The support center was able to offer me the following workaround which I hope will help you.  After I got a new laptop at work, I have not had the issue occur again so it seemed to be something specific to the thermal framework on that laptop because my file that crashed was "dptf_helper.exe".  But, every time I would install a new TestComplete version, I would need to manually make the changes below so that I would not randomly experience this crash failing my tests. 

    Best wishes and keep us updated if it works,
    Scott

    Here is a copy/paste of the steps that SmartBear provided after it was escalated above the first-line support.  (Note:  you will need to look in the directory corresponding to the version of TC you have installed.)

    -----------------------------------------------------------

    The only other work around for ignoring this error message would be to completely disable the message altogether. To do so:

    1. Go to the following folder directories:
    C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\Extensions
    C:\Program Files (x86)\SmartBear\TestComplete 14\x64\Bin\Extensions

    2. In both of these directories, remove or rename the following file: tcJITHook.exe

    3. After doing so, TestComplete will no longer show process crash error messages.

    Note: Please note that TestComplete will hang for a little bit when the application crashes when this file is removed or renamed.

    This will have the side affect of no crashes being detected, but at the moment, there is not a good way to filter out crashes. 

  • Hello,

    Do you have same behaviour on a different station?
    The fact that processes are crashing and TestComplete is affected makes me conclude that there is a relation, be it direct or indirect.

    Try to reset TestComplete setting to default, by un-installing and re-installing. Also, not sure it will help, but try seting the project On error to "Continue running" Project Properties - Playback Options | TestComplete Documentation