appium_lib_core 3.11.0 → 3.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dd7162d340f5712d5ecef7ef6061f8b19d1ad66d528a674563b3eb315de066b
4
- data.tar.gz: 024f6ac6c493595db8251eca602e5a1976376364f84225b6c1cb8e69ca97550d
3
+ metadata.gz: 606ec257c3bb37fa6f5b56d142d261b127e23f6cfa244d12dab8b1c8b044b811
4
+ data.tar.gz: 065f78705b0a92b2779e54dde42e46c54cd7dce2d03b6959415cc24d0975779a
5
5
  SHA512:
6
- metadata.gz: 26086370c36d9d98676a78e42c831bb91040d4024ecb6059a49e27b185aaa669f0b1d5fcccce8702f78d44b93436ea26c86ff92065e42d2783fed9d46e338909
7
- data.tar.gz: 7545b8db05d2259a7efc56ec3baf7fbc3b5a25929f11e6d80c951fe0005c690af51fca4f07bd2c178bf3cdfe00508a596fe56e467f7b4e678cd2c28c70369ba8
6
+ metadata.gz: ecff5490c095217a13e8f85d37efca1392167f704b8836d48846e79f2e3583d2c668e6102b080c7206f137b6c9f1dceb152855be8f85c8baca68351b01a93724
7
+ data.tar.gz: d69eefd63b6c2865ead8601bb5732790c1237d4f20b02379e02329cc711be82dda2a52d334d6f5e4c60faee892b49290efb91e6d4efa4e197335253a6d4b7c39
@@ -10,6 +10,15 @@ Read `release_notes.md` for commit level details.
10
10
 
11
11
  ### Deprecations
12
12
 
13
+ ## [3.11.1] - 2020-11-20
14
+
15
+ ### Enhancements
16
+
17
+ ### Bug fixes
18
+ - Fix `install_app` to be able to set no args for options
19
+
20
+ ### Deprecations
21
+
13
22
  ## [3.11.0] - 2020-08-01
14
23
 
15
24
  ### Enhancements
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'yard', '~> 0.9.11'
31
31
  spec.add_development_dependency 'minitest', '~> 5.0'
32
32
  spec.add_development_dependency 'minitest-reporters', '~> 1.1'
33
- spec.add_development_dependency 'webmock', '~> 3.8.0'
33
+ spec.add_development_dependency 'webmock', '~> 3.10.0'
34
34
  spec.add_development_dependency 'rubocop', '0.68.1'
35
35
  spec.add_development_dependency 'appium_thor', '~> 1.0'
36
36
  spec.add_development_dependency 'pry'
@@ -16,6 +16,9 @@ steps:
16
16
  mkdir -p test/report
17
17
  nohup appium --relaxed-security --log-timestamp --log-no-colors > test/report/appium.out 2>&1 &
18
18
  displayName: Run Appium in background
19
+ env:
20
+ JAVA_HOME: $(JAVA_HOME_11_X64)
21
+ PATH: $(JAVA_HOME_11_X64)/bin:$(PATH)
19
22
  - script: |
20
23
  gem install bundler;
21
24
  bundle install --retry=3 --jobs=4 --path vendor/bundle;
@@ -18,7 +18,7 @@ echo ${ANDROID_HOME}/emulator/emulator -list-avds
18
18
  echo "Starting emulator"
19
19
 
20
20
  # Start emulator in background
