【问题标题】:How to run Quamotion tests on macOS TeamCity agents如何在 macOS TeamCity 代理上运行 Quamotion 测试
【发布时间】:2018-02-20 15:15:49
【问题描述】:

我正在尝试将 Quamotion 集成到我们的 TeamCity 平台中,以便我们可以在 CI 流程中测试移动应用程序。

我已按照in the Quamotion documentation 所述的步骤进行操作。

已添加构建步骤和构建功能,但我在我们的代理上看到错误:

  • 不兼容的运行器:PowerShell
  • 未满足的要求:存在=>(powershell_x86|powershell_x64) 存在

PowerShell 已安装在我们的构建服务器上,我们可以运行 Quamotion 而不会出现任何错误:我可以看到连接到我的构建服务器的移动设备、安装应用程序、运行测试......。我尝试重新启动并重新安装代理,但也没有解决问题。

有什么我错过的吗?

【问题讨论】:

    标签: macos testing mobile webdriver teamcity


    【解决方案1】:

    听起来您的 TeamCity 代理上没有安装 PowerShell 核心,或者您没有使用最新版本的 TeamCity。

    要检查是否已安装 PowerShell Core,请在您的代理上打开终端并运行 pwsh。如果这会打开 PowerShell 终端,则表明 PowerShell Core 已正确安装。

    据我所知,对 PowerShell Core 的支持已添加到 TeamCity 2017.2.2。您能否确保您使用的是 TeamCity 2017.2.2 或更高版本?

    【讨论】:

      【解决方案2】:

      请注意:如果使用 zipped 版本安装 Powershell Core 并手动放置解压文件夹,请将其放在与 MSI 安装相同的文件夹中,即:

      %programfiles%\Powershell\6
      %programfiles(x86)%\Powershell\6
      

      这些是 TeamCity 构建代理搜索以查找 PS Core 安装的文件夹。如果 TeamCity 构建代理找到安装文件夹,它会相应地设置变量:

      (例如,PS Core x64 位数)

      powershell_Core_6.1.0_x64        6.1.0
      powershell_Core_6.1.0_x64_Path   C:\Program Files\PowerShell\6
      powershell_Core_x64              6.1.0
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-01-06
        • 2014-02-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多