如何在真实的iOS设备中自动执行“设置"应用程序? [英] How can i automate 'Settings' app in real iOS devices?

查看:203
本文介绍了如何在真实的iOS设备中自动执行“设置"应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Appium,UI自动化和Monkey Talk来为真正的iOS设备自动化本机应用程序自动化.提及的工具不支持真正的iOS本机应用程序自动化.

I tried with Appium, UI Automation and Monkey Talk to automate native app automation for real iOS device. Mentioned tools are not supporting real iOS native app automation.

是否有一个(免费的)工具可以自动执行真实iOS设备的本机应用程序?

Is there a (freeware) tool that automates native apps of real iOS devices?

推荐答案

您可以在终端中尝试以下操作:

You can try the following in your Terminal:

instruments -v -w YOUR_DEVICE_ID -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/Preferences.app -e UIASCRIPT /Users/mytests/Documents/xCode/Shell-Script/YourTestScript-App.js

instruments -v -w YOUR_DEVICE_ID -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/Preferences.app -e UIASCRIPT /Users/mytests/Documents/xCode/Shell-Script/YourTestScript-App.js

上面的命令是1班轮. 但是您需要编写自己的名为 YourTestScript-App.js

The above command is a 1 liner. But you need to write your own test script called YourTestScript-App.js

这篇关于如何在真实的iOS设备中自动执行“设置"应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