user-interface - 在 Xamarin UI 测试中需要帮助

标签 user-interface testing xamarin

Upload failed. Response: Status: 400 Contents: {"error_message":"The .ipa file does not seem to be linked with Calabash framework."}

如何解决?

最佳答案

您需要在 iOS 项目的 AppDelegate 中调用 Xamarin.Calabash.Start()。见下文:

Initialize the Xamarin Test Cloud Agent

After adding the Xamarin Test Cloud Agent to the iOS project, it is necessary to initialize the Xamarin Test Cloud Agent when the iOS project starts up. Edit the AppDelegate class and add the following snippet to the FinishedLaunching method:

// Newer version of Visual Studio for Mac and Visual Studio provide the
// ENABLE_TEST_CLOUD compiler directive in the Debug configuration,
// but not the Release configuration.
#if ENABLE_TEST_CLOUD
   Xamarin.Calabash.Start();      
#endif

The Xamarin Test Cloud Agent must not be present in a release build of a Xamarin.iOS application; its presence is grounds for the app to be rejected by Apple. By surrounding the initialization code in a conditional compile statement, the Xamarin linker will strip the Xamarin Test Cloud Agent from Release builds, but not Debug builds.

引用:https://developer.xamarin.com/guides/testcloud/uitest/adding-uitest/#Initialize_the_Xamarin_Test_Cloud_Agent

关于user-interface - 在 Xamarin UI 测试中需要帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46156404/

相关文章:

html - 通过以列方式设置数据从 REST 对象创建表

git - 是否有适用于 Mac OS X 的良好 git 客户端,它具有 Conerstone 的所有功能或 Subversion 的版本?

javascript - 如何在 Node.js 中显示仅限管理员的链接?

c# - 选中/取消选中 TableLayout 中的多个复选框

flutter - 如何在 Flutter 的弹出窗口中定位关闭按钮?

javascript - 如何用 Jest 测试 asnyc 代码(或用 jsdom 测试 "image.onload")

angular - 无法解析 ApplicationModule : (? 的所有参数)

json - REST POST Controller 说 : Could not read JSON: No content to map due to end-of-input

android - 在外部应用程序中打开图像的内容提供者不起作用

android - 将相机预览旋转到Portrait Android OpenCV Camera和Xamarin