appium_lib_core 3.0.3 → 3.0.4

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: 6a14f7937b4a688824874eafff39d449d313b66475efdf69bf1e8e4b860aa04b
4
- data.tar.gz: 55f0a38b412c86e7d80e64ae4220a09d7abcd0287ecf6d2bd39018501fff7058
3
+ metadata.gz: 19e9c6b07471ef223f0806c75237f8ccb259ad05793919dda87c379ba0fa24c1
4
+ data.tar.gz: 3f44d4c8eb67338bd402afa3c575a2147c32e611a0d7e9531f0dd57a70dfefbb
5
5
  SHA512:
6
- metadata.gz: 164a1c0f99fc92989efa2078cb77603a3d92efe1a5170a67e393e826e1e5df5cee2b216e4eef1963fbb1aa393e94a34f17589fd9df32263e73d05a8c83a92aa8
7
- data.tar.gz: 17115687ad45c9272b31e460f496615725651227050611fd199b76b9de4f72a98543de3115bd74733955742913f79f919aa1c820bb46c1c7f93086cb1cf404d4
6
+ metadata.gz: f4872bb129fd5f22a2163d223ddfd83ba35f735d8f63ae403bc68363599cffe3afd1c66c43ef23eccbded9a76d85cbc47892f96d7866529cfa53e0c7fc8f47fc
7
+ data.tar.gz: 3dbadb0c532d376183ed6604d38e715f36925cc04ee9569737144f6a8b66fd202a04407f2a070cdad22c175854241ccca5e41f4fbc9f88a39cd859115504a867
@@ -13,9 +13,9 @@ before_install:
13
13
 
14
14
  script:
15
15
  - bundle exec rake rubocop
16
- - bundle exec parallel_test test/unit/ -n 4
17
- - AUTOMATION_NAME_DROID=espresso bundle exec parallel_test test/unit/android -n 4
18
- - AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec parallel_test test/unit -n 4
16
+ - UNIT_TEST=true bundle exec parallel_test test/unit/ -n 4
17
+ - UNIT_TEST=true AUTOMATION_NAME_DROID=espresso bundle exec parallel_test test/unit/android -n 4
18
+ - UNIT_TEST=true AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec parallel_test test/unit -n 4
19
19
 
20
20
  notifications:
21
21
  email:
@@ -5,6 +5,14 @@ Read `release_notes.md` for commit level details.
5
5
  ## [Unreleased]
6
6
 
7
7
  ### Enhancements
8
+ - Add `pixelFormat` argument in screen record for iOS
9
+
10
+ ### Bug fixes
11
+
12
+ ## [3.0.4] - 2019-03-24
13
+
14
+ ### Enhancements
15
+ - Add `pixelFormat` argument in screen record for iOS
8
16
 
9
17
  ### Bug fixes
10
18
 
data/README.md CHANGED
@@ -31,19 +31,29 @@ $ bundle exec parallel_test test/unit/
31
31
  Run functional tests which require the Appium server and real device, Simulator/Emulator.
32
32
 
33
33
  - Start Appium server
34
- ```bash
34
+ ```bash
35
35
  $ npm install -g appium opencv4nodejs
36
36
  $ appium --relaxed-security # To run all tests in local
37
37
  ```
38
38
 
39
39
  - Conduct tests
40
- ```bash
40
+ ```bash
41
41
  $ bundle install
42
42
  $ rake test:func:android # Andorid, uiautomator2
43
43
  $ AUTOMATION_NAME_DROID=espresso rake test:func:android # Andorid, uiautomator2
44
44
  $ rake test:func:ios # iOS
45
45
  ```
46
46
 
