Issue while executing Xamarin ui test through app centre

rahulbaburahulbabu Member ✭✭
edited December 2018 in General

Hi,

I was trying to execute Xamarin UI test through app centre, but I'm getting the following error:

\ Preparing tests... Test chunking failed: Failed to execute: /Library/Frameworks/Mono.framework/Commands/mono "/var/folders/8r/gjpk688s1h5gr89qgq97mjz00000gn/T/uitest/a-E8F4C6E9D3DF24FD6621BC5816C0D0ED37E91ADC/nunit2/Xamarin.UITest.Integration.NUnit2.exe" "/Users/rahulbabu/Documents/Projects/Infosys/InfyInternal/XPOTestCloudPOC/DriveXPO/bin/Debug/Transport.Automation.Platform.dll" - exit code: 1
Unhandled Exception:
System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetExportedTypes () [0x00000] in :0
at NUnit.Core.CoreExtensions.InstallAdhocExtensions (System.Reflection.Assembly assembly) [0x00002] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.Builders.TestAssemblyBuilder.Load (System.String path) [0x00023] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.Builders.TestAssemblyBuilder.Build (System.String assemblyName, System.Boolean autoSuites) [0x0000e] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.Builders.TestAssemblyBuilder.Build (System.String assemblyName, System.String testName, System.Boolean autoSuites) [0x00019] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.TestSuiteBuilder.BuildSingleAssembly (NUnit.Core.TestPackage package) [0x00039] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.TestSuiteBuilder.Build (NUnit.Core.TestPackage package) [0x00041] in <5f98389adbbf431597d7b604bbe20cb7>:0
at Xamarin.UITest.Integration.NUnit2.NUnit2TestFinder.Find (System.String assemblyFile, System.String[] fixtures, System.String[] includedCategories, System.String[] excludedCategories) [0x00045] in :0
at Xamarin.UITest.Integration.NUnit2.Program.Main (System.String[] args) [0x00021] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetExportedTypes () [0x00000] in :0
at NUnit.Core.CoreExtensions.InstallAdhocExtensions (System.Reflection.Assembly assembly) [0x00002] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.Builders.TestAssemblyBuilder.Load (System.String path) [0x00023] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.Builders.TestAssemblyBuilder.Build (System.String assemblyName, System.Boolean autoSuites) [0x0000e] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.Builders.TestAssemblyBuilder.Build (System.String assemblyName, System.String testName, System.Boolean autoSuites) [0x00019] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.TestSuiteBuilder.BuildSingleAssembly (NUnit.Core.TestPackage package) [0x00039] in <5f98389adbbf431597d7b604bbe20cb7>:0
at NUnit.Core.TestSuiteBuilder.Build (NUnit.Core.TestPackage package) [0x00041] in <5f98389adbbf431597d7b604bbe20cb7>:0
at Xamarin.UITest.Integration.NUnit2.NUnit2TestFinder.Find (System.String assemblyFile, System.String[] fixtures, System.String[] includedCategories, System.String[] excludedCategories) [0x00045] in :0
at Xamarin.UITest.Integration.NUnit2.Program.Main (System.String[] args) [0x00021] in :0

Preparing tests... failed.
Error: Cannot prepare UI Test artifacts using command: mono /Users/rahulbabu/Documents/Projects/Infosys/InfyInternal/XPOTestCloudPOC/packages/Xamarin.UITest.2.2.7/tools/test-cloud.exe prepare "/Users/rahulbabu/Downloads/xpo.apk" --assembly-dir "/Users/rahulbabu/Documents/Projects/Infosys/InfyInternal/XPOTestCloudPOC/DriveXPO/bin/Debug" --artifacts-dir "/var/folders/8r/gjpk688s1h5gr89qgq97mjz00000gn/T/appcenter-upload118117-1953-1lq05wm.e9yqh".

Test chunking failed, please try again. If you can't work out how to fix this issue, please contact support.

Please provide a possible solution to this.

Thanks,
Rahul

Answers

  • JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭
    Best to post a message in the support tool in App Centre itself. I've got good support there.
Sign In or Register to comment.