编码的用户界面:如何自动化从主窗口打开的第二个窗口? [英] Coded UI:How to automate second window opened from main window?

查看:55
本文介绍了编码的用户界面:如何自动化从主窗口打开的第二个窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用已编码的UI测试项目(通用Windows)来自动化通用Windows应用.在通用Windows应用的自动化过程中,当从主窗口单击打开第二个窗口时,我无法通过十字准线在第二个窗口上进行断言 十字准线工具未显示其对第二个窗口的影响.

在第二个窗口"打开的少数情况下,无法通过十字准线工具在这些窗口上进行断言:

例如:
浏览,
(i)设置->系统->显示->高级显示设置->颜色设置->色彩管理.
这将打开颜色管理窗口,工具无法识别该窗口上的任何对象.

(ii)设置->系统->显示->高级显示设置->颜色设置->颜色校准.
这会打开颜色校准窗口,工具"无法识别该窗口上的任何对象.
有人可以为此提供解决方案吗?

Hi,

I am using Coded UI test project(Universal Windows) for automating Universal Windows Apps.During automation of Universal Windows Apps,When second Window opens on clicking from main window,I am unable to make assertions on second window through crosshair tool.Crosshair tool is not showing its impact on second window.

Few Scenarios where Second Window opens,assertions are not able to make on these windows through crosshair tool:

Eg:
Navigate through,
(i) Setting--> System--> Display--> Advanced display settings--> Colour Settings--> Colour management.
This opens colour management window,Tool is not recognizing any object on this window.

(ii) Setting--> System--> Display-->Advanced display settings--> Colour Settings--> Colour calibration.
This opens colour calibration window, Tool is not recognizing any object on this window.
Can anyone provide the solution for this?

推荐答案

您好,vennu,

Hi vennu,

我尝试使用两种工具(编码的UI测试项目(通用Windows)  测试(编码的UI测试项目) )

I tried to test it with both kinds of tools (Coded UI test project(Universal Windows)  and Test(Coded UI Test Project)  )

结果显示编码的UI测试项目(通用Windows)不适用于 颜色管理窗口.相反, Test(编码的UI测试项目)可以识别它并进行断言.

The result showed Coded UI test project(Universal Windows) does not work on the Color management window. Instead, Test(Coded UI Test Project) could recognize it and make assertions.

我们发现颜色校准是相同的原因.

We could find out it’s the same reason for Color calibration.

在测试应用程序之前,我们需要知道应用程序的种类,因为只有使用相应的Coded UI测试工具才能帮助我们正确地测试它.

We need know the kind of the app before we test it, because only by using the corresponding Coded UI test tool could help us to test it properly.

最诚挚的问候

Fletcher


这篇关于编码的用户界面:如何自动化从主窗口打开的第二个窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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