CodedUiTest和VS2017 [英] CodedUiTest and VS2017

查看:108
本文介绍了CodedUiTest和VS2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个使用VS2015创建的Coded UI测试项目和Infragistics版本15.1(Windows窗体)

已测试的应用程序已迁移到VS2017和Infragistics版本17.2,因此我也需要迁移我的Coded Ui测试项目。

我安装VS2017,VS2017中的编码Ui测试扩展,Infragistics 17.2和编码UI扩展。

然后我重建了我的项目,修复了所有编译问题并开始测试。

I始终获取以下错误:



System.ArgumentException:以下不是有效的技术名称:Infragistics.UIA.v17.2。要搜索控件,您必须指定有效的技术名称。

参数名称:TechnologyName



我还尝试创建一个新的清洁在我的应用程序上进行项目并注册一些操作。

同样的错误。

解决方案

嗨Giulini87,


欢迎来到MSDN论坛。


根据你的描述,我从以下主题得到一个小示例项目:


类似问题。


感谢您的理解。


问候,


Judyzh


Hi,
I have a Coded UI test project, created with VS2015 and Infragistics Version 15.1 (Windows Forms)
The tested application was migrated to VS2017 and Infragistics Version 17.2 and so I need to migrate my Coded Ui Test Project too.
I installed VS2017, the Coded Ui Test Extension in VS2017, Infragistics 17.2 and the Coded UI Extension.
Then I rebuilded my project, fixed all compilation issues and started the tests.
I always obtain an error that is:

System.ArgumentException: The following is not a valid technology name: Infragistics.UIA.v17.2. To search for a control, you must specify a valid technology name.
Parameter name: TechnologyName

I also tried to create a new clean project and register some actions on my application.
Same error.

解决方案

Hi Giulini87,

Welcome to the MSDN forum.

According to your description, I get a small example project from following thread:

https://www.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/118061/codeduitest-and-vs2017

I test this project and I can repro your issue use my Visual Studio 2017 with Infragistics_20172_Platform.

I find the Windows Form controls be taken as "Infragistics.UIA.v17.2" when use coded UI test builder generate code. I suggest you work around this issue by handing code instead of using coded UI test builder generated code.

You could take a look at this similar issue.

Thanks for your understanding.

Regards,

Judyzh


这篇关于CodedUiTest和VS2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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