【发布时间】:2018-12-13 15:38:42
【问题描述】:
从历史上看,使用 Appium 自动化 iOS 应用商店应用是不可能的(例如,由于所有应用商店应用都使用分发证书,这意味着您无法通过 Appium 访问该应用)。
现在可以在 2018 年年中实现吗?如果可以,有人知道如何设置吗?
【问题讨论】:
标签: ios automation appium ui-automation appium-ios
从历史上看,使用 Appium 自动化 iOS 应用商店应用是不可能的(例如,由于所有应用商店应用都使用分发证书,这意味着您无法通过 Appium 访问该应用)。
现在可以在 2018 年年中实现吗?如果可以,有人知道如何设置吗?
【问题讨论】:
标签: ios automation appium ui-automation appium-ios
您不能使用 Appium 自动化 Appstore 应用程序。
要对 ios 应用进行自动化测试,应使用开发证书对其进行签名。
【讨论】:
如果您知道它的包标识符,您几乎可以启动任何 iOS 系统应用程序。
我用红宝石:
def launch_app(bundle_id)
@driver.execute_script('mobile: launchApp',{'bundleId': "#{bundle_id}"});
end
def terminate_app(app_path)
@driver.execute_script('mobile: terminateApp',{'app': "#{app_path}"});
end
启动 App Store:
launch_app("com.apple.AppStore")
【讨论】: