【问题标题】:Setting up Hudson with Selenium RC to run tests written in C#使用 Selenium RC 设置 Hudson 以运行用 C# 编写的测试
【发布时间】:2010-11-07 18:24:48
【问题描述】:

我刚刚部署了一个 Hudson 服务器并将其配置为检查、构建和部署到一个测试 http 服务器。

现在我想要更多 =)

我有一些用 C#/.Net 编写的 Selenium RC 测试,使用 MbUnit 基础架构,在 Gallio Icarus 上运行良好。

如何设置 Hudson 来运行这些测试?我们在 Windows 2003 服务器中。

我正在考虑设置一个运行测试的批处理脚本。但是如何在 CLI 中运行它们呢?是否有可以运行我们测试的 CLI 测试运行程序?

【问题讨论】:

    标签: selenium hudson integration-testing mbunit test-runner


    【解决方案1】:

    哈!刚发现。

    我必须跑:

    Gallio\bin\Gallio.Echo.exe path\MyTestAssemlby.dll
    

    如果 Google 失败了,请尝试搜索您自己的 PC =)

    【讨论】:

      【解决方案2】:

      如果您更喜欢 NAnt、MSBuild 或 PowerShell,您也可以使用它们...

      【讨论】:

      • 我们的项目使用 .Net 3.5 框架。 NAnt 有效吗?如何使用 MSBuild 或 Powershell 通过控制台运行我们的测试?
      • 是的,这应该都适用于 .Net 3.5。如果您愿意,当前的夜间构建也适用于 .Net 4.0。对于从控制台使用,我建议坚持使用 Gallio.Echo.exe,除非您想将 Gallio 集成到您编写的现有 NAnt、MSBuild 或 PowerShell 脚本中。在每种情况下,只需要求主机工具(NAnt 等)加载 Gallio 提供的任务或 cmdlet。
      猜你喜欢
      • 2021-07-27
      • 1970-01-01
      • 1970-01-01
      • 2010-11-23
      • 1970-01-01
      • 2018-12-02
      • 1970-01-01
      • 2011-03-04
      • 1970-01-01
      相关资源
      最近更新 更多