testcentricity_web 0.9.0.3 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8fe43bfc9fcc999e880d40298b152922825ccca
4
- data.tar.gz: c9e841d8cc5d3953622150dd1639ba21ccf5e3e6
3
+ metadata.gz: 3da2c933e6c3d4089b582291d5a799f225bcfd6e
4
+ data.tar.gz: 81edd431c997355bd696289e79d497b7641fb0d2
5
5
  SHA512:
6
- metadata.gz: 095a76118aa9c18d749489519b1af225aa0410e10677afb938eab441cd9aca55f31f94fdcc44deda3a26c22c67b578a02a4a6013ac608aaee846ece3a5a07aa2
7
- data.tar.gz: 743d8c8602d3d9b2dd4375733a708ce60e534123700e29edaaf0454bf33b6922779976f916753a062c00fff11dee146ce862f07ed8359b831d46753648e3a700
6
+ metadata.gz: 83027e650684bfba0a128129074a2225c3e776330ee23d7da4ddf52e97a6118c120554618f17513bcc78f92cb7f393ff6b12585926f7d3660d07d7cef5072c03
7
+ data.tar.gz: f32a330d0dd9e04d6b8bdf35e53a68515d41c443494975218cfbf01a14576a0b0ae8106e12c357e4d198e6809cf1cc8db700956e46e30d16c7ff9edece44e083
data/README.md CHANGED
@@ -387,10 +387,10 @@ To maximize a desktop browser window, you set the `BROWSER_SIZE` Environment Var
387
387
 
388
388
  ### Locally hosted emulated mobile web browser
389
389
 
390
- You can also run your tests against emulated mobile device browsers within a locally hosted instance of a Firefox or Chrome desktop browser. The
391
- specified mobile browser's user agent, CSS screen dimensions, and default screen orientation will be automatically set in the local Firefox or Chrome
392
- browser instance. You may even specify the emulated device's screen orientation. For locally hosted emulated mobile web browsers, the `WEB_BROWSER`
393
- Environment Variable must be set to one of the values from the table below:
390
+ You can run your tests against emulated mobile device browsers within a locally hosted instance of a Firefox or Chrome desktop browser on OS X
391
+ or Windows. The specified mobile browser's user agent, CSS screen dimensions, and default screen orientation will be automatically set in the
392
+ local Firefox or Chrome browser instance. You may even specify the emulated device's screen orientation. For locally hosted emulated mobile web
393
+ browsers, the `WEB_BROWSER` Environment Variable must be set to one of the values from the table below:
394
394
 
395
395
  `WEB_BROWSER` | `HOST_BROWSER` | **CSS Screen Dimensions** | **Default Orientation**
396
396
  --------------|----------------|-------------------------------|-------------------
@@ -429,7 +429,6 @@ Once your test environment is properly configured, the following **Environment V
429
429
  **Environment Variable** | **Description**
430
430
  --------------- | ----------------
431
431
  `WEB_BROWSER` | Must be set to `appium`
432
- `APP_PLATFORM` | Must be set to `MAC`
433
432
  `APP_PLATFORM_NAME` | Must be set to `iOS`
434
433
  `APP_BROWSER` | Must be set to `Safari`
435
434
  `APP_VERSION` | Must be set to `9.3`, `9.2`, or which ever iOS Simulator version are installed in XCode
@@ -439,13 +438,14 @@ Once your test environment is properly configured, the following **Environment V
439
438
  `APP_IGNORE_FRAUD_WARNING` | [Optional] Prevent Safari from showing a fraudulent website warning. Set to `true` or `false`
440
439
  `APP_NO_RESET` | [Optional] Don't reset app state after each test. Set to `true` or `false`
441
440
  `APP_INITIAL_URL` | [Optional] Initial URL, default is a local welcome page. e.g. `http://www.apple.com`
441
+ `LOCALE` | [Optional] Locale to set for the simulator. e.g. `fr_CA`
442
442
 
443
443
 
444
444
 
445
445
  ### Remotely hosted desktop and mobile web browsers
446
446
 
447
447
  You can run your automated tests against remotely hosted desktop and mobile web browsers using the BrowserStack, CrossBrowserTesting,
448
- Sauce Labs, or TestingBot services. If your tests are running against a web site hosted on your local computer (localhost), or on a
448
+ Sauce Labs, or TestingBot services. If your tests are running against a web site hosted on your local computer (`localhost`), or on a
449
449
  staging server inside your LAN, you must set the `TUNNELING` Environment Variable to `true`.
450
450
 
451
451
 
@@ -633,7 +633,7 @@ replace the placeholder text with your user account and authorization code for t
633
633
  # NOTE: Requires installation of XCode, iOS version specific target simulators, Appium, and the appium_capybara gem
