如果项目的输出路径包含Visual Studio dll,则编码的UI测试失败 [英] Coded UI test fails if output path of the project contains Visual studio dlls
问题描述
我创建了一个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屋!