appium_lib_core 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: 0f00f304ef07a9a040cdd6196c32610321fa269e
4
- data.tar.gz: 9e293fa244d6cee282bf135b8d8a0af30d8aa3c4
3
+ metadata.gz: 364a81fd6f049768204fc9dc30f2f51265176de7
4
+ data.tar.gz: 75dc09e05f7772dc5d7ee4423179a0d41d2721e4
5
5
  SHA512:
6
- metadata.gz: a017b2de66dc4deab0347ba695c41ca1d6a978c58ca3bc564ff0936a8275c0f28647275d5f3ae1ae6f825219e21b76460f7746cfa76e3a1108f736369d909d02
7
- data.tar.gz: a7cea0f5b57d628756cb78cb84f4617cffba145868a8c9ba4c7d9f7d990a5e8e56a8f1ab4923d7536e208bd565cd21c8cc26ff04779cc11d4cefea664b3745a9
6
+ metadata.gz: 260ec3ebbf46eb42899faffe340c118f7c088c9c904f3d2e392398a7bd7dd7cf11331c4c76b6dad8d877fd58f42f2aae1a20af08dae643463770f444ab02743d
7
+ data.tar.gz: 13864b02d704a12247ba774e2bee8ca827ebc5a22bed183657910f45437fd68bacbde2f6c6754870eb9b3b6555dc1db463a84750eb950b786319b0171170bc8e
@@ -1,5 +1,6 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
+ Read `release_notes.md` for commit level details.
3
4
 
4
5
  ## [Unreleased]
5
6
  ### Enhancements
@@ -8,7 +9,15 @@ All notable changes to this project will be documented in this file.
8
9
 
9
10
  ### Deprecations
10
11
 
11
- ## [Unreleased]
12
+ ## [2.0.5] - 2018-10-30
13
+ ### Enhancements
14
+ - [internal] No longer send `strategy: :tapOutside` as default value in Android
15
+
16
+ ### Bug fixes
17
+
18
+ ### Deprecations
19
+
20
+ ## [2.0.4] - 2018-10-19
12
21
  ### Enhancements
13
22
  - Add custom locator in the future work: [element-finding-plugins](https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/element-finding-plugins.md)
14
23
  - https://github.com/appium/appium-base-driver/pull/268/
data/README.md CHANGED
@@ -28,7 +28,7 @@ Run functional tests which require the Appium server and real device, Simulator/
28
28
  - Start Appium server
29
29
  ```bash
30
30
  $ npm install -g appium opencv4nodejs
31
- $ appium --relaxed-security # To run all tests in rocal
31
+ $ appium --relaxed-security # To run all tests in local
32
32
  ```
33
33
 
34
34
  - Conduct tests
@@ -39,12 +39,21 @@ $ rake test:func:ios # iOS
39
39
  ```
40
40
 
41
41
  #### Run parallel tests with parallel_tests gem
42
+ #### Android
42
43
 
44
+ ```
45
+ # Generate 3 emulators. Running 3 emulators require much machine power.
46
+ # It requires an image which is for Google Play and x86 CPU architecture's image.
47
+ $ bundle exec rake android:gen_device
48
+ $ PARALLEL=1 bundle exec parallel_test test/functional/android -n 3
49
+ ```
50
+
51
+ ##### iOS
43
52
  - Create iPhone simulators named `iPhone 8 - 8100` and `iPhone 8 - 8101`
44
53
  - Run iOS functional tests with below command
45
54
 
46
55
  ```
