如果项目的输出路径包含Visual Studio dll,则编码的UI测试失败 [英] Coded UI test fails if output path of the project contains Visual studio dlls

查看:78
本文介绍了如果项目的输出路径包含Visual Studio dll,则编码的UI测试失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个UI测试项目。如果编码的UI测试项目的输出路径包含以下dll,则测试无法识别控件,但指定了适当的属性。

I have created a UI Test project. If the output path of coded UI test project contains the following dlls, then the test fails to idenitfy the controls, though proper properties are specified.

- Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll

-          Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll

-          
Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll

-          Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll

-          
Microsoft.VisualStudio.TestTools.UITest.Common.dll

-          Microsoft.VisualStudio.TestTools.UITest.Common.dll

-          
Microsoft.VisualStudio.TestTools.UITest.Extension.dll

-          Microsoft.VisualStudio.TestTools.UITest.Extension.dll

-          
Microsoft.VisualStudio.TestTools.UITesting.dll

-          Microsoft.VisualStudio.TestTools.UITesting.dll

 

如果这些dll从输出路径中删除,一切正常。 

 

能否告诉我们导致问题的原因是,如果这些dll存在于输出路径中?

 

推荐答案

请设置"CopyLocal"对于项目引用中的这些dll,为false。不应将这些dll复制到输出路径。
Please set "CopyLocal" to false for these dlls in your project references. These dlls should not get copied to the output path.


这篇关于如果项目的输出路径包含Visual Studio dll,则编码的UI测试失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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