测试运行程序错误消息 [英] Test Runner Error message

查看:83
本文介绍了测试运行程序错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Microsoft测试管理器来运行自动化的UI测试.

我记录了MTM 2015的自动化过程,一切都很好.

,但是在执行自动测试运行后,它会停止单击窗格.请参阅下面的错误消息.

MTM2015是否需要HTML元素具有唯一ID?

感谢托马斯

推荐答案

Thomas,

Hi Thomas,

>> MTM2015是否需要HTML元素具有唯一ID?

是的.在MTM中播放测试与在VS中播放代码UI测试相同.

Yes. Playback the test in MTM is same as playback the code UI test in VS.

因此,如果存在与"Pane"相同的搜索属性,则页面中的控件.回放测试时.

So if there exist the same search property with the "Pane" control in the page. When playback the test.

它将显示与您提供的错误消息相同的消息.

It will give the error message which is same to your offered.

解决此问题.一种想法是,您可以将MTM中记录的测试与Visual Studio中的Code UI测试相对比,并修改记录脚本,然后使用唯一的搜索属性,然后重试.

To solve this problem. One idea is that you could convent the test recorded in MTM to the Code UI test in Visual Studio and modify the record script then use a unique search property then try it again.

或者您可以与开发团队联系以更改"Pane"广告素材的唯一ID.控制.

Or you may contact with the development team to change a unique ID for the "Pane" control.

最好的问候,

肖湖


这篇关于测试运行程序错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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