【问题标题】:Error: Cannot find test-cloud.exe, the path specified by "--uitest-tools-dir" was not found错误:找不到test-cloud.exe,找不到“--uitest-tools-dir”指定的路径
【发布时间】:2018-10-06 01:23:57
【问题描述】:

尝试在 AppCenter for Xamarin Forms 项目(Android 和 iOS)中使用 TestCloud 运行 UITest,尝试通过 appcenter-cli 运行测试时收到相同的错误。

我正在使用以下命令:

appcenter test run uitest --app "[dir of iOS project]" --devices d675398e --app-path [Dir of IPA file] --test-series "master" --locale "en_US" --build-dir [Dir of UITEst project] --uitest-tools-dir [Dir of tools]

还有其他人遇到过类似的问题并设法解决了吗?

【问题讨论】:

  • 您是否使用“--uitest-tools-dir”指定路径?你确定你传递的值是正确的吗?
  • 是的,我也尝试过不使用特定路径,因为应用程序假设它自己在父目录中查找 test-cloud.exe。收到同样的错误。
  • 请问您能否在您的问题中添加一个示例 cli 命令? (删除任何你认为合适的敏感内容)。还要确保您使用的是最新版本的 appcenter-cli 和 UITest :) 我还建议您寻求支持(您可以使用 App Center 网站右下角的对讲对话框来实现)。跨度>
  • 嗨@OwenNiblock 是的,我已经完成了,他们只是需要几天的时间才能回复,我想让这里的人遇到类似的问题。在 App center 和 UITest 这两种情况下,我都更新了 nuget 包,我什至使用旧版本来看看这是否可行。
  • 它有 lib 文件夹、ThirdPartyNotices.txt、包含 test-cloud.exe、Xamarin.UITest-License.rtf、Xamarin.UITest.2.2.2.nupkg 文件的工具文件夹。

标签: c# xamarin visual-studio-app-center xamarin.uitest xamarin-test-cloud


【解决方案1】:

您的--uitest-tools-dir [Dir of tools] 参数不正确。该参数需要直接指向tools文件夹(包含test-cloud.exe的文件夹)。

所以你应该把这个命令参数改成:--uitest-tools-dir [Dir of tools]/tools

检查代码中的逻辑也可能很有用(appcenter-cli 是开源的),所以如果您不确定发生了什么 - 只需查看代码。

The logic referred to in the error you're seeing is here

【讨论】:

  • Users/wojciech/Perforce/Wojciech/LB/src/dev_wb/VMD/packages/Xamarin.UITest.2.2.2/lib/tools 这是我指向的路径,所以我一直在指向到正确的文件夹。
  • 试试:~/Perforce/Wojciech/LB/src/dev_wb/VMD/packages/Xamarin.UITest.2.2.2/tools
  • 有效!我的意思是我得到了一个不同的错误,但我已经从那个错误开始了。非常感谢!
  • 不幸的是,我的 --uitest-tools-dir 参数是正确的,但这仍然不起作用
  • 你的 --uitest-tools-dir 是什么样的? (路径和路径指向的内容)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-12-11
  • 2015-08-19
  • 2020-05-27
  • 2017-02-05
  • 1970-01-01
  • 1970-01-01
  • 2020-06-21
相关资源
最近更新 更多