尝试在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 [Dir of tools]
参数不正确。此参数需要直接指向tools文件夹(包含test-cloud.exe
的文件夹)。
因此,您应该将此命令参数更改为:--uitest-tools-dir [Dir of tools]/tools
检查代码中的逻辑(appcenter-cli
是开源)可能也很有用,所以如果你不确定发生了什么 - 只需看看代码即可。