Visual Studio 2012-编码的UI测试无法运行

Visual Studio 2012-编码的UI测试无法运行

问题描述:

我正在尝试在Visual Studio 2012中创建一个编码UI测试。当我添加新测试时,VS将自动启动记录器。然后,在要测试的WinForms应用程序中进行一些基本单击。我结束录音并生成一个脚本。当我尝试运行该脚本时,它运行正常,但出现运行时错误

I'm trying to create a Coded UI Test in Visual Studio 2012. When I add a new test VS will automatically start the recorder. I then do some basic clicks around in the WinForms application I want to test. I end the recording and generate a script. When I try to run that script it complies fine but I get the runtime error


消息:单元测试适配器引发异常:未找到方法:'Void Microsoft.VisualStudio.TestTools.Diagnostics.NonVSSqmClient..ctor(UInt32)'..

"Message: Unit Test Adapter threw exception: Method not found: 'Void Microsoft.VisualStudio.TestTools.Diagnostics.NonVSSqmClient..ctor(UInt32)'.."

如何获取我的

Visual Studio 2012唯一支持编码UI测试的版本是Premium和Ultimate。

The only versions of Visual Studio 2012 that support Coded UI Testing are Premium and Ultimate.

http:// www。 microsoft.com/visualstudio/eng/products/compare

这些版本应该能够运行您的脚本。

Those versions should be able to run your scripts.