appium_connect 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AppiumConnect.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 032c29a108f7c1dc28f5144b00e8e1e2f6806734
4
- data.tar.gz: 6e6af86f6c5f09155bb6d62000f2cd9a6399edc0
3
+ metadata.gz: 8aaadcfab5eaed9bf8ac87a139951303bc297102
4
+ data.tar.gz: 34ac3ae888db4ffe808825c00ef85118a77446d5
5
5
  SHA512:
6
- metadata.gz: 56401ba1aec074030290866e5b27c876e8930f5f463f2c217bfc531ce9d46a507eb28de49498f45fe7e4e8f9c9956ccb4aaeece99ece1fc146b09c726f45a547
7
- data.tar.gz: a562106319271529edcf0d9886932785aad13c658ac604dee80eb5ad1f4c99b11211882fc18f2314007544451df883538b45397383d5b3013fdfcd77a6f9fe00
6
+ metadata.gz: 8d6e909967cebf9d5352ed8d9bed863c717add7056348863062901a9c8444bf30567cbba51b5ac217447dce470bca7efb100e3acced2ebb91b9f904a542e1929
7
+ data.tar.gz: a3678f40d32445b778063bae69a72c2730db49f93cb5dcdc17d205b4e09c151f5ef8605df47b2f95aa6bc761c1323a215d35c398e3be61a5b9174bff96f25bfa
data/lib/AppiumConnect.rb CHANGED
@@ -45,9 +45,9 @@ def appium_server_start(**options)
45
45
  }
46
46
  end
47
47
 
48
- def generate_node_config(file_name, udid, appium_port, ip, hubIp, platform)
48
+ def generate_node_config(file_name, udid, appium_port, ip, hubIp, platform, browser)
49
49
  f = File.new(Dir.pwd + "/node_configs/#{file_name}", "w")
50
- f.write( JSON.generate({ capabilities: [{ udid: udid, browserName: udid, maxInstances: 1, platform: platform, deviceName: udid },{ browserName: 'chrome', maxInstances: 1, deviceName: udid, udid: udid, seleniumProtocol: 'WebDriver', platform: platform , applicationName: udid}],
50
+ f.write( JSON.generate({ capabilities: [{ udid: udid, browserName: udid, maxInstances: 1, platform: platform, deviceName: udid },{ browserName: browser, maxInstances: 1, deviceName: udid, udid: udid, seleniumProtocol: 'WebDriver', platform: platform , applicationName: udid}],
51
51
  configuration: { cleanUpCycle: 2000, timeout: 180000, registerCycle: 5000, proxy: "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", url: "http://" + ip + ":#{appium_port}/wd/hub",
52
52
  host: ip, port: appium_port, maxSession: 1, register: true, hubPort: 4444, hubHost: hubIp } } ) )
53
53
  f.close
@@ -62,7 +62,7 @@ def launch_hub_and_nodes(ip, hubIp)
62
62
  ios_devices.size.times do |index|
63
63
  port = 4100 + index
64
64
  config_name = "#{ios_devices[index]["udid"]}.json"
65
- generate_node_config config_name, ios_devices[index]["udid"], port, ip, hubIp, 'MAC'
65
+ generate_node_config config_name, ios_devices[index]["udid"], port, ip, hubIp, 'MAC', 'safari'
66
66
  node_config = Dir.pwd + '/node_configs/' +"#{config_name}"
67
67
  appium_server_start config: node_config, port: port, udid: ios_devices[index]["udid"], log: "appium-#{ios_devices[index]["udid"]}.log", tmp: ios_devices[index]["udid"]
68
68
  end
@@ -78,7 +78,7 @@ def launch_hub_and_nodes(ip, hubIp)
78
78
  cp = 6000 + index
79
79
  sdkv = get_device_osv(devices[index]['udid']).strip.to_i
80
80
  config_name = "#{devices[index]["udid"]}.json"
81
- generate_node_config config_name, devices[index]["udid"], port, ip, hubIp, 'android'
81
+ generate_node_config config_name, devices[index]["udid"], port, ip, hubIp, 'android', 'chrome'
82
82
  node_config = Dir.pwd + '/node_configs/' +"#{config_name}"
83
83
  if sdkv === 16 || sdkv === 17
84
84
  appium_server_start config: node_config, port: port, bp: bp, udid: devices[index]["udid"], automationName: "selendroid", selendroidPort: sdp, log: "appium-#{devices[index]["udid"]}.log", tmp: devices[index]["udid"], cp: cp
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson