Error creating Coded UI Test in Visual Studio 2010 Ultimate

别来无恙 提交于 2019-12-12 08:47:56

问题


I am attempting to create a Coded UI Test in a Visual Studio 2010 test project.
I right click on the project, Select Add Select Coded UI Test

I then get the error warning:

The following package failed to load: C:\Users[File Path Goes Here]\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll. Coded UI Test is now in an inconsistent state. Remove this package and restart Visual Studio to work with Coded UI Test.

Once I click OK, I can create the Coded UI Test (CUIT) but when the test is over, the test file is empty.

Does anyone know how to fix this problem? I've already deleted my settings, AND reinstalled VS 2010, all to no avail.

Thanks everyone.


回答1:


No idea about the source of the problem, but if you go to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\ and copy the Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll file into the bin/debug directory everything works fine.

I don't know why VS assumes that the .dll is there when it's not, but that is the fix.




回答2:


So, I'm prepared to declare this a massive bug on Microsoft's part, and closing it out.




回答3:


I was able to get past this issue by changing the 'Copy Local' property of the referenced DLL to 'true'. After this change the DLL is automatically copied into the Bin\Debug directory.



来源:https://stackoverflow.com/questions/6630209/error-creating-coded-ui-test-in-visual-studio-2010-ultimate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!