3

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?

Randika Vishman
  • 7,983
  • 3
  • 57
  • 80
Woj
  • 773
  • 4
  • 17
  • are you specifying the path using "--uitest-tools-dir"? Are you sure the value you're passing is correct? – Jason Apr 25 '18 at 15:02
  • Yes, I have also tried not to use specific path, since application suppose to look up for test-cloud.exe on it's own in parent directories. Received same error. – Woj Apr 25 '18 at 15:52
  • Please could you add an example cli command to your question? (Stripping out anything sensitive as you see fit). Also make sure you're on the latest version of appcenter-cli and UITest :) I'd also recommend reaching out to support (you can do so by using the Intercom dialog on the bottom right of the App Center website). – Owen Niblock Apr 27 '18 at 19:28
  • Hi @OwenNiblock Yes I have done already, They are just taking days to reply and I thought make someone here came across similar problem. In both cases App center and UITest I updated nuget packages, I even used older versions just to see if that would work. – Woj Apr 30 '18 at 08:53
  • Did you used relative or absolute path to the uitest-tools-dir? I had a similar issue when I tried to use the relative path. – sanjar Apr 30 '18 at 14:59
  • @sanjar I have used absolute path, I also tried not to use the path at all, as it is only optional. No success. Thx for all the answers guys, I appreciate the effort and time taken to find solution for this! – Woj Apr 30 '18 at 15:12
  • What's in the directory that you're setting as the UITest tools directory? – Owen Niblock May 01 '18 at 06:21
  • 1
    it has lib folder, ThirdPArtyNotices.txt, tools folder that contains test-cloud.exe, Xamarin.UITest-License.rtf, Xamarin.UITest.2.2.2.nupkg file. – Woj May 01 '18 at 12:02

1 Answers1

1

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

Owen Niblock
  • 426
  • 3
  • 11
  • Users/wojciech/Perforce/Wojciech/LB/src/dev_wb/VMD/packages/Xamarin.UITest.2.2.2/lib/tools This is the path im directing to, so I have been directing to the correct folder. – Woj May 02 '18 at 11:17
  • Try: ~/Perforce/Wojciech/LB/src/dev_wb/VMD/packages/Xamarin.UITest.2.2.2/tools – Owen Niblock May 02 '18 at 11:56
  • Works! I mean I got a different error but I have moved on from that one. Thank you very much! – Woj May 02 '18 at 13:05
  • Unfortunately, My --uitest-tools-dir parameter is correct, but this still does not work – Le-roy Staines Jan 16 '19 at 10:24
  • What does your --uitest-tools-dir look like? (both the path and the contents that the path points to). – Owen Niblock Jan 17 '19 at 09:55