calabash-android 0.9.14 → 0.9.20
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b68365c444de62a3d5f804dae2aa74a013237e23e108bf95f520163967fec8d
|
4
|
+
data.tar.gz: b4786f96f088366b0af33944908d35a2063e375920df6c56250626385944d57a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc44620f180a0cc523f18ee2439994a6d21c7a4e5df111d3a2e75da8d91344ad7a96c6d54c30f6d31d7d0a835fae6558c8134caf6d5f7e6534fe5d53848e9782
|
7
|
+
data.tar.gz: 3494e56bcee8fe35ed3ac3389929b82ca611ab8783048791cce03054aa3884b96ccf31fe7f9d9a2afa121b2fdd768566f6acd9224730254537381d51d2169233
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
4
4
|
package="#testPackage#"
|
5
|
-
android:versionCode="
|
6
|
-
android:versionName="0.9.
|
5
|
+
android:versionCode="15"
|
6
|
+
android:versionName="0.9.15">
|
7
7
|
|
8
|
-
<uses-sdk android:minSdkVersion="
|
8
|
+
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="28" />
|
9
9
|
|
10
10
|
<application android:label="instrumentation_backend"
|
11
11
|
android:largeHeap="true"
|
@@ -44,6 +44,7 @@
|
|
44
44
|
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner" />
|
45
45
|
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData" />
|
46
46
|
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData2" />
|
47
|
+
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData3" />
|
47
48
|
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearPreferences" />
|
48
49
|
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.SetPreferences" />
|
49
50
|
<instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.GetPreferences" />
|
Binary file
|
@@ -158,7 +158,11 @@ module Calabash module Android
|
|
158
158
|
|
159
159
|
def screenshot_embed(options={:prefix => nil, :name => nil, :label => nil})
|
160
160
|
path = default_device.screenshot(options)
|
161
|
-
|
161
|
+
begin
|
162
|
+
embed(path, "image/png", options[:label] || File.basename(path))
|
163
|
+
rescue NoMethodError
|
164
|
+
attach(path, "image/png")
|
165
|
+
end
|
162
166
|
end
|
163
167
|
|
164
168
|
def screenshot(options={:prefix => nil, :name => nil})
|
@@ -733,11 +737,17 @@ module Calabash module Android
|
|
733
737
|
|
734
738
|
cmd_arr << "#{package_name(@test_server_path)}/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
|
735
739
|
|
736
|
-
|
740
|
+
if options[:with_uiautomator]
|
741
|
+
cmd_arr.insert(2, "-w")
|
742
|
+
shutdown_test_server
|
743
|
+
@adb_shell_pid = Process.spawn(cmd_arr.join(" "), :in => '/dev/null') rescue "Could not execute command to start test server with uiautomator"
|
744
|
+
else
|
745
|
+
cmd = cmd_arr.join(" ")
|
737
746
|
|
738
|
-
|
739
|
-
|
740
|
-
|
747
|
+
log "Starting test server using:"
|
748
|
+
log cmd
|
749
|
+
raise "Could not execute command to start test server" unless system("#{cmd} 2>&1")
|
750
|
+
end
|
741
751
|
|
742
752
|
Calabash::Android::Retry.retry :tries => 600, :interval => 0.1 do
|
743
753
|
raise "App did not start see adb logcat for details" unless app_running?
|
@@ -786,7 +796,7 @@ Test-server version #{server_version}
|
|
786
796
|
log "Checking client-server version match..."
|
787
797
|
|
788
798
|
if server_version != client_version
|
789
|
-
|
799
|
+
log(%Q[
|
790
800
|
Calabash Client and Test-server version mismatch.
|
791
801
|
|
792
802
|
Client version #{client_version}
|
@@ -832,6 +842,10 @@ Run 'reinstall_test_server' to make sure you have the correct version
|
|
832
842
|
|
833
843
|
def shutdown_test_server
|
834
844
|
begin
|
845
|
+
unless @adb_shell_pid.nil?
|
846
|
+
Process.kill("HUP",@adb_shell_pid)
|
847
|
+
@adb_shell_pid = nil
|
848
|
+
end
|
835
849
|
http("/kill")
|
836
850
|
Timeout::timeout(3) do
|
837
851
|
sleep 0.3 while app_running?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Maturana Larsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -56,22 +56,16 @@ dependencies:
|
|
56
56
|
name: rubyzip
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.2.2
|
62
|
-
- - "<"
|
59
|
+
- - '='
|
63
60
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
61
|
+
version: 1.3.0
|
65
62
|
type: :runtime
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 1.2.2
|
72
|
-
- - "<"
|
66
|
+
- - '='
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
68
|
+
version: 1.3.0
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: awesome_print
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,16 +118,16 @@ dependencies:
|
|
124
118
|
name: rake
|
125
119
|
requirement: !ruby/object:Gem::Requirement
|
126
120
|
requirements:
|
127
|
-
- -
|
121
|
+
- - '='
|
128
122
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
123
|
+
version: 13.0.3
|
130
124
|
type: :development
|
131
125
|
prerelease: false
|
132
126
|
version_requirements: !ruby/object:Gem::Requirement
|
133
127
|
requirements:
|
134
|
-
- -
|
128
|
+
- - '='
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
130
|
+
version: 13.0.3
|
137
131
|
- !ruby/object:Gem::Dependency
|
138
132
|
name: yard
|
139
133
|
requirement: !ruby/object:Gem::Requirement
|