21
- nohup ${ANDROID_HOME}/emulator/emulator -avd testemulator -accel auto -no-boot-anim -no-snapshot > /dev/null 2>&1 &
21
+ nohup ${ANDROID_HOME}/emulator/emulator -avd testemulator -accel auto -no-boot-anim -gpu auto -no-snapshot > /dev/null 2>&1 &
22
22
  ${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
23
23
 
24
24
  ${ANDROID_HOME}/platform-tools/adb devices
@@ -5,7 +5,6 @@ parameters:
5
5
  xcodeForIOS: 11.5
6
6
  xcodeForTVOS: 11.5
7
7
  androidSDK: 30
8
- androidBuildToolsVersion: '28.0.3'
9
8
  appiumVersion: 'beta'
10
9
  ignoreVersionSkip: true
11
10
  CI: true
@@ -155,7 +154,6 @@ jobs:
155
154
  ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
156
155
  IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
157
156
  APPIUM_VERSION: ${{ parameters.appiumVersion }}
158
- ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
159
157
  strategy:
160
158
  matrix:
161
159
  uiautomator2:
@@ -177,7 +175,6 @@ jobs:
177
175
  ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
178
176
  IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
179
177
  APPIUM_VERSION: ${{ parameters.appiumVersion }}
180
- ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
181
178
  strategy:
182
179
  matrix:
183
180
  uiautomator2:
@@ -199,7 +196,6 @@ jobs:
199
196
  ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
200
197
  IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
201
198
  APPIUM_VERSION: ${{ parameters.appiumVersion }}
202
- ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
203
199
  strategy:
204
200
  matrix:
205
201
  uiautomator2:
@@ -221,7 +217,6 @@ jobs:
221
217
  ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
222
218
  IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
223
219
  APPIUM_VERSION: ${{ parameters.appiumVersion }}
224
- ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
225
220
  strategy:
226
221
  matrix:
227
222
  uiautomator2:
@@ -231,7 +226,7 @@ jobs:
231
226
  steps:
232
227
  - template: ./functional/android_setup.yml
233
228
  - template: ./functional/run_appium.yml
234
- - script: bundle exec rake test:func:android TESTS=test/functional/android/android/mobile_commands_test.rb,test/functional/android/android/search_context_test.rb,test/functional/android/android/mjpeg_server_test.rb
229
+ - script: bundle exec rake test:func:android TESTS=test/functional/android/android/search_context_test.rb,test/functional/android/android/mjpeg_server_test.rb
235
230
  displayName: Run tests func_test_android_android2
236
231
  - template: ./functional/publish_test_result.yml
237
232
 
@@ -243,7 +238,6 @@ jobs:
243
238
  ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
244
239
  IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
245
240
  APPIUM_VERSION: ${{ parameters.appiumVersion }}
246
- ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
247
241
  strategy:
248
242
  matrix:
249
243
  uiautomator2:
@@ -266,7 +260,6 @@ jobs:
266
260
  AUTOMATION_NAME_DROID: espresso
267
261
  IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
268
262
  APPIUM_VERSION: ${{ parameters.appiumVersion }}
269
- ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
270
263
  strategy:
271
264
  matrix:
272
265
  uiautomator2:
@@ -289,7 +282,6 @@ jobs:
289
282
  # ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
290
283
  # IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
291
284
  # APPIUM_VERSION: ${{ parameters.appiumVersion }}
292
- # ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
293
285
  # strategy:
294
286
  # matrix:
295
287
  # uiautomator2:
@@ -47,7 +47,7 @@ module Appium
47
47
  grant_permissions: nil)
48
48
  args = { appPath: path }
49
49
 
50
- args[:options] = {} unless options?(replace, timeout, allow_test_packages, use_sdcard, grant_permissions)
50
+ args[:options] = {} if options?(replace, timeout, allow_test_packages, use_sdcard, grant_permissions)
51
51
 
52
52
  args[:options][:replace] = replace unless replace.nil?
53
53
  args[:options][:timeout] = timeout unless timeout.nil?
@@ -92,8 +92,8 @@ module Appium
92
92
 
93
93
  private
94
94
 
95
- def options?(replace, timeout, allow_test_packages, use_sdcard, grant_permissions)
96
- replace.nil? || timeout.nil? || allow_test_packages.nil? || use_sdcard.nil? || grant_permissions.nil?
95
+ def options?(*args)
96
+ args.compact.any?
97
97
  end
98
98
  end # module AppManagement
99
99
  end # module Device
@@ -494,7 +494,7 @@ module Appium
494
494
  private
495
495
 
496
496
  # @private
497
- def extend_for(device:, automation_name:)
497
+ def extend_for(device:, automation_name:) # rubocop:disable Metrics/CyclomaticComplexity
498
498
  extend Appium::Core
499
499
  extend Appium::Core::Device
500
500
 
@@ -505,21 +505,37 @@ module Appium
505
505
  ::Appium::Core::Android::Espresso::Bridge.for self
506
506
  when :uiautomator2
507
507
  ::Appium::Core::Android::Uiautomator2::Bridge.for self
508
+ when :gecko
509
+ ::Appium::Logger.debug('Gecko Driver for Android')
508
510
  else # default and UiAutomator
509
511
  ::Appium::Core::Android::Uiautomator1::Bridge.for self
510
512
  end
511
513
  when :ios, :tvos
512
514
  case automation_name
515
+ when :safari
516
+ ::Appium::Logger.debug('SafariDriver for iOS')
513
517
  when :xcuitest
514
518
  ::Appium::Core::Ios::Xcuitest::Bridge.for self
515
519
  else # default and UIAutomation
516
520
  ::Appium::Core::Ios::Uiautomation::Bridge.for self
517
521
  end
518
522
  when :mac
