Error: Cannot find test-cloud.exe, the path specified by "--uitest-tools-dir" was not found

Error: Cannot find test-cloud.exe, the path specified by "--uitest-tools-dir" was not found

尝试 运行 在 AppCenter for Xamarin Forms 项目中使用 TestCloud 进行 UITest,Android 和 iOS,我在尝试 运行 测试时收到相同的错误通过 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 [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