testcentricity_web 2.3.10 → 2.3.11
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 +4 -4
- data/README.md +28 -8
- data/lib/devices/devices.yml +2 -2
- data/lib/testcentricity_web/page_objects_helper.rb +0 -4
- data/lib/testcentricity_web/page_sections_helper.rb +0 -4
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/webdriver_helper.rb +10 -3
- data/testcentricity_web.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0ebd3e074d6ef9f3e21157cac9312d5f5799298
|
|
4
|
+
data.tar.gz: 00a6defd472904a934af381489f1195d26fd19a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 755b085367196a0c0e6edf1c41411019eb6d15faaec8ed532278a9afcd400adbafdccd42210d415314b111b43f39dbdeb9241a91579a37bbf796ea369511b6b8
|
|
7
|
+
data.tar.gz: c9e5c47fc5b5f69873434485bb3b39e7593399de0268c8bed4e9a4992e4bad06ec1c2fc40c6341b4b7a3dc6bba069f0206552a5e48da0e08b2af4ede72012680
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The TestCentricity™ Web gem supports running automated tests against the follo
|
|
|
10
10
|
* locally hosted desktop browsers (Firefox*, Chrome, Safari, or IE)
|
|
11
11
|
* locally hosted emulated iOS Mobile Safari, Android, Windows Phone, or Blackberry mobile browsers (running within a local instance of Chrome)
|
|
12
12
|
* a "headless" browser (using Poltergeist and PhantomJS)
|
|
13
|
-
* mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X)
|
|
13
|
+
* mobile Safari browsers on iOS device simulators or physical iOS devices (using Appium and XCode on OS X)
|
|
14
14
|
* mobile Chrome or Android browsers on Android Studio virtual device emulators (using Appium and Android Studio on OS X)
|
|
15
15
|
* cloud hosted desktop (Firefox, Chrome, Safari, IE, or Edge) or mobile (iOS Mobile Safari or Android) web browsers using the [Browserstack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate),
|
|
16
16
|
[Sauce Labs](https://saucelabs.com/open-source#automated-testing-platform), [CrossBrowserTesting](https://crossbrowsertesting.com/selenium-testing), or
|
|
@@ -28,6 +28,11 @@ hosted instances of Chrome, Firefox, Safari, and IE web browsers.
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
## What's New
|
|
31
|
+
###Version 2.3.11
|
|
32
|
+
|
|
33
|
+
* Added support for running tests in Mobile Safari browser on physical iOS devices.
|
|
34
|
+
* Updated device profiles for iPhone 7 (iOS 10) with Mobile Firefox browser and iPad (iOS 10) with Mobile Firefox browser
|
|
35
|
+
|
|
31
36
|
###Version 2.3.10
|
|
32
37
|
|
|
33
38
|
* Added support for running tests in mobile Chrome or Android browsers on Android Studio virtual device emulators.
|
|
@@ -908,12 +913,13 @@ To use a local instance of the Chrome desktop browser to host the emulated mobil
|
|
|
908
913
|
to `chrome`.
|
|
909
914
|
|
|
910
915
|
|
|
911
|
-
### Mobile Safari browser on iOS Simulators
|
|
916
|
+
### Mobile Safari browser on iOS Simulators or iOS Physical Devices
|
|
912
917
|
|
|
913
|
-
You can run your mobile web tests against the mobile Safari browser on simulated iOS devices
|
|
914
|
-
iOS version-specific device simulators for XCode
|
|
915
|
-
**section 2.4 (Setup - Using Appium)** above.
|
|
918
|
+
You can run your mobile web tests against the mobile Safari browser on simulated iOS devices or physically connected iOS devices using Appium and XCode on
|
|
919
|
+
OS X. You must install Appium, XCode, and the iOS version-specific device simulators for XCode. You must also ensure that the `appium_capybara` gem is
|
|
920
|
+
installed and required as described in **section 2.4 (Setup - Using Appium)** above.
|
|
916
921
|
|
|
922
|
+
Information about Appium setup and configuration requirements for testing on physically connected iOS devices can be found on [this page](https://github.com/appium/appium/blob/master/docs/en/drivers/ios-xcuitest-real-devices.md).
|
|
917
923
|
The Appium server must be running prior to invoking Cucumber to run your features/scenarios.
|
|
918
924
|
|
|
919
925
|
Once your test environment is properly configured, the following **Environment Variables** must be set as described in the table below.
|
|
@@ -924,14 +930,18 @@ Once your test environment is properly configured, the following **Environment V
|
|
|
924
930
|
`APP_PLATFORM_NAME` | Must be set to `iOS`
|
|
925
931
|
`APP_BROWSER` | Must be set to `Safari`
|
|
926
932
|
`APP_VERSION` | Must be set to `11.2`, `10.3`, `9.3`, or which ever iOS version you wish to run within the XCode Simulator
|
|
927
|
-
`APP_DEVICE` | Set to iOS device name supported by the iOS Simulator (`iPhone 6s Plus`, `iPad Pro (10.5-inch)`, `iPad Air 2`, etc.)
|
|
933
|
+
`APP_DEVICE` | Set to iOS device name supported by the iOS Simulator (`iPhone 6s Plus`, `iPad Pro (10.5-inch)`, `iPad Air 2`, etc.) or name of physically connected iOS device
|
|
928
934
|
`DEVICE_TYPE` | Must be set to `phone` or `tablet`
|
|
929
|
-
`
|
|
935
|
+
`APP_UDID` | UDID of physically connected iOS device (not used for simulators)
|
|
936
|
+
`TEAM_ID` | unique 10-character Apple developer team identifier string (not used for simulators)
|
|
937
|
+
`TEAM_NAME` | String representing a signing certificate (not used for simulators)
|
|
930
938
|
`APP_ALLOW_POPUPS` | [Optional] Allow javascript to open new windows in Safari. Set to `true` or `false`
|
|
931
939
|
`APP_IGNORE_FRAUD_WARNING` | [Optional] Prevent Safari from showing a fraudulent website warning. Set to `true` or `false`
|
|
932
940
|
`APP_NO_RESET` | [Optional] Don't reset app state after each test. Set to `true` or `false`
|
|
933
941
|
`APP_INITIAL_URL` | [Optional] Initial URL, default is a local welcome page. e.g. `http://www.apple.com`
|
|
934
942
|
`LOCALE` | [Optional] Locale to set for the simulator. e.g. `fr_CA`
|
|
943
|
+
`LANGUAGE` | [Optional] Language to set for the simulator. e.g. `fr`
|
|
944
|
+
`ORIENTATION` | [Optional] Set to `portrait` or `landscape` (only for iOS simulators)
|
|
935
945
|
|
|
936
946
|
|
|
937
947
|
### Mobile Chrome or Android browsers on Android Studio Virtual Device emulators
|
|
@@ -956,7 +966,8 @@ Once your test environment is properly configured, the following **Environment V
|
|
|
956
966
|
`DEVICE_TYPE` | Must be set to `phone` or `tablet`
|
|
957
967
|
`ORIENTATION` | [Optional] Set to `portrait` or `landscape`
|
|
958
968
|
`APP_INITIAL_URL` | [Optional] Initial URL, default is a local welcome page. e.g. `http://www.apple.com`
|
|
959
|
-
`LOCALE` | [Optional] Locale to set for the simulator. e.g. `
|
|
969
|
+
`LOCALE` | [Optional] Locale to set for the simulator. e.g. `fr_CA`
|
|
970
|
+
`LANGUAGE` | [Optional] Language to set for the simulator. e.g. `fr`
|
|
960
971
|
|
|
961
972
|
|
|
962
973
|
### Remotely hosted desktop and mobile web browsers
|
|
@@ -1234,6 +1245,15 @@ service(s) that you intend to connect with.
|
|
|
1234
1245
|
ipad_air_2_10_sim: --profile app_ios_10 DEVICE_TYPE=tablet APP_DEVICE="iPad Air 2"
|
|
1235
1246
|
|
|
1236
1247
|
|
|
1248
|
+
#==============
|
|
1249
|
+
# profiles for mobile Safari web browsers running on physically connected iOS devices
|
|
1250
|
+
# NOTE: Requires installation of XCode, Appium, and the appium_capybara gem
|
|
1251
|
+
#==============
|
|
1252
|
+
|
|
1253
|
+
my_ios_10_3_iphone: --profile app_ios_10 DEVICE_TYPE=phone APP_DEVICE="My Test iPhone6" APP_UDID="INSERT YOUR DEVICE UDID"
|
|
1254
|
+
my_ios_10_3_ipad: --profile app_ios_10 DEVICE_TYPE=tablet APP_DEVICE="My Test iPad Pro" APP_UDID="INSERT YOUR DEVICE UDID"
|
|
1255
|
+
|
|
1256
|
+
|
|
1237
1257
|
#==============
|
|
1238
1258
|
# profiles for Android mobile web browsers hosted within Android Studio Android Virtual Device emulators
|
|
1239
1259
|
# NOTE: Requires installation of Android Studio, Android version specific virtual device simulators, Appium, and the appium_capybara gem
|
data/lib/devices/devices.yml
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
:css_width: 375
|
|
70
70
|
:css_height: 667
|
|
71
71
|
:default_orientation: portrait
|
|
72
|
-
:user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) FxiOS/10.
|
|
72
|
+
:user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) FxiOS/10.6b8836 Mobile/14G60 Safari/603.3.8"
|
|
73
73
|
:iphone7_edge:
|
|
74
74
|
:name: "iPhone 7 - MS Edge"
|
|
75
75
|
:os: ios
|
|
@@ -245,7 +245,7 @@ nexus6:
|
|
|
245
245
|
:css_width: 1024
|
|
246
246
|
:css_height: 768
|
|
247
247
|
:default_orientation: landscape
|
|
248
|
-
:user_agent: "Mozilla/5.0 (iPad; CPU OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) FxiOS/10.
|
|
248
|
+
:user_agent: "Mozilla/5.0 (iPad; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) FxiOS/10.6b8836 Mobile/14G60 Safari/603.3.8"
|
|
249
249
|
:android_tablet:
|
|
250
250
|
:name: "Generic Android tablet"
|
|
251
251
|
:os: android
|
|
@@ -520,14 +520,10 @@ module TestCentricity
|
|
|
520
520
|
actual = ui_object.get_list_items
|
|
521
521
|
when :optioncount, :itemcount
|
|
522
522
|
actual = ui_object.get_item_count
|
|
523
|
-
|
|
524
|
-
|
|
525
523
|
when :all_items, :all_list_items
|
|
526
524
|
actual = ui_object.get_all_list_items
|
|
527
525
|
when :all_items_count
|
|
528
526
|
actual = ui_object.get_all_items_count
|
|
529
|
-
|
|
530
|
-
|
|
531
527
|
when :column_headers
|
|
532
528
|
actual = ui_object.get_header_columns
|
|
533
529
|
when :siebel_options
|
|
@@ -693,14 +693,10 @@ module TestCentricity
|
|
|
693
693
|
actual = ui_object.get_list_items
|
|
694
694
|
when :optioncount, :itemcount
|
|
695
695
|
actual = ui_object.get_item_count
|
|
696
|
-
|
|
697
|
-
|
|
698
696
|
when :all_items, :all_list_items
|
|
699
697
|
actual = ui_object.get_all_list_items
|
|
700
698
|
when :all_items_count
|
|
701
699
|
actual = ui_object.get_all_items_count
|
|
702
|
-
|
|
703
|
-
|
|
704
700
|
when :column_headers
|
|
705
701
|
actual = ui_object.get_header_columns
|
|
706
702
|
when :siebel_options
|
|
@@ -181,13 +181,20 @@ module TestCentricity
|
|
|
181
181
|
deviceName: ENV['APP_DEVICE']
|
|
182
182
|
}
|
|
183
183
|
desired_capabilities['avd'] = ENV['APP_DEVICE'] if ENV['APP_PLATFORM_NAME'].downcase.to_sym == :android
|
|
184
|
+
desired_capabilities['automationName'] = ENV['AUTOMATION_ENGINE'] if ENV['AUTOMATION_ENGINE']
|
|
184
185
|
desired_capabilities['orientation'] = ENV['ORIENTATION'].upcase if ENV['ORIENTATION']
|
|
185
|
-
|
|
186
|
+
if ENV['APP_UDID']
|
|
187
|
+
desired_capabilities['udid'] = ENV['APP_UDID']
|
|
188
|
+
desired_capabilities['startIWDP'] = true
|
|
189
|
+
desired_capabilities['xcodeOrgId'] = ENV['TEAM_ID']
|
|
190
|
+
desired_capabilities['xcodeSigningId'] = ENV['TEAM_NAME']
|
|
191
|
+
end
|
|
186
192
|
desired_capabilities['safariInitialUrl'] = ENV['APP_INITIAL_URL'] if ENV['APP_INITIAL_URL']
|
|
187
193
|
desired_capabilities['safariAllowPopups'] = ENV['APP_ALLOW_POPUPS'] if ENV['APP_ALLOW_POPUPS']
|
|
188
194
|
desired_capabilities['safariIgnoreFraudWarning'] = ENV['APP_IGNORE_FRAUD_WARNING'] if ENV['APP_IGNORE_FRAUD_WARNING']
|
|
189
195
|
desired_capabilities['noReset'] = ENV['APP_NO_RESET'] if ENV['APP_NO_RESET']
|
|
190
|
-
desired_capabilities['
|
|
196
|
+
desired_capabilities['language'] = ENV['LANGUAGE'] if ENV['LANGUAGE']
|
|
197
|
+
desired_capabilities['locale'] = ENV['LOCALE'].gsub('-', '_') if ENV['LOCALE']
|
|
191
198
|
|
|
192
199
|
Capybara.register_driver :appium do |app|
|
|
193
200
|
appium_lib_options = { server_url: endpoint }
|
|
@@ -237,7 +244,7 @@ module TestCentricity
|
|
|
237
244
|
|
|
238
245
|
else
|
|
239
246
|
user_agent = Browsers.mobile_device_agent(browser)
|
|
240
|
-
ENV['HOST_BROWSER'] ? host_browser = ENV['HOST_BROWSER'].downcase.to_sym : host_browser = :
|
|
247
|
+
ENV['HOST_BROWSER'] ? host_browser = ENV['HOST_BROWSER'].downcase.to_sym : host_browser = :chrome
|
|
241
248
|
case host_browser
|
|
242
249
|
when :firefox
|
|
243
250
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
data/testcentricity_web.gemspec
CHANGED
|
@@ -16,9 +16,9 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
for use with Cucumber, Capybara, and Selenium-Webdriver. The TestCentricity™ Web gem supports running automated tests
|
|
17
17
|
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile browsers (iOS,
|
|
18
18
|
Android, Windows Phone, Blackberry, Kindle Fire) running within a locally hosted instance of Chrome, a "headless" browser (using
|
|
19
|
-
Poltergeist and PhantomJS), mobile Safari browsers on iOS device simulators (using Appium and XCode on
|
|
20
|
-
or Android browsers on Android Studio virtual device emulators (using Appium and Android Studio on OS X),
|
|
21
|
-
desktop or mobile web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).}
|
|
19
|
+
Poltergeist and PhantomJS), mobile Safari browsers on iOS device simulators or physical iOS devices (using Appium and XCode on
|
|
20
|
+
OS X), mobile Chrome or Android browsers on Android Studio virtual device emulators (using Appium and Android Studio on OS X),
|
|
21
|
+
or cloud hosted desktop or mobile web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).}
|
|
22
22
|
spec.homepage = ''
|
|
23
23
|
spec.license = 'BSD3'
|
|
24
24
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testcentricity_web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- A.J. Mrozinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -196,9 +196,9 @@ description: |2-
|
|
|
196
196
|
for use with Cucumber, Capybara, and Selenium-Webdriver. The TestCentricity™ Web gem supports running automated tests
|
|
197
197
|
against locally hosted desktop browsers (Firefox, Chrome, Safari, or IE), locally hosted emulated mobile browsers (iOS,
|
|
198
198
|
Android, Windows Phone, Blackberry, Kindle Fire) running within a locally hosted instance of Chrome, a "headless" browser (using
|
|
199
|
-
Poltergeist and PhantomJS), mobile Safari browsers on iOS device simulators (using Appium and XCode on
|
|
200
|
-
or Android browsers on Android Studio virtual device emulators (using Appium and Android Studio on OS X),
|
|
201
|
-
desktop or mobile web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).
|
|
199
|
+
Poltergeist and PhantomJS), mobile Safari browsers on iOS device simulators or physical iOS devices (using Appium and XCode on
|
|
200
|
+
OS X), mobile Chrome or Android browsers on Android Studio virtual device emulators (using Appium and Android Studio on OS X),
|
|
201
|
+
or cloud hosted desktop or mobile web browsers (using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services).
|
|
202
202
|
email:
|
|
203
203
|
- testcentricity@gmail.com
|
|
204
204
|
executables: []
|