Trying to run UITest using TestCloud in AppCenter for Xamarin Forms project, both Android and iOS, on both I receive same error when trying to run tests via the appcenter-cli
.
I am using following command:
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]
Anyone else came across similar issue and manage to solve it?
Your --uitest-tools-dir [Dir of tools]
parameter is incorrect. This parameter needs to point to the tools folder directly (the folder which contains test-cloud.exe
).
So you should change this command parameter to be: --uitest-tools-dir [Dir of tools]/tools
It may also be useful to check the logic in the code (the appcenter-cli
is open source) so if you're ever not sure what's going on - just take a look at the code.