mirror of
https://github.com/appium/appium.git
synced 2026-10-24 01:28:55 +08:00
6f49f1dcbb
lined up the config file and removed blank lines.
45 lines
1.6 KiB
Markdown
45 lines
1.6 KiB
Markdown
Selenium Grid
|
|
======================
|
|
|
|
You are able to register you appium server with a local grid by using the <b>"--nodeconfig"</b> server parameter.
|
|
|
|
```bash
|
|
> node server.js -V --nodeconfig /path/to/nodeconfig.json
|
|
```
|
|
|
|
In the node config file you have to define the <b>"browserName"</b>, <b>"version"</b> and <b>"platform"</b> and based on these parameters the grid will re-direct your test to the right device. You will also need to configure you <b>host</b> details and the <b>selenium grid</b> details. For a full list of all parameters and descriptions look <a href="http://code.google.com/p/selenium/source/browse/java/server/src/org/openqa/grid/common/defaults/GridParameters.properties">here</a>.
|
|
|
|
Once you start the appium server and it registers with the grid, you will see your device on the grid console page:
|
|
|
|
"http://<b>\<grid-ip-adress\></b>:<b>\<grid-port\></b>/grid/console"
|
|
|
|
## Grid Node Configuration Example json file
|
|
|
|
```xml
|
|
{
|
|
"capabilities":
|
|
[
|
|
{
|
|
"browserName": "<e.g._iPhone5_or_iPad4>",
|
|
"version":"<version_of_iOS_e.g._6.1>",
|
|
"maxInstances": 1,
|
|
"platform":"MAC"
|
|
}
|
|
],
|
|
"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",
|
|
"maxSession": 1,
|
|
"port": <appium_port>,
|
|
"host": "<host_name_appium_server_or_ip-address_appium_server>",
|
|
"register": true,
|
|
"registerCycle": 5000,
|
|
"hubPort": <grid_port>,
|
|
"hubHost": "<Grid_host_name_or_grid_ip-address>"
|
|
}
|
|
}
|
|
```
|