开发者

Error creating Coded UI Test in Visual Studio 2010 Ultimate

开发者 https://www.devze.com 2023-03-18 20:58 出处:网络
I am attempting to create a Coded UI Test in a Visual Studio 2010 test project. I right click on the project,

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, th开发者_StackOverflow社区e 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.


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.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消