如何使用VS2015远程运行测试? [英] How do I run tests remotely with VS2015?

查看:187
本文介绍了如何使用VS2015远程运行测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些CodedUI测试,我想在Visual Studio的远程计算机上运行.现在曾经是您要在某个地方安装一个测试控制器,在要运行的盒子上安装一个测试代理,让他们交谈,然后使用指向该控制器的测试设置文件.我正在经历此过程,并在运行框上安装了2015 Update 3的代理.我注意到没有控制器配置选项.经过一番谷歌搜索后,我发现了这个:

I've got some CodedUI tests I'd like to run on a remote machine from visual studio. Now it used to be that you'd install a test controller somewhere, a test agent on the box you want to run on, get them talking, then use a test settings file that was pointed to that controller. I was going through this and installed agents for 2015 update 3 on my run box. I noticed that there is no controller configuration option. After some googling I found this: https://vstfsalm.wordpress.com/2015/08/18/tfs-2015-test-agent-has-not-been-configured-run-the-test-agent-configuration-tool-to-configure-the-test-agent/. Very cool. So I go in to tfs to set up a machine group. Great. The part I don't get is: how can I now tell VS to run at that group? Test settings files require a controller when they are set to remote run. Do I have to downgrade the agents back to 2013? Does anyone know if Microsoft just didn't implement this work style in 2015 (on purpose or otherwise) or if it just isn't implemented yet?

推荐答案

要通过基于TFS update3的vNext运行代码UI测试.首先,请确保代码UI测试可以在本地远程计算机上的Visual Studio中成功执行.另外,不要忘记将构建代理配置为与桌面进行交互.

To run the code UI test via vNext build on TFS update3. First make sure the code UI test can be executed successfully in your Visual Studio on your remote machine locally. Also don't forget to configure the build agent to interact with desktop.

然后,您只需要添加在RemoteTestMachine上部署TestAgent 任务并运行功能测试.当您对构建进行排队时,它将把您的代码ui测试解决方案部署到构建服务器计算机上的放置文件夹中.然后使用MSTEST运行测试程序集.与通过本地计算机上的MSTEST命令行运行代码UI测试相同.

Then you just need to add Deploy TestAgent on RemoteTestMachine task and run Functional test. When you queue a build, it will deploy your code ui test solution to the drop folder on the build server machine. Then use MSTEST to run the test assembly. It's same with running code UI test via MSTEST command line on your local machine.

更新

问:Test Agent 2015是否支持以下所有支持的方案: Visual Studio 2013的测试控制器和测试代理?

Q: Will the Test Agent 2015 support all the scenarios supported by Test Controller and Test Agent of Visual Studio 2013?

A:我们建议您在所有新的自动化测试方案中使用Visual Studio 2015代理.您可以在构建定义中使用部署测试代理"任务来在计算机上下载并安装测试代理.下表显示了Visual Studio 2013代理支持的方案以及Team Foundation Server(TFS)2015和Team Services(TS)的替代方案.

A: We recommend you use Agents for Visual Studio 2015 in all the new automated testing scenarios. You can use the Deploy Test Agents task in a build definition to download and install the test agents on your machine. The following table shows the scenarios supported by Agents for Visual Studio 2013 and the alternatives for Team Foundation Server (TFS) 2015 and Team Services (TS).

源链接:安装并配置测试代理

当前,此方案没有其他选择.您可能必须使用测试代理2013才能实现.

Currently, there is no alternative for this scenarion. You may have to use test agent 2013 to achieve it.

这篇关于如何使用VS2015远程运行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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