Visual Studio 2012-编码的UI测试无法运行 [英] Visual Studio 2012 - Coded UI Test Wont Run

查看:95
本文介绍了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.

这篇关于Visual Studio 2012-编码的UI测试无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