且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何TFS构建过程中进行配置,测试控制器执行的测试剂测试?

更新时间:2023-09-18 11:15:04

其实,你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.