2012-01-25 16 views
4

如何UIautomation IOS像()由logElementTree產生的一個如何在UIautomation IOS創建嵌套日誌

我試着做下面創建一個嵌套的日誌:

UIALogger.logStart("Log parent Started"); 

UIALogger.logStart("Log child Started"); 

UIALogger.logMessage("Message 1"); 

UIALogger.logPass("Log child passed"); 

UIALogger.logPass("Log Parent passed"); 

但是這ISN」 t在儀器窗口中創建嵌套日誌

回答

3

這是不可能的。無論出於何種原因,蘋果公司並未公開像logElementTree()那樣擁有嵌套日誌輸出的能力。每次撥打logStart()時都會再次啓動日誌分組。

請在bugreporter.apple.com處提交錯誤報告。儘管它感覺像是一個黑洞,並且沒有任何東西可以實現,但他們確實使用bug記者來確定接下來要修復的東西。