从MTM / TFS 2015运行编码ui测试 [英] Running coded ui tests from MTM /TFS 2015

查看:75
本文介绍了从MTM / TFS 2015运行编码ui测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


最近,我已将我的编码ui项目从VS2013终极升级到VS2015企业。我还将TFS从TFS2013升级到TFS 2015。


在升级项目之后,我添加了对所有与测试项目相关的编码ui测试的参考。我还在tfs构建服务器上安装了VS2015企业版,因此​​它将注册coed ui相关的dll。   然而,当我在检查我的编码到tfs源项目后运行自动化测试时
-  使用编码的ui构建,它显示以下消息,


单元测试适配器引发异常:无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。 


我之前从未见过此消息。升级之前一切正常。我添加了下面列出的dll的引用,并附带了我的测试项目的dll。如果我使用部署将这些dll添加到我的测试设置文件中,则系统会在消息后显示
..


单元测试适配器引发异常:无法加载文件或程序集'Microsoft .VisualStudio.QualityTools.Sqm,Version = 14.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。系统找不到指定的文件..


引用并附加到我的测试项目的Dll如下所示:


1.Microsoft.VisualStudio.QualityTools .CodedUITestFramework


2.Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll


3.Microsoft.VisualStudio.TestTools.UITest.Common.dll


4.Microsoft.VisualStudio.TestTools.UITest.Extension.dll


5.Microsoft.VisualStudio.TestTools.UITesting.dll


6.DevExpress.CodedUIExtension.VS14.v15.1.dll




请告诉我如何解决这个问题。


谢谢





 


解决方案

< blockquote>

您好CodeUIVS2012,  


感谢您的帖子。


您正在使用TFS 2015 XAML构建定义(TfvcTemplate.12.xaml)运行代码UI测试吗?


在构建代理计算机上,尝试使用VS 2015手动运行Code UT测试项目,检查它是否可以成功执行。您需要确保您的Code UI测试项目可以在构建代理计算机上找到所有必需的dll。


Hi,

Recently, I have upgraded my coded ui project from VS2013 ultimate to VS2015 enterprise. I also upgraded TFS from TFS2013 to TFS 2015.

After, upgrading the project, I added reference to all coded ui tests related reference to the test project. I also installed VS2015 enterprise on tfs build server, so that it will register coed ui related dlls.   However, when I run automated tests after checking in my coded to tfs source project -  using coded ui build, it displays following message,

Unit Test Adapter threw exception: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. 

I have never seen this message before. Prior to upgrade everything was working fine. I added reference of the dll listed below and also attached the dlls with my test project. if I add these dlls to my test setting file using deployment, then , system displays following message..

Unit Test Adapter threw exception: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Sqm, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified..

Dlls referenced and attached to my test project are listed below :

1.Microsoft.VisualStudio.QualityTools.CodedUITestFramework

2.Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll

3.Microsoft.VisualStudio.TestTools.UITest.Common.dll

4.Microsoft.VisualStudio.TestTools.UITest.Extension.dll

5.Microsoft.VisualStudio.TestTools.UITesting.dll

6.DevExpress.CodedUIExtension.VS14.v15.1.dll

Please let me know how to solve this issue.

Thank you

 

解决方案

Hi CodeUIVS2012,  

Thanks for your post.

You’re running your Code UI test using TFS 2015 XAML build definition(TfvcTemplate.12.xaml)?

On your build agent machine, try manually run your Code UT test project using VS 2015, check if it can be executed successfully. You need ensure your Code UI test project can find all the required dlls on build agent machine.


这篇关于从MTM / TFS 2015运行编码ui测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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