如何TFS构建过程中进行配置,测试控制器执行的测试剂测试? [英] How can TFS build process be configured to execute tests on Test Agents through a Test Controller?

查看:476
本文介绍了如何TFS构建过程中进行配置,测试控制器执行的测试剂测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有在特定的测试环境设定为我们的夜间运行的自动化注册3测试代理一个Visual Studio测试控制器。我已经看到了具有生成代理运行测试大量文档,但我们需要测试执行要经过控制器并运行测试代理来代替。

We have a Visual Studio test controller with 3 registered test agents in a specific test environment setup for our nightly automation runs. I've seen ample documentation on having the build agents run the tests, but we need the test execution to go through the controller and run from the test agents instead.

我的想法是编辑的构建过程模板,所以它会触发这些远程执行测试的执行,然后等待试运行结果,但我有建立模板没有经验,我一直无法找到任何实例展示如何我可以做到这一点。这当然是假设编辑构建过程是摆在首位的最佳/正确的解决方案。

My thought was to edit the build process template so it would trigger the execution of these remotely executed tests and then wait for the test run results, but I have no experience with build templates and I've been unable to find any examples showing how I might accomplish this. And this is of course assuming that editing the build process is the best/correct solution in the first place.

有人可以用在构建结束触发测试远程执行经验/部署周期点我在正确的方向吗?

Can someone with experience with triggering remote execution of tests at the end of a build/deploy cycle point me in the right direction please?

推荐答案

其实,你don'have改变任何东西到您的模板。只要确保你的生成定义指的是配置了远程执行正确的测试和testsettings文件。

Actually, you don'have to change anything to your template. Just make sure your build definition refers to the correct tests and testsettings file that are configured for remote execution.

第1步:
请打开 http://msdn.microsoft.com/en-us/library/ee256991的.aspx ,然后向下滚动到部分远程执行或数据收集到解决方案中添加一个测试设置。按照这个创建远程执行测试设置文件。

Step 1: Please open http://msdn.microsoft.com/en-us/library/ee256991.aspx and scroll down to the section "Add a test settings for remote execution or data collection to your solution". Follow this to create a test settings file for remote execution.

第二步:
编辑您的构建定义:去处理页面,标题为2.基本下,单击...露底的自动化测试对话框。它的自动化测试对话框中,单击添加。然后,为您的测试设置文件浏览(用于远程执行,您刚刚创建的),并确认您的选择。

Step 2: Edit your build definition: go to the Process page, under heading "2. Basic", open the Automated Tests dialog by clicking the "..."at the end. It the Automated Tests dialog, click "Add". Then browse for your test settings file (for remote execution, the one you just created) and confirm your choices.

现在保存构建定义和队列构建。自动的,你的测试在远程系统上正在执行的,因为你的testsettings文件告诉构建系统这样做。

Now save your build definition and queue your build. Automagically, your tests are now performed on the remote system, because your testsettings file tells your build system to do so.

希望这是足以启动远程测试工作。

Hope that is enough to start your remote tests to work.

这篇关于如何TFS构建过程中进行配置,测试控制器执行的测试剂测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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