用UAC对话框弹出的编码ui测试 [英] coded ui test with UAC dialog pops

查看:60
本文介绍了用UAC对话框弹出的编码ui测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的产品的编码ui测试期间,UAC对话框弹出。我如何使用某些方法与UAC对话框进行交互,例如在UAC对话框上单击是/否按钮?

during my coded ui test for our product, the UAC dialog pops. how can i use some methods to interact with UAC dialog, such as click yes / no button on UAC dialog?

任何API或其他解决方案都表示赞赏。

any API or other solution is appreciated.

我们的测试用例必须打开UAC。

The UAC must be turned on for our test cases.

推荐答案

朋友,

您可以使用代码UI测试构建器在手动运行产品时捕获弹出窗口。

You could use code UI test builder to capture the pops while you're running your product manually.

然后我想你可以添加操作对话框的测试代码

Then I think you could add the test code of operating the dialog.

如果您的问题仅仅是因为在处理对话期间测试(我的意思是,如果你总是需要点击
按钮),

If your issue is just because of dealing with the dialog during the test(I mean if you always need click Yes button), 

  C:\Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \IDE

你会发现 QTAgentProcessUI.exe QTAgentService.exe  
如果右键单击,请转到属性,选择兼容性选项卡,然后选中"以管理员身份运行"框。对于这两个文件,这些进程将以提升的权限运行。

you'll find QTAgentProcessUI.exe and QTAgentService.exe.  If you right click, go to properties, select the compatibility tab and check the box "Run as Administrator" for both files these processes will be running with elevated privileges.

祝你好运,

Fletch


这篇关于用UAC对话框弹出的编码ui测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