How can I get Xcode 7 to keep around the logging output from the UI Test target?
Asked Answered
E

1

12

I've started using the UI Test features of Xcode 7, and when I run a test, I get the output from testing showing up in the content pane of the debugging area.

However, as soon as the testing is finished, that output gets replaced by the logging from the application itself.

Is there a way to keep both sets of logged data visible?

Adding an example, of what I want to see:

screenshot of Xcode showing where I want to see my messages to stdout/err

Electrokinetic answered 15/10, 2015 at 22:33 Comment(5)
Are you just looking to find the recorded information from the UI testing logs or are you asking for them to be displayed in the same window? I don't know if it's possible to have them show up together. I only see them in one place once the testing completes.Motorboat
I'm able to see the results on the reporting tab by clicking and drilling down through the UI after the test is completed, but I'd like to be able to see the raw text that gets logged during the test run. Kind of a nice to have, since I find it easier to understand the patterns of what's available by looking at the raw output and doing text searches for keywords and identifiers versus spelunking through an expanding and contracting tree. Maybe I need to explore using the command line xcode tools?Electrokinetic
hi @RobFagen where is the reporting tab? i was hoping for the output to remain too.Kaffiyeh
@Kaffiyeh thanks for asking. I've added an image to clarify where I'm talking about.Electrokinetic
cool! thanks @RobFagen :)Kaffiyeh
H
3

Might not completely solve your issue: I was having a similar problem (and found your question!) and just found out that you can select which logging output is shown in the Debug Area:

enter image description here

Maybe, if you combine this with a cleverly inserted test breakpoint you might (partially) achieve what you were looking for ;-)

Henhouse answered 20/4, 2017 at 17:49 Comment(1)
Only possible while test is running. When test ends, this is killed.Banks

© 2022 - 2024 — McMap. All rights reserved.