Skip to content

Commit 8677335

Browse files
authored
bump test ios version (#148)
1 parent 381a9d2 commit 8677335

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $ rake test:func:ios # iOS
4040

4141
#### Run parallel tests with parallel_tests gem
4242

43-
- Create iPhone simulators named `iPhone 6 - 8100` and `iPhone 6 - 8101`
43+
- Create iPhone simulators named `iPhone 8 - 8100` and `iPhone 8 - 8101`
4444
- Run iOS functional tests with below command
4545

4646
```

lib/appium_lib_core/common/base/bridge.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def self.handshake(**opts)
5858
# platformName: :ios,
5959
# automationName: 'XCUITest',
6060
# app: 'test/functional/app/UICatalog.app',
61-
# platformVersion: '10.3',
61+
# platformVersion: '11.4',
6262
# deviceName: 'iPhone Simulator',
6363
# useNewWDA: true,
6464
# forceMjsonwp: true
@@ -77,7 +77,7 @@ def self.handshake(**opts)
7777
# platformName: :ios,
7878
# automationName: 'XCUITest',
7979
# app: 'test/functional/app/UICatalog.app',
80-
# platformVersion: '10.3',
80+
# platformVersion: '11.4',
8181
# deviceName: 'iPhone Simulator',
8282
# useNewWDA: true,
8383
# },

lib/appium_lib_core/common/base/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -789,12 +789,12 @@ def get_timeouts
789789
# # "udid"=>"DED4DBAD-8E5E-4AD6-BDC4-E75CF9AD84D8",
790790
# # "automationName"=>"XCUITest",
791791
# # "app"=>"/path/to/app/UICatalog.app",
792-
# # "platformVersion"=>"10.3",
792+
# # "platformVersion"=>"11.4",
793793
# # "deviceName"=>"iPhone Simulator",
794794
# # "useNewWDA"=>true,
795795
# # "useJSONSource"=>true,
796796
# # "someCapability"=>"some_capability",
797-
# # "sdkVersion"=>"10.3.1",
797+
# # "sdkVersion"=>"11.4",
798798
# # "CFBundleIdentifier"=>"com.example.apple-samplecode.UICatalog",
799799
# # "pixelRatio"=>2,
800800
# # "statBarHeight"=>23.4375,

test/test_helper.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ def self.android
4646
new.android
4747
end
4848

49-
# Require a simulator which OS version is 10.3, for example.
49+
# Require a simulator which OS version is 11.4, for example.
5050
def ios
5151
wda_local_port = get_wda_local_port
52-
device_name = parallel? ? "iPhone 6 - #{wda_local_port}" : 'iPhone 6'
52+
device_name = parallel? ? "iPhone 8 - #{wda_local_port}" : 'iPhone 8'
5353

5454
{
5555
caps: {
5656
platformName: :ios,
5757
automationName: 'XCUITest',
5858
app: 'test/functional/app/UICatalog.app',
59-
platformVersion: '10.3',
59+
platformVersion: '11.4',
6060
deviceName: device_name,
6161
useNewWDA: true,
6262
useJSONSource: true,
@@ -220,7 +220,7 @@ def ios_mock_create_session
220220
capabilities: {
221221
device: 'iphone',
222222
browserName: 'UICatalog',
223-
sdkVersion: '10.3.1',
223+
sdkVersion: '11.4',
224224
CFBundleIdentifier: 'com.example.apple-samplecode.UICatalog'
225225
}
226226
}
@@ -247,7 +247,7 @@ def ios_mock_create_session_w3c
247247
capabilities: {
248248
device: 'iphone',
249249
browserName: 'UICatalog',
250-
sdkVersion: '10.3.1',
250+
sdkVersion: '11.4',
251251
CFBundleIdentifier: 'com.example.apple-samplecode.UICatalog'
252252
}
253253
}

test/unit/common_test.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_add_appium_prefix_compatible_with_oss
196196
platformName: :ios,
197197
automationName: 'XCUITest',
198198
app: 'test/functional/app/UICatalog.app',
199-
platformVersion: '10.3',
199+
platformVersion: '11.4',
200200
deviceName: 'iPhone Simulator',
201201
useNewWDA: true,
202202
some_capability1: 'some_capability1',
@@ -210,7 +210,7 @@ def test_add_appium_prefix_compatible_with_oss
210210
platformName: :ios,
211211
'appium:automationName' => 'XCUITest',
212212
'appium:app' => 'test/functional/app/UICatalog.app',
213-
'appium:platformVersion' => '10.3',
213+
'appium:platformVersion' => '11.4',
214214
'appium:deviceName' => 'iPhone Simulator',
215215
'appium:useNewWDA' => true,
216216
'appium:some_capability1' => 'some_capability1',
@@ -226,7 +226,7 @@ def test_add_appium_prefix_already_have_appium_prefix
226226
platformName: :ios,
227227
automationName: 'XCUITest',
228228
'appium:app' => 'test/functional/app/UICatalog.app',
229-
platformVersion: '10.3',
229+
platformVersion: '11.4',
230230
deviceName: 'iPhone Simulator',
231231
useNewWDA: true,
232232
some_capability1: 'some_capability1',
@@ -239,7 +239,7 @@ def test_add_appium_prefix_already_have_appium_prefix
239239
platformName: :ios,
240240
'appium:automationName' => 'XCUITest',
241241
'appium:app' => 'test/functional/app/UICatalog.app',
242-
'appium:platformVersion' => '10.3',
242+
'appium:platformVersion' => '11.4',
243243
'appium:deviceName' => 'iPhone Simulator',
244244
'appium:useNewWDA' => true,
245245
'appium:some_capability1' => 'some_capability1',

test/unit/driver_test.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_verify_session_id_in_the_export_session_path
4545

4646
def test_verify_appium_core_base_capabilities_create_capabilities
4747
caps = ::Appium::Core::Base::Capabilities.create_capabilities(platformName: 'ios',
48-
platformVersion: '10.3',
48+
platformVersion: '11.4',
4949
automationName: 'XCUITest',
5050
deviceName: 'iPhone Simulator',
5151
app: 'test/functional/app/UICatalog.app',
@@ -54,15 +54,15 @@ def test_verify_appium_core_base_capabilities_create_capabilities
5454

5555
caps_with_json = JSON.parse(caps.to_json)
5656
assert_equal 'ios', caps_with_json['platformName']
57-
assert_equal '10.3', caps_with_json['platformVersion']
57+
assert_equal '11.4', caps_with_json['platformVersion']
5858
assert_equal 'test/functional/app/UICatalog.app', 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]
65-
assert_equal '10.3', caps[:platformVersion]
65+
assert_equal '11.4', caps[:platformVersion]
6666
assert_equal 'test/functional/app/UICatalog.app', caps[:app]
6767
assert_equal 'XCUITest', caps[:automationName]
6868
assert_equal 'iPhone Simulator', caps[:deviceName]

0 commit comments

Comments
 (0)