ios - 如何在 UIautomation ios 中创建嵌套日志

标签 ios ios-ui-automation

如何在 UIautomation ios 中创建嵌套日志,就像 logElementTree() 生成的日志一样

我尝试执行以下操作:

UIALogger.logStart("Log parent Started");

UIALogger.logStart("Log child Started");

UIALogger.logMessage("Message 1");

UIALogger.logPass("Log child passed");

UIALogger.logPass("Log Parent passed");

但这并不是在 Instruments 窗口中创建嵌套日志

最佳答案

这是不可能的。无论出于何种原因,Apple 都没有像使用 logElementTree() 那样提供嵌套日志输出的能力。每次调用 logStart() 都会重新开始日志分组。

请在 bugreporter.apple.com 提交错误.尽管这感觉就像是一个黑洞,错误进入其中却什么也没有完成,但他们确实使用错误报告器来确定下一步要修复的内容。

关于ios - 如何在 UIautomation ios 中创建嵌套日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9000401/

相关文章:

ios - 使用移动触摸旋转 Sprite 节点

IOS AVPlayer 无法禁用隐藏式字幕

ios - 创建一个包含自定义类对象的数组

ios - 带插图的 UICollectionView ScrollToItem

ios - 在 UIAutomation 中使用 accessibilityIdentifier 获取 UIElement

xcode - 如何让 UIAutomation、模拟器和 Xcode 调试器同时运行?

ios - 如何从类方法设置@IBOutlet 文本

ios - 在 XCode Instruments 中,有没有办法在运行时通过 Javascript 找到模拟器的 iOS 版本

javascript - 如何在 iOS 自动化中访问 UITableView 中的单元格

ios - UIAutomation-检查“警报”中的消息并将其与预期消息进行比较