appium_lib_core 3.2.2 → 3.2.3
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/ci-jobs/functional_test.yml +91 -28
- data/lib/appium_lib_core/android/device.rb +7 -0
- data/lib/appium_lib_core/common/device/value.rb +23 -4
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 620f9c1100bd3c5d4740a3b0fd39e7fc4741e318ba97c9b637e14f5e9c9cf34d
|
|
4
|
+
data.tar.gz: 3e38c30b744ee54906fa4887fdf6cbd49cd2326e9e6c55e4891c834fbf7d1955
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8646d2aac462bd1ad46af62c1a7017b8fdf0e23b4f3d7f966113b8967217b5c6fcece219fea630b6218ca139bee039a056cdab375f3675b9a66ed982a9a8a77
|
|
7
|
+
data.tar.gz: 61e9c47729367969d1b029fd875e5aa1e11bec27460a0c607cbbb93cf842694f6e581ec72235252013323ada858e72182d799f2726feb19251d47cc9ab620eff
|
data/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,15 @@ Read `release_notes.md` for commit level details.
|
|
|
10
10
|
|
|
11
11
|
### Deprecations
|
|
12
12
|
|
|
13
|
+
## [3.2.3] - 2019-09-30
|
|
14
|
+
|
|
15
|
+
### Enhancements
|
|
16
|
+
- Add `system_bars` as an alias to `get_system_bars`
|
|
17
|
+
|
|
18
|
+
### Bug fixes
|
|
19
|
+
|
|
20
|
+
### Deprecations
|
|
21
|
+
|
|
13
22
|
## [3.2.2] - 2019-08-04
|
|
14
23
|
|
|
15
24
|
### Enhancements
|
data/README.md
CHANGED
|
@@ -69,7 +69,7 @@ $ PARALLEL=1 bundle exec parallel_test test/functional/android -n 3
|
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
##### iOS
|
|
72
|
-
- Create iPhone simulators named `iPhone
|
|
72
|
+
- Create iPhone simulators named `iPhone Xs Max- 8100` and `iPhone Xs Max - 8101`
|
|
73
73
|
- Run iOS functional tests with below command
|
|
74
74
|
|
|
75
75
|
```
|
data/ci-jobs/functional_test.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# jobs for functional test
|
|
2
2
|
parameters:
|
|
3
3
|
vmImage: 'macOS-10.14'
|
|
4
|
-
vmImageForIOS: 'macOS-10.
|
|
5
|
-
xcodeForIOS: 10.
|
|
4
|
+
vmImageForIOS: 'macOS-10.14' # Not sure the reason, but macOS 10.14 instance raises no info.plist error
|
|
5
|
+
xcodeForIOS: 10.3
|
|
6
6
|
xcodeForTVOS: 10.2
|
|
7
7
|
androidSDK: 28
|
|
8
8
|
appiumVersion: 'beta'
|
|
@@ -95,9 +95,7 @@ jobs:
|
|
|
95
95
|
parameters:
|
|
96
96
|
xcodeVersion: ${{ parameters.xcodeForIOS }}
|
|
97
97
|
- template: ./functional/run_appium.yml
|
|
98
|
-
- script:
|
|
99
|
-
displayName: Install opencv4nodejs@4.17.0
|
|
100
|
-
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/device_wda_attachment_test.rb,test/functional/ios/ios/image_comparison_test.rb
|
|
98
|
+
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/device_wda_attachment_test.rb,test/functional/ios/ios/search_context_test.rb
|
|
101
99
|
displayName: Run tests
|
|
102
100
|
- template: ./functional/publish_test_result.yml
|
|
103
101
|
parameters:
|
|
@@ -117,7 +115,7 @@ jobs:
|
|
|
117
115
|
- script: brew install ffmpeg && brew tap wix/brew && brew install wix/brew/applesimutils
|
|
118
116
|
displayName: Install ffmpeg and applesimutils
|
|
119
117
|
- template: ./functional/run_appium.yml
|
|
120
|
-
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/mjpeg_server_test.rb,test/functional/ios/ios/mobile_commands_test.rb
|
|
118
|
+
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/mjpeg_server_test.rb,test/functional/ios/ios/mobile_commands_test.rb
|
|
121
119
|
displayName: Run tests
|
|
122
120
|
- template: ./functional/publish_test_result.yml
|
|
123
121
|
parameters:
|
|
@@ -141,6 +139,28 @@ jobs:
|
|
|
141
139
|
parameters:
|
|
142
140
|
xcodeVersion: 'Run_func_test_on_iOS_tv'
|
|
143
141
|
|
|
142
|
+
# Skip since opencv4nodejs fails to install on the macOS instance
|
|
143
|
+
# - job: func_test_ios_opencv
|
|
144
|
+
# pool:
|
|
145
|
+
# vmImage: ${{ parameters.vmImageForIOS }}
|
|
146
|
+
# variables:
|
|
147
|
+
# CI: ${{ parameters.ci }}
|
|
148
|
+
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
149
|
+
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
150
|
+
# steps:
|
|
151
|
+
# - template: ./functional/ios_setup.yml
|
|
152
|
+
# parameters:
|
|
153
|
+
# xcodeVersion: ${{ parameters.xcodeForIOS }}
|
|
154
|
+
# - template: ./functional/run_appium.yml
|
|
155
|
+
# - script: npm install -g opencv4nodejs@5.1.0
|
|
156
|
+
# displayName: Install opencv4nodejs@5.1.0
|
|
157
|
+
# - script: bundle exec rake test:func:ios test/functional/ios/ios/image_comparison_test.rb
|
|
158
|
+
# displayName: Run tests
|
|
159
|
+
# - template: ./functional/publish_test_result.yml
|
|
160
|
+
# parameters:
|
|
161
|
+
# xcodeVersion: 'Run_func_test_on_iOS_opencv'
|
|
162
|
+
|
|
163
|
+
|
|
144
164
|
- job: func_test_android_base
|
|
145
165
|
pool:
|
|
146
166
|
vmImage: ${{ parameters.vmImage }}
|
|
@@ -149,6 +169,12 @@ jobs:
|
|
|
149
169
|
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
150
170
|
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
151
171
|
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
172
|
+
strategy:
|
|
173
|
+
matrix:
|
|
174
|
+
uiautomator2:
|
|
175
|
+
AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
176
|
+
espresso:
|
|
177
|
+
AUTOMATION_NAME_DROID: 'espresso'
|
|
152
178
|
steps:
|
|
153
179
|
- template: ./functional/android_setup.yml
|
|
154
180
|
- template: ./functional/run_appium.yml
|
|
@@ -166,6 +192,12 @@ jobs:
|
|
|
166
192
|
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
167
193
|
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
168
194
|
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
195
|
+
strategy:
|
|
196
|
+
matrix:
|
|
197
|
+
uiautomator2:
|
|
198
|
+
AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
199
|
+
espresso:
|
|
200
|
+
AUTOMATION_NAME_DROID: 'espresso'
|
|
169
201
|
steps:
|
|
170
202
|
- template: ./functional/android_setup.yml
|
|
171
203
|
- template: ./functional/run_appium.yml
|
|
@@ -183,6 +215,12 @@ jobs:
|
|
|
183
215
|
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
184
216
|
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
185
217
|
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
218
|
+
strategy:
|
|
219
|
+
matrix:
|
|
220
|
+
uiautomator2:
|
|
221
|
+
AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
222
|
+
espresso:
|
|
223
|
+
AUTOMATION_NAME_DROID: 'espresso'
|
|
186
224
|
steps:
|
|
187
225
|
- template: ./functional/android_setup.yml
|
|
188
226
|
- template: ./functional/run_appium.yml
|
|
@@ -200,35 +238,22 @@ jobs:
|
|
|
200
238
|
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
201
239
|
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
202
240
|
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
241
|
+
strategy:
|
|
242
|
+
matrix:
|
|
243
|
+
uiautomator2:
|
|
244
|
+
AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
245
|
+
espresso:
|
|
246
|
+
AUTOMATION_NAME_DROID: 'espresso'
|
|
203
247
|
steps:
|
|
204
248
|
- template: ./functional/android_setup.yml
|
|
205
249
|
- template: ./functional/run_appium.yml
|
|
206
|
-
- script:
|
|
207
|
-
displayName: Install opencv4nodejs@4.17.0
|
|
208
|
-
- script: bundle exec rake test:func:android TESTS=test/functional/android/android/image_comparison_test.rb,test/functional/android/android/mjpeg_server_test.rb
|
|
209
|
-
displayName: Run tests
|
|
210
|
-
- template: ./functional/publish_test_result.yml
|
|
211
|
-
parameters:
|
|
212
|
-
xcodeVersion: 'func_test_android_android2'
|
|
213
|
-
|
|
214
|
-
- job: func_test_android_android3
|
|
215
|
-
pool:
|
|
216
|
-
vmImage: ${{ parameters.vmImage }}
|
|
217
|
-
variables:
|
|
218
|
-
CI: ${{ parameters.ci }}
|
|
219
|
-
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
220
|
-
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
221
|
-
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
222
|
-
steps:
|
|
223
|
-
- template: ./functional/android_setup.yml
|
|
224
|
-
- template: ./functional/run_appium.yml
|
|
225
|
-
- script: bundle exec rake test:func:android TESTS=test/functional/android/android/mobile_commands_test.rb,test/functional/android/android/search_context_test.rb
|
|
250
|
+
- 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
|
|
226
251
|
displayName: Run tests
|
|
227
252
|
- template: ./functional/publish_test_result.yml
|
|
228
253
|
parameters:
|
|
229
254
|
xcodeVersion: 'func_test_android_android3'
|
|
230
255
|
|
|
231
|
-
- job:
|
|
256
|
+
- job: func_test_android_android3
|
|
232
257
|
pool:
|
|
233
258
|
vmImage: ${{ parameters.vmImage }}
|
|
234
259
|
variables:
|
|
@@ -236,6 +261,12 @@ jobs:
|
|
|
236
261
|
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
237
262
|
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
238
263
|
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
264
|
+
strategy:
|
|
265
|
+
matrix:
|
|
266
|
+
uiautomator2:
|
|
267
|
+
AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
268
|
+
espresso:
|
|
269
|
+
AUTOMATION_NAME_DROID: 'espresso'
|
|
239
270
|
steps:
|
|
240
271
|
- template: ./functional/android_setup.yml
|
|
241
272
|
- template: ./functional/run_appium.yml
|
|
@@ -243,7 +274,7 @@ jobs:
|
|
|
243
274
|
displayName: Run tests
|
|
244
275
|
- template: ./functional/publish_test_result.yml
|
|
245
276
|
parameters:
|
|
246
|
-
xcodeVersion: '
|
|
277
|
+
xcodeVersion: 'func_test_android_android3'
|
|
247
278
|
|
|
248
279
|
- job: func_test_android_mobile_command_espresso
|
|
249
280
|
pool:
|
|
@@ -254,6 +285,12 @@ jobs:
|
|
|
254
285
|
AUTOMATION_NAME_DROID: espresso
|
|
255
286
|
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
256
287
|
APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
288
|
+
strategy:
|
|
289
|
+
matrix:
|
|
290
|
+
uiautomator2:
|
|
291
|
+
AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
292
|
+
espresso:
|
|
293
|
+
AUTOMATION_NAME_DROID: 'espresso'
|
|
257
294
|
steps:
|
|
258
295
|
- template: ./functional/android_setup.yml
|
|
259
296
|
- template: ./functional/run_appium.yml
|
|
@@ -262,3 +299,29 @@ jobs:
|
|
|
262
299
|
- template: ./functional/publish_test_result.yml
|
|
263
300
|
parameters:
|
|
264
301
|
xcodeVersion: 'func_test_android_mobile_command_espresso'
|
|
302
|
+
|
|
303
|
+
# Skip since opencv4nodejs fails to install on the macOS instance
|
|
304
|
+
# - job: func_test_android_opencv
|
|
305
|
+
# pool:
|
|
306
|
+
# vmImage: ${{ parameters.vmImage }}
|
|
307
|
+
# variables:
|
|
308
|
+
# CI: ${{ parameters.ci }}
|
|
309
|
+
# ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
|
|
310
|
+
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
|
|
311
|
+
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
|
|
312
|
+
# strategy:
|
|
313
|
+
# matrix:
|
|
314
|
+
# uiautomator2:
|
|
315
|
+
# AUTOMATION_NAME_DROID: 'uiautomator2'
|
|
316
|
+
# espresso:
|
|
317
|
+
# AUTOMATION_NAME_DROID: 'espresso'
|
|
318
|
+
# steps:
|
|
319
|
+
# - template: ./functional/android_setup.yml
|
|
320
|
+
# - template: ./functional/run_appium.yml
|
|
321
|
+
# - script: npm install -g opencv4nodejs@5.1.0
|
|
322
|
+
# displayName: Install opencv4nodejs@5.1.0
|
|
323
|
+
# - script: bundle exec rake test:func:android TESTS=test/functional/android/android/image_comparison_test.rb
|
|
324
|
+
# displayName: Run tests
|
|
325
|
+
# - template: ./functional/publish_test_result.yml
|
|
326
|
+
# parameters:
|
|
327
|
+
# xcodeVersion: 'func_test_android_android2'
|
|
@@ -60,6 +60,7 @@ module Appium
|
|
|
60
60
|
# @example
|
|
61
61
|
#
|
|
62
62
|
# @driver.get_system_bars
|
|
63
|
+
# @driver.system_bars
|
|
63
64
|
#
|
|
64
65
|
|
|
65
66
|
# @!method get_display_density
|
|
@@ -315,6 +316,12 @@ module Appium
|
|
|
315
316
|
execute :get_system_bars
|
|
316
317
|
end
|
|
317
318
|
end
|
|
319
|
+
# as alias to get_system_bars
|
|
320
|
+
::Appium::Core::Device.add_endpoint_method(:system_bars) do
|
|
321
|
+
def system_bars
|
|
322
|
+
execute :get_system_bars
|
|
323
|
+
end
|
|
324
|
+
end
|
|
318
325
|
|
|
319
326
|
::Appium::Core::Device.add_endpoint_method(:toggle_location_services) do
|
|
320
327
|
def toggle_location_services
|
|
@@ -18,13 +18,32 @@ module Appium
|
|
|
18
18
|
module Device
|
|
19
19
|
module Value
|
|
20
20
|
def set_immediate_value(element, *value)
|
|
21
|
-
|
|
22
|
-
execute :set_immediate_value, { id: element.ref }, value: Array(keys)
|
|
21
|
+
execute :set_immediate_value, { id: element.ref }, generate_value_and_text(value)
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
def replace_value(element, *value)
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
execute :replace_value, { id: element.ref }, generate_value_and_text(value)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
private
|
|
29
|
+
|
|
30
|
+
def generate_value_and_text(*value)
|
|
31
|
+
keys = ::Selenium::WebDriver::Keys.encode(*value)
|
|
32
|
+
|
|
33
|
+
if @file_detector
|
|
34
|
+
local_files = keys.first.split("\n").map { |key| @file_detector.call(Array(key)) }.compact
|
|
35
|
+
if local_files.any?
|
|
36
|
+
keys = local_files.map { |local_file| upload(local_file) }
|
|
37
|
+
keys = Array(keys.join("\n"))
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Keep .split(//) for backward compatibility for now
|
|
42
|
+
text = keys.join('')
|
|
43
|
+
|
|
44
|
+
# FIXME: further work for W3C. Over appium 1.15.0 or later
|
|
45
|
+
# { value: text.split(//), text: text }
|
|
46
|
+
{ value: text.split(//) }
|
|
28
47
|
end
|
|
29
48
|
end # module Value
|
|
30
49
|
end # module Device
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
module Appium
|
|
16
16
|
module Core
|
|
17
|
-
VERSION = '3.2.
|
|
18
|
-
DATE = '2019-
|
|
17
|
+
VERSION = '3.2.3' unless defined? ::Appium::Core::VERSION
|
|
18
|
+
DATE = '2019-09-30' unless defined? ::Appium::Core::DATE
|
|
19
19
|
end
|
|
20
20
|
end
|
data/release_notes.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
#### v3.2.3 2019-09-30
|
|
2
|
+
|
|
3
|
+
- [9af149b](https://github.com/appium/ruby_lib_core/commit/9af149bd3b086e7cb8ac07470c5d097e46ac0b65) Release 3.2.3
|
|
4
|
+
- [7634b44](https://github.com/appium/ruby_lib_core/commit/7634b445c6d846d72bcffa8763120cde1dd351ed) test: add landscape simple w3c cllick (#240)
|
|
5
|
+
- [b629d6b](https://github.com/appium/ruby_lib_core/commit/b629d6b5d6031399356076d34ca2b8074bc98915) feat: add alias to get_system_bars (#239)
|
|
6
|
+
- [377aefd](https://github.com/appium/ruby_lib_core/commit/377aefd061e0464960341f8099597fdd05183516) test: fix wring width and height
|
|
7
|
+
- [6f1b5d4](https://github.com/appium/ruby_lib_core/commit/6f1b5d435959542e605a475af86d86dcab68e749) ci: disable opencv to avoid installation error on ci (#237)
|
|
8
|
+
- [891fd9a](https://github.com/appium/ruby_lib_core/commit/891fd9ab88a97a6a54c9a7451731befc01b774d2) test: relaxed check logic
|
|
9
|
+
- [9ab4035](https://github.com/appium/ruby_lib_core/commit/9ab40353cc76149f55bde40b0349d2cab1f8a88d) test: set ios13 test app (#236)
|
|
10
|
+
- [706df5b](https://github.com/appium/ruby_lib_core/commit/706df5b52a944d2a4aef01b9bb435ee57b632327) Merge branch 'master' of github.com:appium/ruby_lib_core
|
|
11
|
+
- [01a0efb](https://github.com/appium/ruby_lib_core/commit/01a0efb44fcfc10a3a8c3c85b144245945d18391) add eventTimings for tests
|
|
12
|
+
- [625f7a0](https://github.com/appium/ruby_lib_core/commit/625f7a04e2291b0befee2a13a736119ffbbf7b56) ci: Add tests for espresso driver (#235)
|
|
13
|
+
- [f739d27](https://github.com/appium/ruby_lib_core/commit/f739d2719b9276e8231bde5f133ec88fbb64b10d) add available contexts at the end of contexts test
|
|
14
|
+
- [be245db](https://github.com/appium/ruby_lib_core/commit/be245db7140044ebbe7adaccd3f23ca0ee70f4eb) update ios test app (#234)
|
|
15
|
+
- [b42c483](https://github.com/appium/ruby_lib_core/commit/b42c483a0e3089bbc16a6d55642938b658f34892) update ios tests on Azure with the latest app since old test app cause info.plist error (#233)
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
#### v3.2.2 2019-08-04
|
|
2
19
|
|
|
3
20
|
- [9679bb0](https://github.com/appium/ruby_lib_core/commit/9679bb0ef49435e8afd7a5688e90ca74447dbbd6) Release 3.2.2
|
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.2.
|
|
4
|
+
version: 3.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kazuaki MATSUO
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: selenium-webdriver
|