I'd like to run some scripts by instruments uiautomation to test my iOS APP during the night. But it seems like the progress will be stop when I turn off Mac screen or let system sleep.
I am sure that it works fine on my friend's Mac...
Any ideas? Is that a system or instruments setting issue? How can I do to keep test runing while mac screen is off?
Go to computer preferences, click on energy saver, and make sure all sliders are set to "never", on battery and on power adapter. This will keep your computer awake and so as the instruments uiautomation.
Then once instruments is running, press on:
ctrl + shift + eject
That will dim the screen without stopping instruments.