519
- # no Mac specific extentions
520
- ::Appium::Logger.debug('mac')
523
+ case automation_name
524
+ when :safari
525
+ ::Appium::Logger.debug('SafariDriver for macOS')
526
+ when :gecko
527
+ ::Appium::Logger.debug('Gecko Driver for macOS')
528
+ else
529
+ # no Mac specific extentions
530
+ ::Appium::Logger.debug('macOS Native')
531
+ end
521
532
  when :windows
522
- ::Appium::Core::Windows::Bridge.for self
533
+ case automation_name
534
+ when :gecko
535
+ ::Appium::Logger.debug('Gecko Driver for Windows')
536
+ else
537
+ ::Appium::Core::Windows::Bridge.for self
538
+ end
523
539
  when :tizen
524
540
  # https://github.com/Samsung/appium-tizen-driver
525
541
  ::Appium::Logger.debug('tizen')
@@ -531,6 +547,8 @@ module Appium
531
547
  when :mac
532
548
  # In this case also can be mac
533
549
  ::Appium::Logger.debug('mac')
550
+ when :gecko # other general platform
551
+ ::Appium::Logger.debug('Gecko Driver')
534
552
  else
535
553
  ::Appium::Logger.warn("No matched driver by platformName: #{device} and automationName: #{automation_name}")
536
554
  end
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '3.11.0' unless defined? ::Appium::Core::VERSION
18
- DATE = '2020-08-01' unless defined? ::Appium::Core::DATE
17
+ VERSION = '3.11.1' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2020-11-20' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
@@ -1,3 +1,20 @@
1
+ #### v3.11.1 2020-11-20
2
+
3
+ - [4fe582c](https://github.com/appium/ruby_lib_core/commit/4fe582c1318c2b5de83fcf87e36d1fedab8ed81a) Release 3.11.1
4
+ - [e017ebc](https://github.com/appium/ruby_lib_core/commit/e017ebcaa8c50653e2f45871465c78ad5a8ce81e) fix: install_app args options bug (#286)
5
+ - [e7b881c](https://github.com/appium/ruby_lib_core/commit/e7b881c19be1b3a9acf7d01f34f59307b8e16b89) chore(deps-dev): update webmock requirement from ~> 3.9.1 to ~> 3.10.0 (#284)
6
+ - [d1e8cb8](https://github.com/appium/ruby_lib_core/commit/d1e8cb864f00d4f4bd307b523cc205ee2a636d33) feat: add safari and geckodriver (#283)
7
+ - [569ea09](https://github.com/appium/ruby_lib_core/commit/569ea09f7777dd2508f1919ddcf9b88aba272647) test: use predicate instead of name for 'value' (#282)
8
+ - [e4d63eb](https://github.com/appium/ruby_lib_core/commit/e4d63eb82248a79b41fbbc39db5b03cc35d447cd) ci: remove duplicated test running
9
+ - [30be7dc](https://github.com/appium/ruby_lib_core/commit/30be7dca0ec3cdcafa647899447387924970df34) test: fix tests
10
+ - [94d4250](https://github.com/appium/ruby_lib_core/commit/94d4250033107ff956a2b9c1f0b30fedba286b5d) test: remove a trick
11
+ - [6605f78](https://github.com/appium/ruby_lib_core/commit/6605f78fb0d996faad7f1e21f1876eab5184d430) test: tweak test cases
12
+ - [7dbbadb](https://github.com/appium/ruby_lib_core/commit/7dbbadbda69ee2f710393768fb994e8e43adb3bb) fix lint
13
+ - [7619052](https://github.com/appium/ruby_lib_core/commit/76190523c95e3f6a1ab9a9af48d60605d2f87266) tweak test cases
14
+ - [87cb224](https://github.com/appium/ruby_lib_core/commit/87cb224a3f32261823fd5bacd9349cbe2158b54c) chore(deps-dev): update webmock requirement from ~> 3.8.0 to ~> 3.9.1 (#281)
15
+ - [577a75a](https://github.com/appium/ruby_lib_core/commit/577a75a690b6f0688dead506c26704c82ea6f2e9) ci: update for espresso (#280)
16
+
17
+
1
18
  #### v3.11.0 2020-08-01
2
19
 
3
20
  - [0ed888e](https://github.com/appium/ruby_lib_core/commit/0ed888efd87def79cdb1ca922268b466485a2261) Release 3.11.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-01 00:00:00.000000000 Z
11
+ date: 2020-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: 3.8.0
123
+ version: 3.10.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: 3.8.0
130
+ version: 3.10.0
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: rubocop
133
133
  requirement: !ruby/object:Gem::Requirement