无法在不同的机器上运行Coded ui测试 [英] Not able to run Coded ui test in different machine

查看:57
本文介绍了无法在不同的机器上运行Coded ui测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的团队,


我有一个编码的UItest dll在我的系统中工作正常,但是当我试图在不同的机器上运行它时,它给了我低于错误:




 < ErrorInfo>

  &NBSP; &NBSP; &NBSP; &NBSP; < Message>无法初始化单元测试扩展"urn:CodedUITest":未为以下属性注册单元测试扩展:Microsoft.VisualStudio.TestTools.UITesting.CodedUITestAttribute。< / Message>

  &NBSP; &NBSP; &NBSP; < / ERRORINFO>



我正在使用VS 2012 Ultimate。


请提供建议解决这个错误。


解决方案

Hi Shasitha,


您是如何通过 MStest.exe或Visual Studio 等命令行在另一台机器上运行测试的?


如果它是由MSTest.exe或VSTest 运行,则需要安装 测试代理,并配置  ;在构建机器上测试控制器。


如果它由VS运行,请确保它以相同的.NET Framework版本为目标。


 


祝你好运,


Fletcher


Dear Team,

I have one coded UItest dll which is working fine in my system, but while I am trying to run the same in different machine it is giving me below error :


 <ErrorInfo>
          <Message>Failed to initialize the unit test extension 'urn:CodedUITest': A unit test extension is not registered for the following attribute: Microsoft.VisualStudio.TestTools.UITesting.CodedUITestAttribute.</Message>
        </ErrorInfo>

I am using VS 2012 Ultimate.

Please suggest how to solve this error.

解决方案

Hi Shasitha,

How did you run the test on another machine, via command line like MStest.exe or Visual Studio?

If it's run by MSTest.exe or VSTest, you need have the test agent installed, and also configure test controller on the build machine.

And if it's run by VS, please make sure that it target the same .NET Framework version.

 

Best regards,

Fletcher


这篇关于无法在不同的机器上运行Coded ui测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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