UIAutomation through command line on a real device

谁都会走 提交于 2019-12-05 23:20:46

问题


I know starting from Xcode 4.2 it is possible to run UIAutomation scripts through command line. I've tried this and is working perfectly fine for me in simulator. I'd like to know how to get this run in an actual device.I searched and got the command for running on device as,

instruments -w <device_id> -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate

application -e UIASCRIPT

script -e UIARESULTSPATH <results path>

What exactly should I give in the application, is it the path to ipa or something else?

Advance Thanks


回答1:


You need to give it the path to the .ipa file. It actualy only needs the app name so you can just pass in the app name. Very Important : The app needs to be installed on the device, Instruments will not install the app on the device, it will only run a installed app on the device



来源:https://stackoverflow.com/questions/15286850/uiautomation-through-command-line-on-a-real-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!