testcentricity_web 0.6.1 → 0.6.2

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: 1aeb7d17e06ecee42f850b1a3bdba646e0112041
4
- data.tar.gz: 6cbeab9c4d9481695ee543f1df4a9666a7d510f1
3
+ metadata.gz: 88932fba9b169ce440967cdc6ebd7ccfeb8ceec0
4
+ data.tar.gz: ceca97192dfa8e333209b5b6bf7a4f92634fa8a8
5
5
  SHA512:
6
- metadata.gz: 310e3f12b7e3b74b4c89bffe643a27c8a5eed94637cd4d5eb495691d169dc26f02e2a3b563370776a969d6f32d16e55c611703e87e54d8b8a2e50c7287fedc81
7
- data.tar.gz: eec15327066b5722b6439c220ed5af0126cb95d6441f54f12d77bf81fecfc7a9cc98c045939d1dd3b968bede1d0e89f90c424ef77f0b1094106bb01af789bccc
6
+ metadata.gz: afb42ecce949988d8ba47dd5b083365bb0bae0cc371d4d0321966a946847e2d6019b8de6ccd4ca27eaf392859c80e7459c8d56d572b7e32d1fd5555d14ebe0d3
7
+ data.tar.gz: d0718cc6d3686e046cf6127ded4594389a171a3564b2044d2fc8db5a50e3199b63374151ab3b470bd72fd6c4b29c8cc44cbf1d2767171709d2378c87d0b98d50
data/README.md CHANGED
@@ -247,7 +247,7 @@ cumbersome to manage if your web application has dozens of **Page Objects** that
247
247
  ### Using the PageManager
248
248
 
249
249
  The **PageManager** class provides methods for supporting the instantiation and management of **Page Objects**. In the code example below,
250
- the **page_objects** method contains a hash table of your **Page Object** instance variables and their associated **Page Object** classes
250
+ the **page_objects** method contains a hash table of your **Page Object** instances and their associated **Page Object** class names
251
251
  to be instantiated by **PageManager**:
252
252
 
253
253
  module WorldPages
@@ -344,7 +344,7 @@ BS_OS | Must be set to ***OS X*** or ***Windows***
344
344
  BS_OS_VERSION | Refer to ***os_version*** capability in chart
345
345
  BS_BROWSER | Refer to ***browser*** capability in chart
346
346
  BS_VERSION | Refer to ***browser_version*** capability in chart
347
- BS_LOCAL | Must be ***true*** if you are testing against internal/local servers
347
+ TUNNELING | Must be ***true*** if you are testing against internal/local servers
348
348
  RESOLUTION | Refer to supported screen ***resolution*** capability in chart
349
349
 
350
350
 
@@ -361,7 +361,7 @@ BS_AUTHKEY | Must be set to your BrowserStack account access key
361
361
  BS_BROWSER | Must be set to ***iPhone***, ***iPad***, or ***android***
362
362
  BS_PLATFORM | Must be set to ***MAC*** (for iOS) or ***ANDROID***
363
363
  BS_DEVICE | Refer to ***device*** capability in chart
364
- BS_LOCAL | Must be ***true*** if you are testing against internal/local servers
364
+ TUNNELING | Must be ***true*** if you are testing against internal/local servers
365
365
  ORIENTATION | set to ***portrait*** or ***landscape***
366
366
 
367
367
 
@@ -444,6 +444,7 @@ TB_AUTHKEY | Must be set to your TestingBot account access key
444
444
  TB_OS | Refer to ***platform*** capability in chart
445
445
  TB_BROWSER | Refer to ***browserName*** capability in chart
446
446
  TB_VERSION | Refer to ***version*** capability in chart
447
+ TUNNELING | Must be ***true*** if you are testing against internal/local servers
447
448
  RESOLUTION | Possible values: 800x600, 1024x768, 1280x960, 1280x1024, 1600x1200, 1920x1200, 2560x1440
448
449
 
449
450
 
@@ -501,7 +502,7 @@ replace the placeholder text with your user account and authorization code for t
501
502
  bs_desktop: --profile browserstack <%= desktop %> RESOLUTION="1920x1080"
502
503
  bs_mobile: --profile browserstack <%= mobile %>
503
504
 
504
- # BrowserStack OS X profiles
505
+ # BrowserStack OS X desktop browser profiles
505
506
  bs_osx_el_capitan: --profile bs_desktop BS_OS="OS X" BS_OS_VERSION="El Capitan"
