[英]IOS-UIAutomation: An script running issue.(Turning off screen / Sleep system on MAC)
I'd like to run some scripts by instruments uiautomation to test my iOS APP during the night. 我想通过仪器uiautomation运行一些脚本来在夜间测试我的iOS APP。 But it seems like the progress will be stop when I turn off Mac screen or let system sleep.
但是当我关闭Mac屏幕或让系统进入睡眠状态时,进度似乎会停止。
I am sure that it works fine on my friend's Mac... 我确信它可以在我朋友的Mac上正常工作...
Any ideas? 有任何想法吗? Is that a system or instruments setting issue?
这是系统或工具设置问题吗? How can I do to keep test runing while mac screen is off?
Mac屏幕关闭时,如何保持测试运行?
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
Ctrl + Shift +弹出
That will dim the screen without stopping instruments. 这将使屏幕变暗而不停止仪器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.