VSTS 上的 Xamarin 测试云失败
Xamarin Test Cloud failure on VSTS
我正在尝试 运行 UI TestScripts for Xamarin iOS 测试云上的应用程序,所以我填写了所有详细信息。
App file : **/*.ipa
Test Assembly Directory: $(build.binariesdirectory)/$(BuildConfiguration)/test-assembly
dSYM 文件,我上传到 Git 并存储为 zip 文件。我尝试在 VSTS 中使用它,但它失败了,所以我不确定如何加载 dSYM(有什么建议吗?),所以我没有使用 dSYM 文件。
但即使没有 dSYM 文件,该步骤也会在没有太多信息的情况下失败。我收到以下错误。
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:
我正在查看测试脚本和路径,但无法获取它work.Can有人指出错误的原因吗?
您的命令似乎使用了带有空格的路径。您需要将所有带空格的路径用引号引起来。
改变
/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
的路径看起来不正确。这应该是包含您的 UITest 而不是 test-cloud.exe 的 .dll 的路径。一旦固定,请确保将其也用引号引起来。
我正在尝试 运行 UI TestScripts for Xamarin iOS 测试云上的应用程序,所以我填写了所有详细信息。
App file : **/*.ipa
Test Assembly Directory: $(build.binariesdirectory)/$(BuildConfiguration)/test-assembly
dSYM 文件,我上传到 Git 并存储为 zip 文件。我尝试在 VSTS 中使用它,但它失败了,所以我不确定如何加载 dSYM(有什么建议吗?),所以我没有使用 dSYM 文件。 但即使没有 dSYM 文件,该步骤也会在没有太多信息的情况下失败。我收到以下错误。
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:
我正在查看测试脚本和路径,但无法获取它work.Can有人指出错误的原因吗?
您的命令似乎使用了带有空格的路径。您需要将所有带空格的路径用引号引起来。
改变
/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
的路径看起来不正确。这应该是包含您的 UITest 而不是 test-cloud.exe 的 .dll 的路径。一旦固定,请确保将其也用引号引起来。