Detecting unresponsive applications

I use ReFramework, and within my Process.xaml, I am using different applications, let’s say Excel for example.

Sometimes, the applications “crash”, and present a popup: “Microsoft Excel has stopped responding”. The automation does not detect this, does not crash, die, fall on it’s face or anything like that. It just hangs, sometimes for hours, blocking other jobs.

So my question is: How do I most effectively detect this kind of popup? It occurs randomly, more or less, so not at any specific point in my automations.

Also, it is not actually Excel, but some other, old, very proprietary, unimpressive application, whose name should never be spoken :smiley:

-Jeppe

You can use element exist and also include the workflow in try catch activity so that if there is exception due to application crash you will capture it and design other workflow accordingly.

@dhanraj.nimbalkar The problem is I have a very large process.xaml file in my ReFramework project, and these unresponsive applications tend to happen more or less randomly.

Hello @jjes

As you have mentioned you are using the Re-framework, if you are using a Ui based automation if the application is crashed, obviously it will throw an exception as selector not found. if this exception is thrown it should capture as system exception.

In case of excel also if excel gets crashed, as per my understanding the system will be throwing an exception.

In your case is it not throwing the exception?

Thanks

@Rahul_Unnikrishnan no “Selector not found” exception is being thrown. I am simply talking about detecting a popup that appears at any point during the execution of the entire process.xaml file.

Hi @jjes ,

I would suggest you to run another process in the background just to close the popup.

I once encountered an issue when sometimes a popup used to appear after reading an excel file and the situation was same, the process just used to hang for hours, no error or anything. So, I handled that thing by using start process activity and using VBScript to send Esc command and close the popup.

I’m attaching the VBScript code I used in my case, I hope it can be helpful to you
Script.zip (451 Bytes)
.

BR,
Ahmad

Thanks @ahmad.sultan, but I need to detect the popup inside the automation and throw a SystemException when it appears, so that the transaction is retried.