Error creating Coded UI Test in Visual Studio 2010 Ultimate

I am trying to create a coded interface test in a Visual Studio 2010 test project.
I right click on the project, Select Add Select an encoded user interface

Then I get an error warning:

The following package failed to load: C: \ Users [The file path goes here] \ Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll. The coded user interface is now in an inconsistent state. Remove this package and restart Visual Studio to work with testing the encoded interface.

As soon as I click OK, I can create a Coded UI Test (CUIT), but when the test is finished, the test file is empty.

Does anyone know how to fix this problem? I already deleted my settings and reinstalled VS 2010, but to no avail.

Thanks to everyone.

+6
source share
3 answers

So, I am ready to declare this a huge mistake on the Microsoft side and close it.

+3
source

I don’t know 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 Microsoft.VisualStudio.TestTools.UITest.Extension. The IE.dll file in the bin / debug directory is working fine.

I do not know why VS suggests that .dll is when it is not, but this is a fix.

+3
source

I was able to overcome this problem by changing the Copy Local property of the specified DLL to true. After this change, the DLL is automatically copied to the Bin \ Debug directory.

+2
source

Source: https://habr.com/ru/post/892355/


All Articles