我在Xamarin.TestCloud中運行Xamarin.UITest測試時遇到了麻煩,儘管它完美地傳遞了模擬器和真正的iPads。無法在測試雲上運行Xamarin.UITest:當前JsonReader項目不是對象
應用:我有iOS應用的源代碼(XCode項目),我通過鏈接添加到calabash.framework應用(由於此tutorial) 到蠡雖然我發現很多信息是應用程序需要Xamarin.Calabash.Start()
,我沒有將它添加到任何地方,因爲實際上,我不確定我應該將它放在XCode項目中的位置和方式。我對此的一點看法:由於簡化了將應用程序鏈接到葫蘆框架,因此只需要使用Xamarin Studio本身編寫的應用程序來使用該字符串。
要啓動BaseTest.class測試我只加:
app = ConfigureApp.
.iOS
.EnableLocalScreenshots()
.InstalledApp("com.ios.dev")
.StartApp();
給予Xamarin工作室.ipa文件後,將其與崩潰:
/Library/Frameworks/Mono.framework/Versions/4.8.0/bin/mono "/Users/pavlo.shtefanesku/Xamarin/fieldforcetest/packages/Xamarin.UITest.2.0.7/tools/test-cloud.exe" asubmit "/Users/pavlo.shtefanesku/Documents/appStore/MobileField.ipa" --async --fixture QLFieldForceiOSUITests.LoginTests.LoginForTheFirstTime --assembly-dir "/Users/pavlo.shtefanesku/Xamarin/fieldforcetest/QLFieldForceiOSUITests/bin/Debug"
Negotiating file upload to Xamarin Test Cloud.
Posting to https://testcloud.xamarin.com/ci/anonymous_uploads
Uploading Xamarin.UITest.dll ... Already uploaded.
Uploading nunit.framework.dll ... Already uploaded.
Uploading MobileField.ipa... 10%
Uploading MobileField.ipa... 20%
Uploading MobileField.ipa... 30%
Uploading MobileField.ipa... 40%
Uploading MobileField.ipa... 50%
Uploading MobileField.ipa... 60%
Uploading MobileField.ipa... 70%
Uploading MobileField.ipa... 80%
Uploading MobileField.ipa... 91%
Uploading MobileField.ipa... 100%
Uploading CsvHelper.dll... 41%
Uploading CsvHelper.dll... 83%
Uploading CsvHelper.dll... 100%
Uploading CsvHelper.dll... 100%
Uploading QLFieldForceiOSUITests.dll... 98%
Uploading QLFieldForceiOSUITests.dll... 100%
Error reading JObject from JsonReader. Current JsonReader item is not an object: Integer. Path '', line 1, position 3.
The application was terminated by a signal: SIGHUP
提前,我不不要使用任何JSON對象或至少隱含的任何東西。
在測試項目中使用的附加軟件包僅CsvHelper,
Xamarin版本:6.2(版本1821) NUnit的:2.6.4 Xamarin.UITest:2.0.7 的Mac OS:10.12.3( 16D32)
請幫助解決這個問題。
如果IPA打包錯誤,我已經看到過此症狀,但我不知道是否唯一方法纔會遇到此錯誤。 您是否可以在「虛擬」應用程序中重現此操作(例如,您不必共享您的實際應用程序),然後將該IPA作爲示例共享? –