0

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?

Nickee
  • 3
  • 1

1 Answers1

0

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.

enter image description here

Then once instruments is running, press on:

ctrl + shift + eject

enter image description here

That will dim the screen without stopping instruments.

Roy K
  • 3,319
  • 2
  • 27
  • 43
  • Thanks for the answer! That' s true it will keep my computer awake. But the question is that when I turn off the SCREEN(system still awake), the instruments progress stopped unexpectedly... – Nickee Dec 14 '15 at 06:10
  • What type of Mac machine do you have @Nickee – Roy K Dec 14 '15 at 06:12
  • OS X Yosemite version 10.10.5 iMac (21.5-inch, Late 2012) Processor 2.7GHz Intel Core i5 Memory 8G 1600 MHz DDR3 Startup Disk Macintosh SSD Graphics NVIDIA GeForce GT 640M 512MB – Nickee Dec 14 '15 at 12:17
  • It make sense!! Just using your way 'ctrl + shift + eject' isntead of my way 'command + option + eject'... ahaaaa~ A new discovery is that when I used 'command + option + eject', instruments printed "Connection peer refused channel request for 'com.apple.instruments.server.services.wireless'..." on console. – Nickee Dec 14 '15 at 12:51
  • do you have WeChat? Can you kindly add me for more communications? (Account: Vp_555) – Nickee Dec 14 '15 at 12:53
  • @Nickee Great! Can you please mark my answer as the correct answer + voting up on it? Big thanks. – Roy K Dec 14 '15 at 12:55
  • For about iOS and instruments? – Nickee Dec 14 '15 at 12:56