cancel
Showing results for 
Search instead for 
Did you mean: 

Open file Security - Warning Popup

SOLVED
Highlighted
Occasional Contributor

Open file Security - Warning Popup

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.

 

 

Muralidhar_0-1594222480830.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Open file Security - Warning Popup

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

 

View solution in original post

11 REPLIES 11
Highlighted
Community Hero

Re: Open file Security - Warning Popup

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.

Tags (1)
Highlighted
Occasional Contributor

Re: Open file Security - Warning Popup

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.

Highlighted
Community Leader

Re: Open file Security - Warning Popup

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

Highlighted
Community Hero

Re: Open file Security - Warning Popup

Hi,

 

during the Test Execution the script is failing.

Any more details as for what and how exactly is failing?

 

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

Re: Open file Security - Warning Popup

@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.

Highlighted
Community Hero

Re: Open file Security - Warning Popup

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

 

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
================================
Highlighted
Community Hero

Re: Open file Security - Warning Popup

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.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

Re: Open file Security - Warning Popup

@AlexKaras 

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.

 

Muralidhar_0-1594300480121.png

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"

Muralidhar_1-1594300497402.png

 

Highlighted
Community Manager

Re: Open file Security - Warning Popup

Thank you everyone for participating in this thread.

 

@Muralidhar Will tristaanogre's advice to turn off UAC work for you?


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors