How to create nested logs in UIautomation ios

How to create nested logs in UIautomation ios, e.g. created by logElementTree ()

I tried to do the following:

UIALogger.logStart("Log parent Started"); UIALogger.logStart("Log child Started"); UIALogger.logMessage("Message 1"); UIALogger.logPass("Log child passed"); UIALogger.logPass("Log Parent passed"); 

But this does not create nested logs in the Tools window

+4
source share
1 answer

It's impossible. For some reason, Apple does not disclose the possibility of having nested log output, as you get with logElementTree() . Each call to logStart() starts log grouping again.

Make a mistake over bugreporter.apple.com . Although it looks like a black hole where errors appear and nothing works, they really use the error reporter to determine what to fix next.

+3
source

Source: https://habr.com/ru/post/1392883/


All Articles