Search code examples
c#xamarinvisual-studio-app-centerxamarin.uitestxamarin-test-cloud

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


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?


Solution

  • 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.

    The logic referred to in the error you're seeing is here