【问题标题】:Is it now possible to Automate an App Store App using Appium现在是否可以使用 Appium 自动化 App Store 应用程序
【发布时间】:2018-12-13 15:38:42
【问题描述】:

从历史上看,使用 Appium 自动化 iOS 应用商店应用是不可能的(例如,由于所有应用商店应用都使用分发证书,这意味着您无法通过 Appium 访问该应用)。

现在可以在 2018 年年中实现吗?如果可以,有人知道如何设置吗?

【问题讨论】:

    标签: ios automation appium ui-automation appium-ios


    【解决方案1】:

    您不能使用 Appium 自动化 Appstore 应用程序。

    要对 ios 应用进行自动化测试,应使用开发证书对其进行签名。

    【讨论】:

    【解决方案2】:

    如果您知道它的包标识符,您几乎可以启动任何 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")
    

    【讨论】:

      猜你喜欢
      • 2014-09-15
      • 1970-01-01
      • 2011-06-23
      • 2023-03-14
      • 2017-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多