一段时间以来,我一直在尝试通过 Visual Studio Mobile 中心运行 UI 测试,但出现以下错误:
Preparing tests... failed. Error: Cannot prepare UI Test artifacts. Returning exit code 20.
我查看了 mobile-center-cli github 页面,发现错误代码 1 到 63 是为 TestCloud 保留的。确实没有关于此错误的文档,所以我希望有人能够指出正确的方向。
使用的命令:
mobile-center test run uitest --app "MyAppName" --devices d5c95903 --app-path "pathToApk" --test-series "master" --locale "en_US" --build-dir "PathToBinRelease"
最佳答案
听起来您可能为您的 --build-dir 指定了错误的文件夹。
--build-dir 应该是 Xamarin.UITest 项目的 bin/Debug 文件夹,如下所示:
"/Users/User/AppSolution/App.UITests/bin/Debug"
能否请您尝试上述方法,如果它解决了问题,请告诉我?
格伦
关于c# - 移动中心 UITest 退出代码 20,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44935752/