parallel_appium 0.2.5 → 0.2.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 0b59d1aebedf676d3836f9bc3268675c5ead45555501d825d4759254bc82b0fa
4
- data.tar.gz: c2d89a2fe35af6cd6bbffe860df2d016453c688741f26222f7488ee97d57f861
2
+ SHA1:
3
+ metadata.gz: 9db64bfae9157f3334c724857328de48039ac8a2
4
+ data.tar.gz: 89daf9d77f1d69aed131e40abed3234667ce86ab
5
5
  SHA512:
6
- metadata.gz: e19e9e40b50f51f3eb15f9a307eaae3ca91f74fc0e27c53aec189104c1b81e694cc172c34859196167af3f646738349da1ce205ad244edaf25da90030eec15f5
7
- data.tar.gz: da918bc24992c2446af8cee204bac472355f160e14fa687f2865d1a0562d8f59024feed94dc886a1bc547958cedfd7eedb60894aed3d0e3fd62a31def4d28e7d
6
+ metadata.gz: 050657d696e09c91276aa23c745d2733f2c65be1f03630bd3d3238d2195e13120727a564ca795187d1be29f24c2df75bddeaf34710ab75f81148cde950d4f2f9
7
+ data.tar.gz: 81976be821dbfa583c8ac5f208e9e635c7d63a334df1a51867c21d653700b442d00d8f76e4fd2e2021df13f0bcbc6e394222e5c0b1be1d0aafda2b53ccceab4e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -30,6 +30,7 @@ module ParallelAppium
30
30
  caps[:caps][:platformVersion] = device.fetch('os', caps[:caps][:platformVersion])
31
31
  caps[:caps][:deviceName] = device.fetch('name', caps[:caps][:deviceName])
32
32
  caps[:caps][:wdaLocalPort] = device.fetch('wdaPort', nil)
33
+ caps[:caps][:avd] = device.fetch('avd', nil)
33
34
  end
34
35
 
35
36
  caps[:appium_lib][:server_url] = ENV['SERVER_URL']
@@ -6,8 +6,10 @@ module ParallelAppium
6
6
  emulators = `emulator -list-avds`.split("\n")
7
7
  emulators = emulators[0, ENV['THREADS'].to_i]
8
8
  Parallel.map(emulators, in_threads: emulators.size) do |emulator|
9
- spawn("emulator -avd #{emulator} -scale 100dpi -no-boot-anim -no-audio -accel on &", out: '/dev/null')
9
+ spawn("emulator -avd #{emulator} -no-snapshot-load -scale 100dpi -no-boot-anim -no-audio -accel on &", out: '/dev/null')
10
10
  end
11
+
12
+ emulators
11
13
  end
12
14
 
13
15
  # Get additional information for the Android device with unique identifier udid
@@ -23,9 +25,9 @@ module ParallelAppium
23
25
 
24
26
  # Devices after cleanup and supplemental data included
25
27
  def devices
26
- start_emulators
28
+ emulators = start_emulators
27
29
  sleep 10
28
- devices = `adb devices`.split("\n").select { |x| x.include? "\tdevice" }.map.each_with_index { |d, i| {platform: 'android', name: 'android', udid: d.split("\t")[0], wdaPort: 8100 + i, thread: i + 1} }
30
+ devices = `adb devices`.split("\n").select { |x| x.include? "\tdevice" }.map.each_with_index { |d, i| {avd: emulators[i], platform: 'android', name: 'android', udid: d.split("\t")[0], wdaPort: 8100 + i, thread: i + 1} }
29
31
  devices = devices.map { |x| x.merge(get_android_device_data(x[:udid])) }
30
32
 
31
33
  ENV['DEVICES'] = JSON.generate(devices)
@@ -1,3 +1,3 @@
1
1
  module ParallelAppium
2
- VERSION = '0.2.5'.freeze
2
+ VERSION = '0.2.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_appium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javon Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  pjBkMT4ow4ZhVgBKPDT2jh74b8g2rIDSbkJIj0lf35WXqJqZzseabGPpTbtzJEap
37
37
  HIrd7mPILLe3
38
38
  -----END CERTIFICATE-----
39
- date: 2018-07-17 00:00:00.000000000 Z
39
+ date: 2018-07-24 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appium_lib
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.7.6
195
+ rubygems_version: 2.6.14
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Multi-threaded mobile testing with Appium, Selenium and Rspec
metadata.gz.sig CHANGED
Binary file