506
507
  bs_ff_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Firefox"
507
508
  bs_chrome_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Chrome"
@@ -520,7 +521,7 @@ replace the placeholder text with your user account and authorization code for t
520
521
  bs_safari_mav: --profile bs_osx_mavericks BS_BROWSER="Safari" BS_VERSION="7.0"
521
522
  bs_safari7_osx: --profile bs_osx_mavericks BS_BROWSER="Safari" BS_VERSION="7.0"
522
523
 
523
- # BrowserStack Windows profiles
524
+ # BrowserStack Windows desktop browser profiles
524
525
  bs_win7: --profile bs_desktop BS_OS="Windows" BS_OS_VERSION="7"
525
526
  bs_win8: --profile bs_desktop BS_OS="Windows" BS_OS_VERSION="8.1"
526
527
  bs_win10: --profile bs_desktop BS_OS="Windows" BS_OS_VERSION="10"
@@ -540,7 +541,7 @@ replace the placeholder text with your user account and authorization code for t
540
541
  bs_ie11_win10: --profile bs_win10 BS_BROWSER="IE" BS_VERSION="11.0"
541
542
  bs_edge_win10: --profile bs_win10 BS_BROWSER="Edge" BS_VERSION="13.0"
542
543
 
543
- # BrowserStack iOS profiles
544
+ # BrowserStack iOS mobile browser profiles
544
545
  bs_iphone: --profile bs_mobile BS_PLATFORM=MAC BS_BROWSER=iPhone
545
546
  bs_ipad: --profile bs_mobile BS_PLATFORM=MAC BS_BROWSER=iPad
546
547
  bs_iphone6_plus: --profile bs_iphone BS_DEVICE="iPhone 6S Plus"
@@ -551,7 +552,7 @@ replace the placeholder text with your user account and authorization code for t
551
552
  bs_ipad_air: --profile bs_ipad BS_DEVICE="iPad Air 2"
552
553
  bs_ipad_mini: --profile bs_ipad BS_DEVICE="iPad Mini 4"
553
554
 
554
- # BrowserStack Android profiles
555
+ # BrowserStack Android mobile browser profiles
555
556
  bs_android: --profile bs_mobile BS_PLATFORM=ANDROID BS_BROWSER=android
556
557
  bs_galaxy_s5: --profile bs_android BS_DEVICE="Samsung Galaxy S5"
557
558
  bs_kindle_fire: --profile bs_android BS_DEVICE="Amazon Kindle Fire HDX 7"
@@ -568,7 +569,7 @@ replace the placeholder text with your user account and authorization code for t
568
569
  cb_desktop: --profile crossbrowser <%= desktop %>
569
570
  cb_mobile: --profile crossbrowser <%= mobile %>
570
571
 
571
- # CrossBrowserTesting OS X profiles
572
+ # CrossBrowserTesting OS X desktop browser profiles
572
573
  cb_osx: --profile cb_desktop RESOLUTION="1920x1200"
573
574
  cb_osx_el_capitan: --profile cb_osx CB_OS="Mac10.11"
574
575
  cb_ff_el_cap: --profile cb_osx_el_capitan CB_BROWSER="FF44"
@@ -588,7 +589,7 @@ replace the placeholder text with your user account and authorization code for t
588
589
  cb_safari_mav: --profile cb_osx_mavericks CB_BROWSER="Safari7"
589
590
  cb_safari7_osx: --profile cb_osx_mavericks CB_BROWSER="Safari7"
590
591
 
591
- # CrossBrowserTesting Windows profiles
592
+ # CrossBrowserTesting Windows desktop browser profiles
592
593
  cb_win: --profile cb_desktop RESOLUTION="1920x1080"
593
594
  cb_win7: --profile cb_win CB_OS="Win7x64-C1"
594
595
  cb_win8: --profile cb_win CB_OS="Win8"
@@ -607,14 +608,14 @@ replace the placeholder text with your user account and authorization code for t
607
608
  cb_ie10_win8: --profile cb_win8 CB_BROWSER="IE10"
608
609
  cb_ie11_win10: --profile cb_win10 CB_BROWSER="IE11"
609
610
 
610
- # CrossBrowserTesting iOS profiles
611
+ # CrossBrowserTesting iOS mobile browser profiles
611
612
  cb_iphone6_plus: --profile cb_mobile CB_PLATFORM="iPhone6Plus-iOS8sim" CB_BROWSER="MblSafari8.0" RESOLUTION="1080x1920"
