• Selenium Grid


    Selenium Grid

    You are able to register your appium server with a local Selenium grid (setup docs) by using the --nodeconfig server parameter.//将appium server注册到selenium grid使用。

    > appium --nodeconfig /path/to/nodeconfig.json # or, if running from source: > node . --nodeconfig /path/to/nodeconfig.json

    In the node config file you have to define the browserName, version and platform and based on these parameters the grid will re-direct your test to the right device. You will also need to configure your host details and the selenium grid details. For a full list of all parameters and descriptions look here

    Once you start the appium server and it registers with the grid, you will see your device on the grid console page:

    “http://<grid-ip-adress>:<grid-port>/grid/console”

     

    Grid Node Configuration Example json file

    {
      "capabilities":
          [
            {
              "browserName": "<e.g._iPhone5_or_iPad4>",
              "version":"<version_of_iOS_e.g._7.1>",
              "maxInstances": 1,
              "platform":"<platform_e.g._MAC_or_ANDROID>"
            }
          ],
      "configuration":
      {
        "cleanUpCycle":2000,
        "timeout":30000,
        "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
        "url":"http://<host_name_appium_server_or_ip-address_appium_server>:<appium_port>/wd/hub",
        "host": <host_name_appium_server_or_ip-address_appium_server>,
        "port": <appium_port>,
        "maxSession": 1,
        "register": true,
        "registerCycle": 5000,
        "hubPort": <grid_port>,
        "hubHost": "<Grid_host_name_or_grid_ip-address>"
      }
    }
    

    Valid platforms are listed here

    If url, host, and port are not given, the config will be auto updated to point to localhost:whatever-port-Appium-started-on.

    If your Appium server is running on a different machine to your Selenium Grid server, make sure you use an external name/IP address in your host & url docs; localhost and 127.0.0.1 will prevent Selenium Grid from connecting correctly.

  • 相关阅读:
    C/C++优秀书籍清单
    C语言内存管理详解
    C/C++语言常用头文件及函数
    如何学好C++语言
    VS2010 更改MFC标题及标题栏图标和exe图标
    Vue 实现前进刷新,后退不刷新的效果 玩转vue-router里的meta
    $nextTick 页面局部刷新 延迟加载
    吸顶动画 侧边栏 监听滚动条位置 监听元素距离顶部高度
    vue 自定义侧边栏 递归无限子级菜单
    vue element NavMenu 莫名出现蓝色边框
  • 原文地址:https://www.cnblogs.com/superbaby11/p/6071221.html
Copyright © 2020-2023  润新知