1

I am trying to run UI TestScripts for Xamarin iOS app on Test cloud, so I filled all the details.

App file : **/*.ipa

Test Assembly Directory: $(build.binariesdirectory)/$(BuildConfiguration)/test-assembly

dSYM file, I uploaded into Git and it was stored as zip file. I tried using that in VSTS but it was failing so I am not sure how to load dSYM(Any advise?), so I am not using dSYM file. But even without dSYM file, the step is failing without much information. I am getting the following error.

2016-06-30T17:25:36.773Z: [command]/usr/local/bin/mono /Users/vso112561/vsts-agent/_work/2/s/x/packages/Xamarin.UITest.1.3.8/tools/test-cloud.exe submit /Users/vso112561/vsts-agent/_work/2/s/a/b/bin/iPhone/Release/c 2016-06-30 10-25-30/com.iOS.ipa 42f8ebe979ca524827575208c706ecef --user abc@xy.com --devices XXXXXX --series master --locale en_US --assembly-dir /Users/vso112561/vsts-agent/_work/2/Release/test-assembly **/packages/**/tools/test-cloud.exe --nunit-xml /Users/vso112561/vsts-agent/_work/2/Release/test-assembly/xamarintest_211.0.xml
2016-06-30T17:25:36.988Z: Usage:
2016-06-30T17:25:36.988Z:   test-cloud.exe submit <apk-ipa> <api-key> [options] [--include <nunit-category> | --category <nunit-category> | --exclude <nunit-category> | --fixture <nunit-fixture> | --data <file-or-directory>] ...
2016-06-30T17:25:36.988Z:   test-cloud.exe submit <apk-ipa> <api-key> keystore <storefile> <storepass> <keyalias> <keypass> [options] [--include <nunit-category> | --category <nunit-category> | --exclude <nunit-category> | --fixture <nunit-fixture> | --data <file-or-directory>] ...
2016-06-30T17:25:36.988Z: Run 'test-cloud.exe help submit' for more details.
2016-06-30T17:25:37.007Z: [command]/usr/local/bin/mono /Users/vso112561/vsts-agent/_work/2/s/x/packages/Xamarin.UITest.1.3.8/tools/test-cloud.exe submit /Users/vso112561/vsts-agent/_work/2/s/x/y/bin/iPhone/Release/xx 2016-06-30 10-20-46/iOS.ipa 42f8ebe979ca524827575208c706ecef --user xyz@abc.com --devices XXXXXXX --series master --locale en_US --assembly-dir /Users/vso112561/vsts-agent/_work/2/Release/test-assembly **/packages/**/tools/test-cloud.exe --nunit-xml /Users/vso112561/vsts-agent/_work/2/Release/test-assembly/xamarintest_211.1.xml
2016-06-30T17:25:37.217Z: Usage:
2016-06-30T17:25:37.217Z:   test-cloud.exe submit <apk-ipa> <api-key> [options] [--include <nunit-category> | --category <nunit-category> | --exclude <nunit-category> | --fixture <nunit-fixture> | --data <file-or-directory>] ...
2016-06-30T17:25:37.217Z:   test-cloud.exe submit <apk-ipa> <api-key> keystore <storefile> <storepass> <keyalias> <keypass> [options] [--include <nunit-category> | --category <nunit-category> | --exclude <nunit-category> | --fixture <nunit-fixture> | --data <file-or-directory>] ...
2016-06-30T17:25:37.218Z: Run 'test-cloud.exe help submit' for more details.
##[Error] 2016-06-30T17:25:37.263Z: Return code: 1
2016-06-30T17:25:37.437Z:  
2016-06-30T17:25:37.438Z: Start: Results.Publish async Command
2016-06-30T17:25:37.438Z: End: Results.Publish async Command
2016-06-30T17:25:37.438Z:   

I am looking into the test script and the path but not able to get it work.Can anyone point out the reason for the error?

4

1 回答 1

2

看起来您的命令正在使用带有空格的路径。您需要将任何路径用引号括起来。

改变

/Users/vso112561/vsts-agent/_work/2/s/a/b/bin/iPhone/Release/c 2016-06-30 10-25-30/com.iOS.ipa

"/Users/vso112561/vsts-agent/_work/2/s/a/b/bin/iPhone/Release/c 2016-06-30 10-25-30/com.iOS.ipa"

此外,用于的路径--assembly-dir看起来不正确。这应该是包含您的 UITests 而不是 test-cloud.exe 的 .dll 的路径。确保在修复后也将其括在引号中。

于 2016-06-30T20:37:16.490 回答