简体   繁体   English

IOS-UIAutomation:脚本运行问题。(关闭屏幕/ MAC上的睡眠系统)

[英]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.

相关问题 postbuild UIAutomation脚本没有在jenkins中运行 - postbuild UIAutomation script not running in jenkins 在Mac Terminal中关闭Rails - Turning off Rails in Mac Terminal 是否有任何自动化脚本可以取消选中“需要密码”以在睡眠后从不并在 Mac 中关闭睡眠? - Is there any automation script to uncheck “Require Password” to never after sleep and turn off sleep in mac? 如何在Mac上禁用屏幕保护程序/显示器休眠 - How to disable the screen saver/display sleep on Mac 如何防止 Mac OS 上长时间运行的 bash 脚本中的空闲睡眠? - How can I prevent idle sleep in a long-running bash script on Mac OS? 在 Mac OSX 中运行 python 脚本启动权限问题 - Running python script in Mac OSX launchd permission issue 在bash脚本中防止系统睡眠/关机/重启 - Prevent system sleep/shutdown/reboot in a bash script 在锁定屏幕上的Mac上播放音乐并显示关闭 - Playing music on a Mac in lock screen and display off “TestCafe 浏览器工具”想要访问“Google Chrome”。 Mac 安全弹出问题。 Mac中是否有始终允许的设置? - 'TestCafe Browser Tools' wants to access 'Google Chrome'. Mac security popup issue. Is there a settings in Mac to always allow? Mac“屏幕”命令外壳脚本 - Mac 'screen' command shell script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM