使用编码的ui定位Telerik控件时遇到错误 [英] Experiencing errors in locating Telerik controls using coded ui

查看:63
本文介绍了使用编码的ui定位Telerik控件时遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我使用Coded ui手动编码我的测试用例。但是我们所有的应用程序都使用基于Telerik的控件。当我使用"测试"构建器查找每个控件的属性时,TechnologyName属性将返回"TPF"。 



播放测试时的技术不被认可/有效。这真是一个痛苦,因为如果我没有指定技术名称,我找不到控件。





任何帮助将不胜感激

解决方案

朋友,


欢迎来到MSDN论坛。


对于像Telerik UI这样的第三方控件,Coded UI Test Builder并不完全支持他们的所有功能。


在这里,我有两个临时解决方法:


            1.我们可以打开UIMap.Designer.cs文件,并删除所有
"这个。 xxx.TechnologyName"句子。之后,重建解决方案并且测试可以很好地工作。(注意:这样,每次创建新的recordMethod时都需要执行删除句子操作)



           


2.手写代码完全可以解决这个问题,但可能需要一些时间。




最佳 问候,


萨拉


Hi,

I am handcoding my testcases using Coded ui. But all of our applications uses Telerik based controls. WHen i use the Test builder to locate the properties for each control, the TechnologyName property comes back as 'TPF'. 

When playing back the test the technology is not recognized/valid. This is really a pain, as i can not find the control if i do not specify the technology name.

ANY help will be appreciated

解决方案

Hi friend,

Welcome to the MSDN forum.

For third-party controls like Telerik UI, Coded UI Test Builder doesn’t totally support all features for them.

Here, I have two temporary workarounds below for you:

            1.We can just open UIMap.Designer.cs file, and delete all "this.xxx.TechnologyName"sentences. After that, rebuild the solution and the test can work well. (Note:In this way, you need to do the delete-sentence operation every time you create new recordMethod)

           

2. Hand write the code totally can solve this issue, but it may take you some time.

Hope all above can help solve this issue. Looking forward to hearing from you.

Best regards,

Sara


这篇关于使用编码的ui定位Telerik控件时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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