如何在 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/