612
613
  cb_iphone6: --profile cb_mobile CB_PLATFORM="iPhone6-iOS8sim" CB_BROWSER="MblSafari8.0" RESOLUTION="750x1334"
613
614
  cb_iphone5s: --profile cb_mobile CB_PLATFORM="iPhone5s-iOS7sim" CB_BROWSER="MblSafari7.0" RESOLUTION="640x1136"
614
615
  cb_ipad_air: --profile cb_mobile CB_PLATFORM="iPadAir-iOS8Sim" CB_BROWSER="MblSafari8.0" RESOLUTION="1024x768"
615
616
  cb_ipad_mini: --profile cb_mobile CB_PLATFORM="iPadMiniRetina-iOS7Sim" CB_BROWSER="MblSafari7.0" RESOLUTION="1024x768"
616
617
 
617
- # CrossBrowserTesting Android profiles
618
+ # CrossBrowserTesting Android mobile browser profiles
618
619
  cb_nexus7: --profile cb_mobile CB_PLATFORM="Nexus7-And42" CB_BROWSER="MblChrome37" RESOLUTION="800x1280"
619
620
  cb_galaxy_tab2: --profile cb_mobile CB_PLATFORM="GalaxyTab2-And41" CB_BROWSER="MblChrome38" RESOLUTION="1280x800"
620
621
  cb_galaxy_s5: --profile cb_mobile CB_PLATFORM="GalaxyS5-And44" CB_BROWSER="MblChrome35" RESOLUTION="1080x1920"
@@ -630,7 +631,7 @@ replace the placeholder text with your user account and authorization code for t
630
631
  sl_desktop: --profile saucelabs <%= desktop %>
631
632
  sl_mobile: --profile saucelabs <%= mobile %>
632
633
 
633
- # SauceLabs OS X profiles
634
+ # SauceLabs OS X desktop browser profiles
634
635
  sl_osx_el_capitan: --profile sl_desktop SL_OS="OS X 10.11"
635
636
  sl_ff_el_cap: --profile sl_osx_el_capitan SL_BROWSER="firefox"
636
637
  sl_chrome_el_cap: --profile sl_osx_el_capitan SL_BROWSER="chrome"
@@ -649,7 +650,7 @@ replace the placeholder text with your user account and authorization code for t
649
650
  sl_safari_mav: --profile sl_osx_mavericks SL_BROWSER="safari"
650
651
  sl_safari7_osx: --profile sl_osx_mavericks SL_BROWSER="safari"
651
652
 
652
- # SauceLabs Windows profiles
653
+ # SauceLabs Windows desktop browser profiles
653
654
  sl_win7: --profile sl_desktop SL_OS="Windows 7" RESOLUTION="1920x1200"
654
655
  sl_win8: --profile sl_desktop SL_OS="Windows 8.1" RESOLUTION="1280x1024"
655
656
  sl_win10: --profile sl_desktop SL_OS="Windows 10" RESOLUTION="1280x1024"
@@ -666,7 +667,7 @@ replace the placeholder text with your user account and authorization code for t
666
667
  sl_ie11_win8: --profile sl_win8 SL_BROWSER="internet explorer" SL_VERSION="11.0"
667
668
  sl_ie11_win10: --profile sl_win10 SL_BROWSER="internet explorer"
668
669
 
669
- # SauceLabs iOS profiles
670
+ # SauceLabs iOS mobile browser profiles
670
671
  sl_ios: --profile sl_mobile SL_PLATFORM=OS X 10.10 SL_BROWSER="iphone" SL_VERSION="9.2"
671
672
  sl_iphone6_plus: --profile sl_ios SL_DEVICE="iPhone 6 Plus"
672
673
  sl_iphone6: --profile sl_ios SL_DEVICE="iPhone 6"
@@ -674,7 +675,7 @@ replace the placeholder text with your user account and authorization code for t
674
675
  sl_iphone4s: --profile sl_ios SL_DEVICE="iPhone 4s"
675
676
  sl_ipad_air: --profile sl_ios SL_DEVICE="iPad Air"
676
677
 
677
- # SauceLabs Android profiles
678
+ # SauceLabs Android mobile browser profiles
678
679
  sl_android: --profile sl_mobile SL_PLATFORM=Linux SL_BROWSER="android" SL_VERSION="4.4"
