简体   繁体   English

在设备上运行XCUITest的所有步骤是什么?

[英]What are all the steps to run a XCUITest on a device?

I can run XCUITests just fine on simulators, but when I try them on my device, the UITest icon is auto-clicked, and it fills the screen, freezes, then execution stops. 我可以在模拟器上很好地运行XCUITests,但是当我在设备上尝试运行XCUITests时,会自动单击UITest图标,它会填满整个屏幕,冻结,然后停止执行。 The bug readout is "Test target GreetrUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted). 错误读出是“测试目标GreetrUITests遇到错误(早期意外退出,操作从未完成引导-不会尝试重新启动)。

Things I have tried: 1. Gone into my phone's settings -> developer -> enable UI Automation. 我尝试过的事情:1.进入手机的设置->开发人员->启用UI自动化。 2. I don't have any cocoapods in my tests, only native XCUITests. 2.我的测试中没有任何cocoapods,只有本地的XCUITests。 3. I have a provisioning profile for my app, I am able to run the app fine. 3.我有我的应用程序的配置文件,可以正常运行该应用程序。

I might need to add a provisioning profile to the UITest but I don't know how to do that. 我可能需要向UITest添加一个配置文件,但是我不知道该怎么做。 I have also seen suggestions having to do with code-signing and paths, but I didn't understand the suggestions well enough to fix this. 我还看到了与代码签名和路径有关的建议,但是我对建议的理解不足以解决此问题。

I appreciate the help. 感谢您的帮助。

It works on my iphone 5s. 它可以在我的iPhone 5s上使用。 I was using an iphone 5. iPhone 5 was released in 2012 which was 3 years before XCUITests were released in 2015 with xcode 7. I have xcode 9.0. 我使用的是iPhone5。iPhone5于2012年发布,比XCUITests于2015年发布xcode 7早了3年。我拥有xcode 9.0。 Perhaps running UITests on iphone 5 is therefore deprecated. 因此,也许不建议在iphone 5上运行UITests。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 XCUITest - 如何模拟设备的锁定 - XCUITest - How to simulate locking of the device 如何打印 XCUITest 中的所有静态文本 - How to print all the staticTexts in XCUITest 在所有设备上布局,应遵循哪些步骤? - Layout on all devices, what are the steps to follow? 对iOS设备进行静态测试应遵循哪些步骤? - What are the steps to follow to do static testing of an iOS device?? 在设备上运行XCUITest会显示“此服务的太多实例已在运行” - Running XCUITest on device gives “Too many instance of this service are already running” 在healthKit中计算当前步骤的时区是多少? 是UTC还是设备时区? 如果用户更改时区怎么办? - What is the timezone in which the current steps are calculated in healthKit? Is it UTC or the device timezone? What if the user changes timezones? 您可以从命令行运行特定的Xcuitest吗? - Can you run a specific Xcuitest from the command line? 如何在具有不同版本 iOS 的真实设备上运行 XCUITest? - How can I run XCUITest on real devices with different versions of iOS? 将 Xamarin.ios .IPA 部署到目标 iOS 设备(即 iPhone)的步骤是什么? - what are the steps to deploying a Xamarin.ios .IPA into a target iOS device (ie. iPhone)? 如何在真实设备上安装 XCUITest runner 应用程序和 ipa 并获取结果? - How do I install the XCUITest runner app and ipa on a real device and get the results?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM