错误:找不到test-cloud.exe,找不到“--uitest-tools-dir”指定的路径

问题描述 投票:3回答:1

尝试在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]

其他人遇到类似问题并设法解决它?

c# xamarin visual-studio-app-center xamarin.uitest xamarin-test-cloud
1个回答
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

© www.soinside.com 2019 - 2024. All rights reserved.