Skip to content

Commit 70d71cd

Browse files
authored
zip test app (#152)
1 parent 6222a62 commit 70d71cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+21
-22
lines changed

lib/appium_lib_core/common/base/bridge.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def self.handshake(**opts)
5757
# caps: {
5858
# platformName: :ios,
5959
# automationName: 'XCUITest',
60-
# app: 'test/functional/app/UICatalog.app',
60+
# app: 'test/functional/app/UICatalog.app.zip',
6161
# platformVersion: '11.4',
6262
# deviceName: 'iPhone Simulator',
6363
# useNewWDA: true,
@@ -76,7 +76,7 @@ def self.handshake(**opts)
7676
# caps: {
7777
# platformName: :ios,
7878
# automationName: 'XCUITest',
79-
# app: 'test/functional/app/UICatalog.app',
79+
# app: 'test/functional/app/UICatalog.app.zip',
8080
# platformVersion: '11.4',
8181
# deviceName: 'iPhone Simulator',
8282
# useNewWDA: true,

lib/appium_lib_core/common/base/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ def get_timeouts
747747
# # "desired"=>
748748
# # {"platformName"=>"android",
749749
# # "automationName"=>"uiautomator2",
750-
# # "app"=>"/path/to/app/api.apk",
750+
# # "app"=>"/path/to/app/api.apk.zip",
751751
# # "platformVersion"=>"8.1.0",
752752
# # "deviceName"=>"Android Emulator",
753753
# # "appPackage"=>"io.appium.android.apis",
@@ -756,7 +756,7 @@ def get_timeouts
756756
# # "unicodeKeyboard"=>true,
757757
# # "resetKeyboard"=>true},
758758
# # "automationName"=>"uiautomator2",
759-
# # "app"=>"/path/to/app/api.apk",
759+
# # "app"=>"/path/to/app/api.apk.zip",
760760
# # "platformVersion"=>"8.1.0",
761761
# # "deviceName"=>"emulator-5554",
762762
# # "appPackage"=>"io.appium.android.apis",

test/functional/app/UICatalog.app.zip

356 KB
Binary file not shown.
-1.98 KB
Binary file not shown.
-2.43 KB
Binary file not shown.
-2.32 KB
Binary file not shown.
-2.17 KB
Binary file not shown.
Binary file not shown.
-6.08 KB
Binary file not shown.
-850 Bytes
Binary file not shown.

test/functional/app/UICatalog.app/PkgInfo

-1
This file was deleted.
Binary file not shown.
-424 KB
Binary file not shown.
-1.43 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-902 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-3.04 KB
Binary file not shown.
-46 KB
Binary file not shown.
-11.8 KB
Binary file not shown.
-23.3 KB
Binary file not shown.
-15.3 KB
Binary file not shown.
-15.2 KB
Binary file not shown.
Binary file not shown.
-510 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-868 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-3.04 KB
Binary file not shown.
Binary file not shown.

test/functional/app/api.apk

-2.98 MB
Binary file not shown.

test/functional/app/api.apk.zip

2.17 MB
Binary file not shown.

test/test_helper.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def ios
5555
caps: {
5656
platformName: :ios,
5757
automationName: 'XCUITest',
58-
app: 'test/functional/app/UICatalog.app',
58+
app: 'test/functional/app/UICatalog.app.zip',
5959
platformVersion: '11.4',
6060
deviceName: device_name,
6161
useNewWDA: true,
@@ -84,7 +84,7 @@ def android
8484
# chromeOptions: {androidPackage: 'com.android.chrome'},
8585
platformName: :android,
8686
automationName: 'uiautomator2',
87-
app: 'test/functional/app/api.apk',
87+
app: 'test/functional/app/api.apk.zip',
8888
platformVersion: '8.1',
8989
deviceName: 'Android Emulator',
9090
appPackage: 'io.appium.android.apis',
@@ -186,7 +186,7 @@ def android_mock_create_session_w3c
186186
capabilities: {
187187
platformName: :android,
188188
automationName: 'uiautomator2',
189-
app: 'test/functional/app/api.apk',
189+
app: 'test/functional/app/api.apk.zip',
190190
platformVersion: '7.1.1',
191191
deviceName: 'Android Emulator',
192192
appPackage: 'io.appium.android.apis',

test/unit/android/webdriver/w3c/commands_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_no_session_id
2020
capabilities: {
2121
platformName: :android,
2222
automationName: 'uiautomator2',
23-
app: 'test/functional/app/api.apk',
23+
app: 'test/functional/app/api.apk.zip',
2424
platformVersion: '7.1.1',
2525
deviceName: 'Android Emulator',
2626
appPackage: 'io.appium.android.apis',

test/unit/common_test.rb

+10-10
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setup
1616
capabilities: {
1717
platformName: :android,
1818
automationName: 'uiautomator2',
19-
app: 'test/functional/app/api.apk',
19+
app: 'test/functional/app/api.apk.zip',
2020
platformVersion: '7.1.1',
2121
deviceName: 'Android Emulator',
2222
appPackage: 'io.appium.android.apis'
@@ -26,7 +26,7 @@ def setup
2626
CAPS = {
2727
platformName: :android,
2828
automationName: 'uiautomator2',
29-
app: "#{Dir.pwd}/test/functional/app/api.apk",
29+
app: "#{Dir.pwd}/test/functional/app/api.apk.zip",
3030
platformVersion: '7.1.1',
3131
deviceName: 'Android Emulator',
3232
appPackage: 'io.appium.android.apis'
@@ -35,7 +35,7 @@ def setup
3535
APPIUM_PREFIX_CAPS = {
3636
platformName: :android,
3737
'appium:automationName' => 'uiautomator2',
38-
'appium:app' => "#{Dir.pwd}/test/functional/app/api.apk",
38+
'appium:app' => "#{Dir.pwd}/test/functional/app/api.apk.zip",
3939
'appium:platformVersion' => '7.1.1',
4040
'appium:deviceName' => 'Android Emulator',
4141
'appium:appPackage' => 'io.appium.android.apis'
@@ -89,7 +89,7 @@ def test_create_session_force_mjsonwp_with_source_package
8989
capabilities: {
9090
platformName: :android,
9191
automationName: 'uiautomator2',
92-
app: 'sauce-storage:test/functional/app/api.apk',
92+
app: 'sauce-storage:test/functional/app/api.apk.zip',
9393
platformVersion: '7.1.1',
9494
deviceName: 'Android Emulator',
9595
appPackage: 'io.appium.android.apis'
@@ -99,7 +99,7 @@ def test_create_session_force_mjsonwp_with_source_package
9999
http_caps = {
100100
platformName: :android,
101101
automationName: 'uiautomator2',
102-
app: 'sauce-storage:test/functional/app/api.apk',
102+
app: 'sauce-storage:test/functional/app/api.apk.zip',
103103
platformVersion: '7.1.1',
104104
deviceName: 'Android Emulator',
105105
appPackage: 'io.appium.android.apis'
@@ -119,7 +119,7 @@ def test_create_session_force_mjsonwp_with_source_package
119119
assert_requested(:post, 'http://127.0.0.1:4723/wd/hub/session', times: 1)
120120
assert_requested(:post, "#{Mock::SESSION}/timeouts/implicit_wait", body: { ms: 20_000 }.to_json, times: 1)
121121

122-
assert_equal 'sauce-storage:test/functional/app/api.apk', core.caps[:app]
122+
assert_equal 'sauce-storage:test/functional/app/api.apk.zip', core.caps[:app]
123123
end
124124

125125
def test_create_session_w3c
@@ -195,7 +195,7 @@ def test_add_appium_prefix_compatible_with_oss
195195
cap = {
196196
platformName: :ios,
197197
automationName: 'XCUITest',
198-
app: 'test/functional/app/UICatalog.app',
198+
app: 'test/functional/app/UICatalog.app.zip',
199199
platformVersion: '11.4',
200200
deviceName: 'iPhone Simulator',
201201
useNewWDA: true,
@@ -209,7 +209,7 @@ def test_add_appium_prefix_compatible_with_oss
209209
proxy: nil,
210210
platformName: :ios,
211211
'appium:automationName' => 'XCUITest',
212-
'appium:app' => 'test/functional/app/UICatalog.app',
212+
'appium:app' => 'test/functional/app/UICatalog.app.zip',
213213
'appium:platformVersion' => '11.4',
214214
'appium:deviceName' => 'iPhone Simulator',
215215
'appium:useNewWDA' => true,
@@ -225,7 +225,7 @@ def test_add_appium_prefix_already_have_appium_prefix
225225
cap = {
226226
platformName: :ios,
227227
automationName: 'XCUITest',
228-
'appium:app' => 'test/functional/app/UICatalog.app',
228+
'appium:app' => 'test/functional/app/UICatalog.app.zip',
229229
platformVersion: '11.4',
230230
deviceName: 'iPhone Simulator',
231231
useNewWDA: true,
@@ -238,7 +238,7 @@ def test_add_appium_prefix_already_have_appium_prefix
238238
proxy: nil,
239239
platformName: :ios,
240240
'appium:automationName' => 'XCUITest',
241-
'appium:app' => 'test/functional/app/UICatalog.app',
241+
'appium:app' => 'test/functional/app/UICatalog.app.zip',
242242
'appium:platformVersion' => '11.4',
243243
'appium:deviceName' => 'iPhone Simulator',
244244
'appium:useNewWDA' => true,

test/unit/driver_test.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ def test_verify_appium_core_base_capabilities_create_capabilities
4848
platformVersion: '11.4',
4949
automationName: 'XCUITest',
5050
deviceName: 'iPhone Simulator',
51-
app: 'test/functional/app/UICatalog.app',
51+
app: 'test/functional/app/UICatalog.app.zip',
5252
some_capability1: 'some_capability1',
5353
someCapability2: 'someCapability2')
5454

5555
caps_with_json = JSON.parse(caps.to_json)
5656
assert_equal 'ios', caps_with_json['platformName']
5757
assert_equal '11.4', caps_with_json['platformVersion']
58-
assert_equal 'test/functional/app/UICatalog.app', caps_with_json['app']
58+
assert_equal 'test/functional/app/UICatalog.app.zip', caps_with_json['app']
5959
assert_equal 'XCUITest', caps_with_json['automationName']
6060
assert_equal 'iPhone Simulator', caps_with_json['deviceName']
6161
assert_equal 'some_capability1', caps_with_json['someCapability1']
6262
assert_equal 'someCapability2', caps_with_json['someCapability2']
6363

6464
assert_equal 'ios', caps[:platformName]
6565
assert_equal '11.4', caps[:platformVersion]
66-
assert_equal 'test/functional/app/UICatalog.app', caps[:app]
66+
assert_equal 'test/functional/app/UICatalog.app.zip', caps[:app]
6767
assert_equal 'XCUITest', caps[:automationName]
6868
assert_equal 'iPhone Simulator', caps[:deviceName]
6969
assert_equal 'some_capability1', caps[:some_capability1]

0 commit comments

Comments
 (0)