【问题标题】:How can I clear iOS application cache in automation testing?如何在自动化测试中清除 iOS 应用程序缓存?
【发布时间】:2019-01-30 11:59:42
【问题描述】:

我正在从事 iOS 应用程序自动化测试。我需要清除应用程序缓存,以便应用程序可以新安装。我们可以使用java编程实现它还是appium提供清除它的功能。我是 iOS 自动化的新手。请给我同样的解决方案。

谢谢

【问题讨论】:

    标签: selenium-webdriver appium appium-ios


    【解决方案1】:

    在你想要的Capabilities中,将noReset添加到false

    DesiredCapabilities caps = new DesiredCapabilities();
    
    //other desiredCapabilities here
    caps.setCapability("noReset", false);
    

    重置策略分为三种类型:defaultfullResetnoReset

    您必须在应用程序功能中提供 ipa 文件才能使用 noreset 功能

    更多关于这方面的信息可以找到here

    【讨论】:

      猜你喜欢
      • 2017-05-28
      • 2012-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-19
      • 2019-09-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多