47
+ #### Real device for iOS
48
+
49
+ - You should pre-install [UICatalog](https://github.com/appium/ios-uicatalog) in iOS with a particular `bundleId`
50
+ - Set the `bundleId` instead of `app` in `test/test_helper#ios`
51
+
52
+ ```bash
53
+ # Create derivedDataPath in "/tmp/#{org_id}" and reuse xctestrun in the directory
54
+ $ REAL=true BUNDLE_ID='target-bundleid' WDA_BUNDLEID="ios.appium.WebDriverAgentRunner" ORG_ID=XXXXXXX rake test:func:ios
55
+ ```
56
+
47
57
  #### Run parallel tests with parallel_tests gem
48
58
  #### Android
49
59
 
data/Rakefile CHANGED
@@ -12,6 +12,9 @@ namespace :test do
12
12
  namespace :func do
13
13
  desc('Run all iOS related tests in test directory')
14
14
  Rake::TestTask.new(:ios) do |t|
15
+ tmp_build = File.expand_path('tmp/Build/Products/')
16
+ puts "#{tmp_build} is used for tests. Make sure they are not older version" if File.exist?(tmp_build)
17
+
15
18
  t.libs << 'test'
16
19
  t.libs << 'lib'
17
20
  t.test_files = FileList['test/functional/ios/**/*_test.rb']
@@ -5,6 +5,9 @@
5
5
  pool:
6
6
  vmImage: 'vs2017-win2016'
7
7
 
8
+ variables:
9
+ UNIT_TEST: true
10
+
8
11
  steps:
9
12
  - task: UseRubyVersion@0
10
13
  inputs:
@@ -426,12 +426,18 @@ module Appium
426
426
  # of the corresponding application container.
427
427
  # Otherwise the root folder is considered as / on Android and on iOS it is a media folder root
428
428
  # (real devices only).
429
+ # Only pulling files from application containers is supported for iOS Simulator.
430
+ # Provide the remote path in format
431
+ # <code>@bundle.identifier:container_type/relative_path_in_container</code>
432
+ # (Make sure this in ifuse doc)
433
+ #
429
434
  # @return [Base64-decoded] Base64 decoded data
430
435
  #
431
436
  # @example
432
437
  #
433
438
  # @driver.pull_file '/local/data/some/path' #=> Get the file at that path
434
439
  # @driver.pull_file 'Shenanigans.app/some/file' #=> Get 'some/file' from the install location of Shenanigans.app
440
+ # @driver.pull_file '@com.appium.example/Documents/file.txt' #=> Get 'file.txt' in @com.appium.example/Documents
435
441
  #
436
442
  def pull_file(path)
437
443
  @bridge.pull_file(path)
@@ -444,20 +450,27 @@ module Appium
444
450
  # its container on the internal file system.
445
451
  #
446
452
  # {https://github.com/libimobiledevice/ifuse iFuse GitHub page6}
453
+ #
447
454
  # {https://github.com/osxfuse/osxfuse/wiki/FAQ osxFuse FAQ}
448
- # {https://developer.android.com/studio/debug/ 'Debug Your App' developer article}
455
+ #
456
+ # {https://developer.android.com/studio/debug 'Debug Your App' developer article}
449
457
  #
450
458
  # @param [String] path Absolute path to the folder.
451
459
  # If the path starts with <em>@applicationId/</em> prefix, then the folder will be pulled
452
460
  # from the root of the corresponding application container.
453
461
  # Otherwise the root folder is considered as / on Android and on iOS it is a media folder root
454
462
  # (real devices only).
463
+ # Only pulling files from application containers is supported for iOS Simulator.
464
+ # Provide the remote path in format
465
+ # <code>@bundle.identifier:container_type/relative_path_in_container</code>
466
+ # (Make sure this in ifuse doc)
455
467
  #
456
468
  # @return [Base64-decoded] Base64 decoded data which is zip archived
457
469
  #
458
470
  # @example
459
471
  #
460
472
  # @driver.pull_folder '/data/local/tmp' #=> Get the folder at that path
473
+ # @driver.pull_file '@com.appium.example/Documents' #=> Get 'Documents' in @com.appium.example
461
474
  #
462
475
  def pull_folder(path)
463
476
  @bridge.pull_folder(path)
@@ -80,6 +80,8 @@ module Appium
80
80
  # is too slow or too fast. Defaults to 10. This can decrease the resulting file size.
81
81
  # @param [String] video_scale The scaling value to apply. Read https://trac.ffmpeg.org/wiki/Scaling for possible values.
82
82
  # No scale is applied by default.
83
+ # @param [String] pixel_format Output pixel format. Run `ffmpeg -pix_fmts` to list possible values.
84
+ # For Quicktime compatibility, set to "yuv420p" along with videoType: "libx264".
83
85
  #
84
86
  # @example
85
87
  #
@@ -23,7 +23,7 @@ module Appium
23
23
  # rubocop:disable Metrics/ParameterLists
24
24
  def start_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT', force_restart: nil,
25
25
  video_type: 'mjpeg', time_limit: '180', video_quality: 'medium',
26
- video_fps: nil, video_scale: nil)
26
+ video_fps: nil, video_scale: nil, pixel_format: nil)
27
27
  option = ::Appium::Core::Base::Device::ScreenRecord.new(
28
28
  remote_path: remote_path, user: user, pass: pass, method: method, force_restart: force_restart
29
29
  ).upload_option
@@ -34,6 +34,7 @@ module Appium
34
34
 
35
35
  option[:videoFps] = video_fps unless video_fps.nil?
