CodedUI测试在VS 2015中失败并出现错误:“Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException:要测试Windows应用商店应用,请在Windows应用商店节点下使用Windows应用商店应用的编码UI测试项目模板。” [英] CodedUI tests failing in VS 2015 with error: "Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException: To test Windows Store apps, use the Coded UI Test project template for Windows Store apps under the Windows Store node."

查看:291
本文介绍了CodedUI测试在VS 2015中失败并出现错误:“Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException:要测试Windows应用商店应用,请在Windows应用商店节点下使用Windows应用商店应用的编码UI测试项目模板。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一大堆codedUI测试来测试一个网站用户界面,这个用户界面最初是通过在VS 2015中使用记录和回放技术生成的。我在使用页面对象模型将这些转换为手动编码测试的过程,以便它们更加健壮。
所以我正在使用已经存在的现有方法,我用来调用uimap文件中的记录和回放数据的测试现在调用我创建的一系列页面对象类。


由于某些原因,当我运行测试时,我收到以下错误


"测试方法XXX引发异常: 

Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException:要测试Windows应用商店应用,请在Windows应用商店节点下使用Windows应用商店应用的编码用户界面测试项目模板。"


我不知道上面发生了什么,因为所有测试运行的主测试类都已经存在。为什么现在通过创建页面对象类会出现问题呢?



任何帮助都会一如既往地受到赞赏!



Andy








Andrew Tilston

解决方案

嗨Andy,


我假设您正在测试UWP应用程序,对吗?


根据错误,您需要创建一个编码的UI测试项目(通用窗口):



如果有效,请告诉我。


 


祝你好运,


Fletcher


Hi,

I have a load of codedUI tests to test a website UI which were originally generated by using the record and playback technique in VS 2015. I'm in the process of converting these to hand coded tests using the Page Object Model, so that they are more robust. So I'm using the existing method already in place whereby my test which used to call the record and playback data in the uimap file now calls a series of page object classes I have created.

For some reason when I run the test I am getting the below error

"Test method XXX threw exception: 
Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException: To test Windows Store apps, use the Coded UI Test project template for Windows Store apps under the Windows Store node."

I've no idea why the above is happening given that the master test class from where all the tests run is the one already in place. Why would there now be an issue with what I am doing by creating Page Object classes?

Any help would be much appreciated as always!

Andy



Andrew Tilston

解决方案

Hi Andy,

I assume you are testing UWP app, right?

Based on the error, you need create a coded UI test project(universal windows):

Please let me know if it works.

 

Best regards,

Fletcher


这篇关于CodedUI测试在VS 2015中失败并出现错误:“Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException:要测试Windows应用商店应用,请在Windows应用商店节点下使用Windows应用商店应用的编码UI测试项目模板。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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