【问题标题】:Can I get TFS to deploy and execute tests on a different server?我可以让 TFS 在不同的服务器上部署和执行测试吗?
【发布时间】:2013-05-28 01:26:57
【问题描述】:

我希望让 TFS 构建并部署到我们的手动和自动测试环境。 手动测试 - 隔夜更新 自动测试 - 持续集成

部署后,我希望 TFS 在另一台服务器(代理网站的伪客户端)上部署和运行一组 Web 集成测试(SpecFlow / Selenium / nUnit)。 然后我希望 TFS 整理这些测试的结果并报告回来。

让这个工作的最佳方法是什么?

【问题讨论】:

  • 你为什么不看看teamcity?
  • 我喜欢 teamcity - 它很棒,我在家里使用它。但是我工作的大学是在 TFS 上结婚的。

标签: tfs continuous-integration nunit integration-testing build-automation


【解决方案1】:

您通常会更改构建过程模板以执行您想要的操作。添加部署步骤可能是这些定制之一。查看来自 Microsoft ALM Rangers 的 Build Release Deploy build template,其中包含将构建发布到另一台计算机的步骤。

您还可以利用 WebDeploy 并将一组发布配置文件添加到您的解决方案中。 Team Build will happily execute those steps during build, if told to do so.

在 TFS 中,您可以使用 Test Agent to then execute tests from a remote machine 并将结果添加到构建的测试结果中。

看到您想使用 NUnit 和 SpecFlow,我建议将 TFS 2012 与 Visual Studio 2012 结合使用,后者内置支持执行基于 3rd 的测试。 You'll need to install the NUnit adapter and put the assemblies for it in source control so that Team Build will pick them up.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-28
    • 1970-01-01
    • 2020-02-20
    • 2013-10-27
    • 1970-01-01
    • 2023-03-22
    • 2015-06-09
    • 1970-01-01
    相关资源
    最近更新 更多