36
36
  option[:videoScale] = video_scale unless video_scale.nil?
37
+ option[:pixelFormat] = pixel_format unless pixel_format.nil?
37
38
 
38
39
  execute(:start_recording_screen, {}, { options: option })
39
40
  end
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '3.0.3' unless defined? ::Appium::Core::VERSION
18
- DATE = '2019-03-11' unless defined? ::Appium::Core::DATE
17
+ VERSION = '3.0.4' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2019-03-24' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
@@ -1,3 +1,27 @@
1
+ #### v3.0.4 2019-03-24
2
+
3
+ - [c430740](https://github.com/appium/ruby_lib_core/commit/c43074089a9ecf18bdd3e5022530117fefcae8ab) Release 3.0.4
4
+ - [7691c07](https://github.com/appium/ruby_lib_core/commit/7691c0771703f6ac207a0828c93790efcaaa8300) update android sample app (#203)
5
+ - [3d3a0a8](https://github.com/appium/ruby_lib_core/commit/3d3a0a80da62925e61b0c5197a1a87f119e4002a) add UNIT_TEST=true (#202)
6
+ - [c49f3ac](https://github.com/appium/ruby_lib_core/commit/c49f3ac31ecf9a978608eeb7f94e988974e57bfc) add UNIT_TEST=true into azure
7
+ - [2bcfb17](https://github.com/appium/ruby_lib_core/commit/2bcfb1753df3a7adb0ac2a09274445dd31870447) switchable app and bundleid
8
+ - [3fd2088](https://github.com/appium/ruby_lib_core/commit/3fd2088e0d2c0fa14bacdeed95c421995cd0a8b5) skip xcodebuild
9
+ - [b3079da](https://github.com/appium/ruby_lib_core/commit/b3079dab4096d67fccfa9808898c5cf074d0a776) make useNewWDA false to make tests faster
10
+ - [0f608a0](https://github.com/appium/ruby_lib_core/commit/0f608a03b464dfe71203fadac0854e5663eb9ec0) tweak xctestrun
11
+ - [9deda0e](https://github.com/appium/ruby_lib_core/commit/9deda0eca62c145af6a70b826a52fb05f52ac3a2) Add pixel format (#200)
12
+ - [9585b16](https://github.com/appium/ruby_lib_core/commit/9585b16104052cb4f9f175c59f08d3bc6992a64f) make permissions tests robust
13
+ - [3410a98](https://github.com/appium/ruby_lib_core/commit/3410a98bd67ea18b4c64e3ffe61a6b439a5d1040) add tests for mobile permission commands
14
+ - [59ba947](https://github.com/appium/ruby_lib_core/commit/59ba9475002279918038d148d9ae449e49a7aa05) make sure show keyboard
15
+ - [9769c8e](https://github.com/appium/ruby_lib_core/commit/9769c8e4fa7ed55eefb37fc5cac04457775f5b56) add push before pull folder
16
+ - [150d8c3](https://github.com/appium/ruby_lib_core/commit/150d8c32e71d107da4236726b22afc8343aa68d8) add a comment
17
+ - [0da4dbf](https://github.com/appium/ruby_lib_core/commit/0da4dbffa2637ee0746c06ff5d0a432359e61850) insert org id in the path to builds
18
+ - [934f4f8](https://github.com/appium/ruby_lib_core/commit/934f4f8f98b8056aa0b3c0d243b862cb1af1e43a) tweak private/public
19
+ - [73ab471](https://github.com/appium/ruby_lib_core/commit/73ab4718a616c49676eadc88cc3ecf9e39a81e67) Add useXctestrunFile for ios func tests to reduce the running time (#199)
20
+ - [d2767a8](https://github.com/appium/ruby_lib_core/commit/d2767a82c7ac101c82546e08884e020565add099) fix rubocop
21
+ - [175ab43](https://github.com/appium/ruby_lib_core/commit/175ab43df3e3b503f4465e4432cc1497845d3658) add ifues description
22
+ - [6ed85d7](https://github.com/appium/ruby_lib_core/commit/6ed85d769f685b1fd15c3b977320e867b1be21dd) add wait in order to make this test reliable
23
+
24
+
1
25
  #### v3.0.3 2019-03-11
2
26
 
3
27
  - [b2dc0d9](https://github.com/appium/ruby_lib_core/commit/b2dc0d9ce3ef156da0b40b5e70ec0abd9c493d5a) Release 3.0.3
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.0.3
4
+ version: 3.0.4
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-03-11 00:00:00.000000000 Z
11
+ date: 2019-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver