编码的UI测试无法找到对刚刚记录的操作的控制 [英] Coded UI Test can't find control for action just recorded

查看:65
本文介绍了编码的UI测试无法找到对刚刚记录的操作的控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近将我们的项目升级到了运行在Windows 10上的VS2015. 我们记录的几个UI地图现在都无法找到某些控件(通过IE 11浏览器的ASP.NET应用程序).我什至尝试重新记录UI Map,但是没有运气.  当我使用查找UI控件"时,找不到文本框,按钮或任何类型的控件.查看UI Map时的方法,即使用于记录该操作的浏览器仍处于打开状态.  它实际上找不到控件 我只是使用编码的UI测试生成器进行记录的.

We have recently upgraded our project to VS 2015 running on Windows 10.  Several of our recorded UI Maps are now failing to find certain controls (ASP.NET application through IE 11 browser).  I have even tried to re-record the UI Map but no luck.  It cannot find a textbox, button or any type of control when I use the "Locate the UI Control" method when viewing the UI Map, even though the browser that was used to record that action is still open.  It literally cannot find the control I just recorded using the Coded UI Test Builder.

它找不到顶层窗口,文档或下面的任何控件.  如果我手动编辑名称"条目的搜索属性"运算符,则从等于"到包含"(在地图中的窗口控件上)或标题"的过滤器属性"条目 文档控件类型,那么它将至少能够找到这两个更高级别的控件.  但是我无能为力,它无法找到文本框,按钮等.甚至不能简单地找到具有显式ID的DIV标签.

It cannot find the top level Window, the Document or any control underneath.  If I manually edit the Search Properties operator for the Name entry from Equals to Contains (on the Window control in the Map) or the Filter Properties entry for Title on the Document control type, it will then be able to at least find those two higher level controls.  But nothing I have been able to do will allow it to find the textboxes, buttons, etc. Not even simple a DIV tags with an explicit ID can be located.

换句话说,编码UI测试对我或我的团队不再可靠.

In other words, Coded UI tests no longer work reliably for me or my team.

我们将不知所措,下一步将不胜枚举.

Thoughts / help will be much appreciated as we are now at a loss on what to do next.

推荐答案

戴夫,

感谢您的信息.

>>>我们最近将项目升级到了运行在Windows 10上的VS2015. 我们记录的几个UI Maps现在都无法找到某些控件(通过IE 11浏览器的ASP.NET应用程序).

>>We have recently upgraded our project to VS 2015 running on Windows 10.  Several of our recorded UI Maps are now failing to find certain controls (ASP.NET application through IE 11 browser).

看来您的旧版本Visual Studio中的测试项目可以成功播放?

It seems like your test project in your old version of Visual Studio can be playback successfully?

如果是,请告诉我您的旧Visual Studio版本是什么?

If so, please tell me what the version of your old Visual Studio?

为了更好地解决问题,请在回放测试后提供详细的日志信息.

In order to better troubleshoot your issue, please provide the detailed log information after playback your test.

请按照以下步骤启用编码的UI测试日志

Please follow the steps below to enable the Coded UI Test Logs

https://msdn.microsoft.com/en-us/library/jj159363.aspx

最好的问候,

湖肖


这篇关于编码的UI测试无法找到对刚刚记录的操作的控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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