zoukankan      html  css  js  c++  java
  • appium 1.6.3 + ios 10.2 + xcode 8.2.1 真机运行iphone app

    appium命令行启动:

    appium --address "127.0.0.1" --session-override --pre-launch --debug-log-spacing --log "/tmp/appium.log" --platform-version "10.2" --platform-name "iOS" --app "com.abc.abcdef" --udid "f9b87274e2a24b310399dd56dd80f8561d99fdac" --show-ios-log --device-name "iPhone 6s Plus"

    testng用例代码:

            IOSDriver<MobileElement> driver = null;
            DesiredCapabilities capabilities = new DesiredCapabilities();
            capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.2");
            capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6s Plus");
            capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
            capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
            capabilities.setCapability(MobileCapabilityType.APP, "/Users/apptest/Downloads/abcdef.ipa");
            capabilities.setCapability(MobileCapabilityType.UDID, "f9b87274e2a24b310399dd56dd80f8561d99fdac");
            // capabilities.setCapability(MobileCapabilityType.,"f9b87274e2a24b310399dd56dd80f8561d99fdac");
            try {
                driver = new IOSDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
            } catch (MalformedURLException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
    
                driver.findElementByName("个人中心").click();
                driver.findElementByName("首页").click();
        
  • 相关阅读:
    吕滔博客 --------MYSQL 备份与参数详解
    solaris知识库
    F5 负载均衡
    日志管理 rsyslog服务浅析
    你所不知到的C++ 系列
    php内核探索
    shell 编程中使用到得if语句内判断参数
    linux查看CPU性能及工作状态的指令
    MYSQL 5.7 主从复制 -----GTID说明与限制 原创
    C#:Json数据反序列化为Dictionary并根据关键字获取指定的值
  • 原文地址:https://www.cnblogs.com/testway/p/6322642.html
Copyright © 2011-2022 走看看