47
- PARALLEL=1 bundle exec parallel_test test/functional/ios -n 2
56
+ $ PARALLEL=1 bundle exec parallel_test test/functional/ios -n 2
48
57
  ```
49
58
 
50
59
  ## Run a test case
data/Rakefile CHANGED
@@ -56,6 +56,33 @@ namespace :test do
56
56
  end
57
57
  end
58
58
 
59
+ namespace :android do
60
+ desc('Generate and launch android emulators')
61
+ task :gen_device do |_t, _args|
62
+ SWARMER_VERSION = '0.2.4'
63
+ CPU_ARCHITECTURE = 'x86'
64
+ IMAGE = 'google_apis'
65
+ ANDROID_API = 27
66
+ system %W(
67
+ curl
68
+ --fail
69
+ --location https://jcenter.bintray.com/com/gojuno/swarmer/swarmer/#{SWARMER_VERSION}/swarmer-#{SWARMER_VERSION}.jar
70
+ --output /tmp/swarmer.jar
71
+ ).join(' ')
72
+ cmds = (1..3).reduce([]) do |acc, number|
73
+ acc << %W(
74
+ --emulator-name test#{number}
75
+ --package "system-images;android-#{ANDROID_API};#{IMAGE};#{CPU_ARCHITECTURE}"
76
+ --android-abi #{IMAGE}/#{CPU_ARCHITECTURE}
77
+ --path-to-config-ini test/functional/android/emulator_config.ini
78
+ --emulator-start-options -netdelay none -netspeed full -screen touch -prop persist.sys.language=en -prop persist.sys.country=US
79
+ ).join(' ')
80
+ end
81
+
82
+ system %W(java -jar /tmp/swarmer.jar start).concat(cmds).flatten.join(' ')
83
+ end
84
+ end
85
+
59
86
  desc('Generate yardoc')
60
87
  YARD::Rake::YardocTask.new do |t|
61
88
  t.files = %w(lib/**/*.rb)
@@ -317,7 +317,7 @@ module Appium
317
317
  option = {}
318
318
 
319
319
  option[:key] = close_key if close_key
320
- option[:strategy] = strategy || :tapOutside # default to pressKey
320
+ option[:strategy] = strategy if strategy
321
321
 
322
322
  execute :hide_keyboard, {}, option
323
323
  end
@@ -27,6 +27,7 @@ module Appium
27
27
  end
28
28
 
29
29
  def take_viewport_screenshot
30
+ # TODO: this hasn't been supported by Espresso driver
30
31
  execute_script('mobile: viewportScreenshot')
31
32
  end
32
33
 
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Core
3
- VERSION = '2.0.4'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2018-10-19'.freeze unless defined? ::Appium::Core::DATE
3
+ VERSION = '2.0.5'.freeze unless defined? ::Appium::Core::VERSION
4
+ DATE = '2018-10-30'.freeze unless defined? ::Appium::Core::DATE
5
5
  end
6
6
  end
@@ -1,3 +1,16 @@
1
+ #### v2.0.5 2018-10-30
2
+
3
+ - [3197865](https://github.com/appium/ruby_lib_core/commit/31978651941fb169b2d63bb35aeb6005622ca9bc) Release 2.0.5
4
+ - [fd9d4f5](https://github.com/appium/ruby_lib_core/commit/fd9d4f58e352b087a2b58b05aa7a8dbd764e6e36) fix typo
5
+ - [daa28da](https://github.com/appium/ruby_lib_core/commit/daa28dae06edb67a483fbc5843ca885f6a8bae08) use &: operator
6
+ - [cef57da](https://github.com/appium/ruby_lib_core/commit/cef57dafa8b18fcd9b0a00edc2f9075f8fea4f5f) add size check in page source for easy regression
7
+ - [633cc0f](https://github.com/appium/ruby_lib_core/commit/633cc0f37b8232c17d7bfdd22c63b38dbf6cbcfb) add a test of state element reference error
8
+ - [10558f2](https://github.com/appium/ruby_lib_core/commit/10558f26b3c983f218ce1ba21bd1be96516b7329) Add parallel android tests (#156)
9
+ - [72a1827](https://github.com/appium/ruby_lib_core/commit/72a18279fa4f52c2791901c93dd9d5e0c2491834) separate test cases which depends on other libraries, improvements (#155)
10
+ - [585b151](https://github.com/appium/ruby_lib_core/commit/585b15110675d6943776ba147dd4b22b6e5e6b22) Remove default value (#154)
11
+ - [a0b4685](https://github.com/appium/ruby_lib_core/commit/a0b4685b2722088575d50bcb77c8fc4cb6548d71) add version number in changelog
12
+
13
+
1
14
  #### v2.0.4 2018-10-19
2
15
 
3
16
  - [e0db5f9](https://github.com/appium/ruby_lib_core/commit/e0db5f9fb1ae6178fb16254d76d429bceaecdae4) Release 2.0.4
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: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-19 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver