Appium node JSON configuration file

Like the Selenium browser node command-line options, there is also a -nodeConfig option to load a JSON configuration file with all the common AppiumDriver desired capabilities for the nodes.

<span>Here is a sample Selenium node JSON configuration file for iPhone devices:

// iphone_config.json

{
"capabilities":[
{
"platform":"MAC",
"platformVersion":"10.0",
"browserName":"iphone",
"applicationName":"MAC-IPHONE",
"maxInstances":1,
"launchTimeout":"300000",
"newCommandTimeout":"1800"
}
],
"configuration":{
"_comment":"Configuration for Selenium Node MAC/IPHONE",
"proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSessions":1,
"cleanUpCycle":5000,
"timeout":1800,
"url":"http://127.0.0.1:4723/wd/hub",
"port":4723,
"host":"localhost",
"register":true,
"registerCycle":5000,
"hubPort":4444,
"hubHost":"localhost",
"browserTimeout":600
}
}

Here is a sample Selenium node JSON configuration file for Android devices:

// android_config.json
{
"capabilities":[
{
"platform":"Android",
"platformVersion":"23",
"browserName":"android",
"applicationName":"LINUX-ANDROID",
"maxInstances":1,
"newCommandTimeout":"180",
"deviceReadyTimeout":"60",
"appWaitDuration":"10000"
}
],
"configuration":{
"_comment":"Configuration for Selenium Node LINUX/ANDROID",
"proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSessions":1,
"cleanUpCycle":5000,
"timeout":1800,
"url":"http://127.0.0.1:4723/wd/hub",
"port":4723,
"host":"localhost",
"register":true,
"registerCycle":5000,
"hubPort":4444,
"hubHost":"localhost",
"browserTimeout":600
}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.160.216