679
680
  sl_android_phone: --profile sl_android SL_DEVICE="Android Emulator" SL_DEVICE_TYPE="phone"
680
681
  sl_android_tablet: --profile sl_android SL_DEVICE="Android Emulator" SL_DEVICE_TYPE="tablet"
@@ -686,9 +687,8 @@ replace the placeholder text with your user account and authorization code for t
686
687
 
687
688
  testingbot: WEB_BROWSER=testingbot TB_USERNAME=<INSERT USER NAME HERE> TB_AUTHKEY=<INSERT PASSWORD HERE>
688
689
  tb_desktop: --profile testingbot <%= desktop %> RESOLUTION="1920x1200"
689
- tb_mobile: --profile testingbot <%= mobile %>
690
690
 
691
- # TestingBot OS X profiles
691
+ # TestingBot OS X desktop browser profiles
692
692
  tb_osx_el_capitan: --profile tb_desktop TB_OS="CAPITAN"
693
693
  tb_ff_el_cap: --profile tb_osx_el_capitan TB_BROWSER="firefox"
694
694
  tb_chrome_el_cap: --profile tb_osx_el_capitan TB_BROWSER="chrome"
@@ -707,7 +707,7 @@ replace the placeholder text with your user account and authorization code for t
707
707
  tb_safari_mav: --profile tb_osx_mavericks TB_BROWSER="safari" TB_VERSION="7"
708
708
  tb_safari7_osx: --profile tb_osx_mavericks TB_BROWSER="safari" TB_VERSION="7"
709
709
 
710
- # TestingBot Windows profiles
710
+ # TestingBot Windows desktop browser profiles
711
711
  tb_win7: --profile tb_desktop TB_OS="WIN7"
712
712
  tb_win8: --profile tb_desktop TB_OS="WIN8"
713
713
  tb_win10: --profile tb_desktop TB_OS="WIN10"
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
@@ -95,7 +95,7 @@ module TestCentricity
95
95
  capabilities['name'] = ENV['TEST_ENVIRONMENT']
96
96
 
97
97
  capabilities['acceptSslCerts'] = 'true'
98
- capabilities['browserstack.local'] = 'true' if ENV['BS_LOCAL']
98
+ capabilities['browserstack.local'] = 'true' if ENV['TUNNELING']
99
99
  capabilities['browserstack.localIdentifier'] = ENV['BS_LOCAL_ID'] if ENV['BS_LOCAL_ID']
100
100
 
101
101
  case browser.downcase.to_sym
@@ -192,7 +192,12 @@ module TestCentricity
192
192
  def self.initialize_testingbot
193
193
  browser = ENV['TB_BROWSER']
194
194
 
195
- endpoint = "http://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}@hub.testingbot.com:4444/wd/hub"
195
+ if ENV['TUNNELING']
196
+ endpoint = '@localhost:4445/wd/hub'
197
+ else
198
+ endpoint = '@hub.testingbot.com:4444/wd/hub'
199
+ end
200
+ endpoint = "http://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}#{endpoint}"
196
201
  Capybara.register_driver :testingbot do |app|
197
202
  capabilities = Selenium::WebDriver::Remote::Capabilities.new
198
203
  capabilities['name'] = ENV['AUTOMATE_PROJECT'] if ENV['AUTOMATE_PROJECT']
@@ -200,15 +205,8 @@ module TestCentricity
200
205
  capabilities['browserName'] = browser
201
206
  capabilities['version'] = ENV['TB_VERSION'] if ENV['TB_VERSION']
202
207
  capabilities['screen-resolution'] = ENV['RESOLUTION'] if ENV['RESOLUTION']
203
- if ENV['TB_OS']
204
- capabilities['platform'] = ENV['TB_OS']
205
- Environ.set_platform(:desktop)
206
- elsif ENV['TB_PLATFORM']
207
- capabilities['platform'] = ENV['TB_PLATFORM']
208
- capabilities['browserName'] = ENV['TB_DEVICE']
209
- capabilities['version'] = ENV['TB_VERSION'] if ENV['TB_VERSION']
210
- Environ.set_platform(:mobile)
211
- end
208
+ capabilities['platform'] = ENV['TB_OS']
209
+ Environ.set_platform(:desktop)
212
210
 
213
211
  Capybara::Selenium::Driver.new(app, :browser => :remote, :url => endpoint, :desired_capabilities => capabilities)
214
212
  end
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.6.1
4
+ version: 0.6.2
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-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler