我尝试使用 Appium、UI 自动化和 Monkey Talk 来自动化真实 iOS 设备的原生应用自动化。提到的工具不支持真正的 iOS 原生应用程序自动化。
是否有(免费软件)工具可以自动化真实 iOS 设备的 native 应用程序?
最佳答案
您可以在终端中尝试以下操作: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
关于ios - 如何在真实的 iOS 设备中自动化 'Settings' 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29465731/