testcentricity_web 2.3.19 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/webdriver_helper.rb +13 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce6655593dfc5e11b7d9ef3a337f0e09d1164c4
|
4
|
+
data.tar.gz: 2cf3df71e9743587c66b748397a515f3aa8a45e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad81f20bb5421df4d0d8ce112e8e94f97cac315b35afed9fa9793eed88a9599f47e91160b8d1fbd2af3a50a4f7ab30367e1dc18bad9623a438f45e780ccf844
|
7
|
+
data.tar.gz: a548269a7a7c949803c794256227223f2c52320948223d2a6b0d37a735371074e655f59d086109981fecea9bbdc1333860621fb620c5151601acd8786593d0ae
|
data/README.md
CHANGED
@@ -28,6 +28,12 @@ hosted instances of Chrome, Firefox, Safari, and IE web browsers.
|
|
28
28
|
|
29
29
|
|
30
30
|
## What's New
|
31
|
+
###Version 2.4.0
|
32
|
+
|
33
|
+
* Updated `TestCentricity::WebDriverConnect.initialize_web_driver` method to read the `APP_FULL_RESET`, `APP_NO_RESET`, and `NEW_COMMAND_TIMEOUT` Environment
|
34
|
+
Variables and set the corresponding `fullReset`, `noReset`, and `newCommandTimeout` Appium capabilities for iOS and Android physical devices and simulators.
|
35
|
+
Also reads the `WDA_LOCAL_PORT` Environment Variable and sets the `wdaLocalPort` Appium capability for iOS physical devices only.
|
36
|
+
|
31
37
|
###Version 2.3.18
|
32
38
|
|
33
39
|
* Updated `SelectList.define_list_elements` method to accept value for `:list_trigger` element.
|
@@ -984,10 +990,13 @@ Once your test environment is properly configured, the following **Environment V
|
|
984
990
|
`APP_ALLOW_POPUPS` | [Optional] Allow javascript to open new windows in Safari. Set to `true` or `false`
|
985
991
|
`APP_IGNORE_FRAUD_WARNING` | [Optional] Prevent Safari from showing a fraudulent website warning. Set to `true` or `false`
|
986
992
|
`APP_NO_RESET` | [Optional] Don't reset app state after each test. Set to `true` or `false`
|
993
|
+
`APP_FULL_RESET` | [Optional] Perform a complete reset. Set to `true` or `false`
|
987
994
|
`APP_INITIAL_URL` | [Optional] Initial URL, default is a local welcome page. e.g. `http://www.apple.com`
|
995
|
+
`WDA_LOCAL_PORT` | [Optional] Used to forward traffic from Mac host to real iOS devices over USB. Default value is same as port number used by WDA on device.
|
988
996
|
`LOCALE` | [Optional] Locale to set for the simulator. e.g. `fr_CA`
|
989
997
|
`LANGUAGE` | [Optional] Language to set for the simulator. e.g. `fr`
|
990
998
|
`ORIENTATION` | [Optional] Set to `portrait` or `landscape` (only for iOS simulators)
|
999
|
+
`NEW_COMMAND_TIMEOUT` | [Optional] Time (in Seconds) that Appium will wait for a new command from the client
|
991
1000
|
|
992
1001
|
|
993
1002
|
### Mobile Chrome or Android browsers on Android Studio Virtual Device emulators
|
@@ -1012,8 +1021,12 @@ Once your test environment is properly configured, the following **Environment V
|
|
1012
1021
|
`DEVICE_TYPE` | Must be set to `phone` or `tablet`
|
1013
1022
|
`ORIENTATION` | [Optional] Set to `portrait` or `landscape`
|
1014
1023
|
`APP_INITIAL_URL` | [Optional] Initial URL, default is a local welcome page. e.g. `http://www.apple.com`
|
1024
|
+
`APP_NO_RESET` | [Optional] Don't reset app state after each test. Set to `true` or `false`
|
1025
|
+
`APP_FULL_RESET` | [Optional] Perform a complete reset. Set to `true` or `false`
|
1015
1026
|
`LOCALE` | [Optional] Locale to set for the simulator. e.g. `fr_CA`
|
1016
1027
|
`LANGUAGE` | [Optional] Language to set for the simulator. e.g. `fr`
|
1028
|
+
`NEW_COMMAND_TIMEOUT` | [Optional] Time (in Seconds) that Appium will wait for a new command from the client
|
1029
|
+
`CHROMEDRIVER_EXECUTABLE` | [Optional] Absolute local path to webdriver executable
|
1017
1030
|
|
1018
1031
|
|
1019
1032
|
### Remotely hosted desktop and mobile web browsers
|
@@ -192,12 +192,21 @@ module TestCentricity
|
|
192
192
|
else
|
193
193
|
Environ.device = :simulator
|
194
194
|
end
|
195
|
-
desired_capabilities[:safariInitialUrl] = ENV['APP_INITIAL_URL'] if ENV['APP_INITIAL_URL']
|
196
|
-
desired_capabilities[:safariAllowPopups] = ENV['APP_ALLOW_POPUPS'] if ENV['APP_ALLOW_POPUPS']
|
197
195
|
desired_capabilities[:safariIgnoreFraudWarning] = ENV['APP_IGNORE_FRAUD_WARNING'] if ENV['APP_IGNORE_FRAUD_WARNING']
|
198
|
-
desired_capabilities[:
|
196
|
+
desired_capabilities[:safariInitialUrl] = ENV['APP_INITIAL_URL'] if ENV['APP_INITIAL_URL']
|
197
|
+
desired_capabilities[:safariAllowPopups] = ENV['APP_ALLOW_POPUPS'] if ENV['APP_ALLOW_POPUPS']
|
198
|
+
desired_capabilities[:newCommandTimeout] = ENV['NEW_COMMAND_TIMEOUT'] if ENV['NEW_COMMAND_TIMEOUT']
|
199
|
+
desired_capabilities[:noReset] = ENV['APP_NO_RESET'] if ENV['APP_NO_RESET']
|
200
|
+
desired_capabilities[:fullReset] = ENV['APP_FULL_RESET'] if ENV['APP_FULL_RESET']
|
201
|
+
desired_capabilities[:webkitDebugProxyPort] = ENV['WEBKIT_DEBUG_PROXY_PORT'] if ENV['WEBKIT_DEBUG_PROXY_PORT']
|
202
|
+
desired_capabilities[:webDriverAgentUrl] = ENV['WEBDRIVER_AGENT_URL'] if ENV['WEBDRIVER_AGENT_URL']
|
203
|
+
desired_capabilities[:wdaLocalPort] = ENV['WDA_LOCAL_PORT'] if ENV['WDA_LOCAL_PORT']
|
204
|
+
desired_capabilities[:usePrebuiltWDA] = ENV['USE_PREBUILT_WDA'] if ENV['USE_PREBUILT_WDA']
|
205
|
+
desired_capabilities[:useNewWDA] = ENV['USE_NEW_WDA'] if ENV['USE_NEW_WDA']
|
206
|
+
desired_capabilities[:chromedriverExecutable] = ENV['CHROMEDRIVER_EXECUTABLE'] if ENV['CHROMEDRIVER_EXECUTABLE']
|
207
|
+
|
199
208
|
desired_capabilities[:language] = ENV['LANGUAGE'] if ENV['LANGUAGE']
|
200
|
-
desired_capabilities[:locale]
|
209
|
+
desired_capabilities[:locale] = ENV['LOCALE'].gsub('-', '_') if ENV['LOCALE']
|
201
210
|
|
202
211
|
Capybara.register_driver :appium do |app|
|
203
212
|
appium_lib_options = { server_url: endpoint }
|
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.
|
4
|
+
version: 2.4.0
|
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-03-
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|