Hi,
How can we handle these "Open file Security - Warning" popups in Testcomplete14.
How can I click on the Run button?
While accessing the desktop application I am getting this popup.
I can able to map those buttons 'Run' and 'Cancel' but during the Test Execution the script is failing.
Solved! Go to Solution.
Hi @sonya_m
Actually that's a Client machine and they wants the system and application should be in such a way.
So I have overcome the issue in a different manner.
There is some issue with the TestedApps script because of which I couldn't able to click the run button. So I have launched the Application without using the TestedApps and that's worked for me.
Script:
Step1: Double click on the Application Icon which is on the Desktop.(Captured the Application Icon as an Image)
Step2: Clicked the Run button.
ISSUE RESOLVED
Does this pop-up occur if you do these steps manually? Is it something that you expect to happen?
It's hard to tell from the screenshot but it looks like the Run button may be disabled.
Yes, If I open the application manually I will get that popup
Actually we are using that application in the Client RDP machine and that is how the application has to be.
And Run is not disabled.
A quick fix ..
Send key alt R or send key TAB + Enter will do the job
Alt + R = shortcut for Run normally
or
Tab put focus on Run button (because by default it's focused on Cancel button) and then Enter to validate Run button.
Un sourire et ça repart
Hi,
> during the Test Execution the script is failing.
Any more details as for what and how exactly is failing?
@BenoitB Not working
Let me explain my code structure
Step 1 Testedapp.AppName.Run script to Launch the application
Step 2 Delay
Step 3 Script for clicking the "Run" button
Testcomplete Execution is Hanging-up at "Testedapp.AppName.Run" step, not even Delay command in Step 2 is executing.
Hi,
Try to use the Runner.CallObjectMethodAsync() method to launch your tested application (https://support.smartbear.com/testcomplete/docs/scripting/calling-methods-asynchrounously.html).
I.e. something like:
var oTestApp = TestedApps.Items("AppName");
Runner.CallObjectMethodAsync(oTestApp, "Run");
// here wait for either the app starts or Run dialog appears and process it
I believe this is something also controlled by UAC. For your test automation machine, you could turn down or off UAC so that such prompts won't come up.
As mentioned Test Execution is Hanged up until I click the "Cancel" button which is on the "Open File - Security Warning" popup.
Even If I click the Testcomplete Stop button, the execution wasn't stop until unless I click the Cancel button on the Popup.
On clicking the Cancel button the Test Execution will stop and In the Logs I am getting a message stating "Unable to run the Application" and "test execution was interrupted"
Thank you everyone for participating in this thread.
@Muralidhar Will tristaanogre's advice to turn off UAC work for you?
Subject | Author | Latest Post |
---|---|---|