634
634
  #==============
635
635
 
636
- appium_ios: WEB_BROWSER=appium APP_PLATFORM="MAC" APP_PLATFORM_NAME="iOS" APP_BROWSER="Safari" <%= mobile %>
636
+ appium_ios: WEB_BROWSER=appium APP_PLATFORM_NAME="iOS" APP_BROWSER="Safari" <%= mobile %>
637
637
  app_ios_93: --profile appium_ios APP_VERSION="9.3"
638
638
  app_ios_92: --profile appium_ios APP_VERSION="9.2"
639
639
  ipad_retina_93_sim: --profile app_ios_93 APP_DEVICE="iPad Retina"
@@ -97,7 +97,7 @@ module TestCentricity
97
97
  if device
98
98
  width = device[:css_width]
99
99
  height = device[:css_height]
100
- default_orientation = device[:default_orientation]
100
+ default_orientation = device[:default_orientation].to_sym
101
101
  if orientation
102
102
  (orientation.downcase.to_sym == default_orientation) ?
103
103
  size = [width, height] :
@@ -304,6 +304,8 @@ module TestCentricity
304
304
  def populate_data_fields(data)
305
305
  data.each do | data_field, data_param |
306
306
  unless data_param.blank?
307
+ # make sure the intended UI target element exists before trying to set its value
308
+ data_field.wait_until_exists(2)
307
309
  if data_param == '!DELETE'
308
310
  data_field.set('')
309
311
  else
@@ -321,6 +321,8 @@ module TestCentricity
321
321
  def populate_data_fields(data)
322
322
  data.each do | data_field, data_param |
323
323
  unless data_param.blank?
324
+ # make sure the intended UI target element exists before trying to set its value
325
+ data_field.wait_until_exists(2)
324
326
  if data_param == '!DELETE'
325
327
  data_field.set('')
326
328
  else
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.9.0.3'
2
+ VERSION = '0.9.1'
3
3
  end
@@ -44,12 +44,10 @@ module TestCentricity
44
44
  def self.initialize_appium
45
45
  Environ.set_device(true)
46
46
  Environ.set_platform(:mobile)
47
- Environ.set_device(true)
48
47
  Environ.set_device_type(ENV['APP_DEVICE'])
49
48
  Capybara.default_driver = :appium
50
49
  endpoint = 'http://localhost:4723/wd/hub'
51
50
  desired_capabilities = {
52
- platform: ENV['APP_PLATFORM'],
53
51
  platformName: ENV['APP_PLATFORM_NAME'],
54
52
  platformVersion: ENV['APP_VERSION'],
55
53
  browserName: ENV['APP_BROWSER'],
@@ -61,6 +59,7 @@ module TestCentricity
61
59
  desired_capabilities['safariAllowPopups'] = ENV['APP_ALLOW_POPUPS'] if ENV['APP_ALLOW_POPUPS']
62
60
  desired_capabilities['safariIgnoreFraudWarning'] = ENV['APP_IGNORE_FRAUD_WARNING'] if ENV['APP_IGNORE_FRAUD_WARNING']
63
61
  desired_capabilities['noReset'] = ENV['APP_NO_RESET'] if ENV['APP_NO_RESET']
62
+ desired_capabilities['locale'] = ENV['LOCALE'] if ENV['LOCALE']
64
63
 
65
64
  Capybara.register_driver :appium do |app|
66
65
  appium_lib_options = { server_url: endpoint }
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  locally hosted desktop browsers (Firefox, Chrome, Safari, IE, or Edge), locally hosted emulated mobile (iOS, Android,
18
18
  Windows Phone, Blackberry) browsers using Firefox or Chrome, a "headless" browser (using Poltergeist and PhantomJS),
19
19
  mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X), or cloud hosted desktop or mobile
20
- web browsers using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services}
20
+ web browsers using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services.}
21
21
  spec.homepage = ''
22
22
  spec.license = 'BSD3'
23
23
 
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: 0.9.0.3
4
+ version: 0.9.1
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: 2016-05-07 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -149,7 +149,7 @@ description: |2-
149
149
  locally hosted desktop browsers (Firefox, Chrome, Safari, IE, or Edge), locally hosted emulated mobile (iOS, Android,
150
150
  Windows Phone, Blackberry) browsers using Firefox or Chrome, a "headless" browser (using Poltergeist and PhantomJS),
151
151
  mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X), or cloud hosted desktop or mobile
152
- web browsers using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services
152
+ web browsers using the BrowserStack, Sauce Labs, CrossBrowserTesting, or TestingBot services.
153
153
  email:
154
154
  - testcentricity@gmail.com
155
155
  executables: []