testcentricity_web 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +115 -95
- data/lib/testcentricity_web/elements/file_field.rb +2 -2
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/webdriver_helper.rb +15 -6
- 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: 906afaf57d5a7352d8be8fbccc06f4c39abf187a
|
4
|
+
data.tar.gz: 5fde70d9dbc742ad30e6c4723b6c30629153b986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2a183ee07b59f2b312245f40366c9b7ebdddc248782758711c5717ba3dde402be540f312a431f363a89b49a6c53f619b3dea073549fd64de29d60c21026f069
|
7
|
+
data.tar.gz: df9efd2d9ff024dc29cce73c4eb54dc839b05ff98e2653a1458e36cda5a2abce5ab411c0f068d96ad4f73886fc72f414d754e297a181b5e3e71c7fc25c3ea045
|
data/README.md
CHANGED
@@ -8,15 +8,19 @@ use with Cucumber, Capybara, and Selenium-Webdriver.
|
|
8
8
|
|
9
9
|
The TestCentricity™ Web gem supports running automated tests against the following web test targets:
|
10
10
|
|
11
|
-
* locally hosted desktop browsers (Firefox
|
12
|
-
* locally hosted emulated iOS, Android, Windows Phone, or Blackberry mobile browsers (using Firefox or Chrome)
|
11
|
+
* locally hosted desktop browsers (Firefox*, Chrome, Safari, or IE)
|
12
|
+
* locally hosted emulated iOS Mobile Safari, Android, Windows Phone, or Blackberry mobile browsers (using Firefox or Chrome)
|
13
13
|
* a "headless" browser (using Poltergeist and PhantomJS)
|
14
14
|
* mobile Safari browsers on iOS device simulators (using Appium and XCode on OS X)
|
15
|
-
* cloud hosted desktop or mobile web browsers using the [Browserstack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate),
|
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
|
17
17
|
[TestingBot](https://testingbot.com/features) services.
|
18
18
|
|
19
19
|
|
20
|
+
**Note:** Test execution against local instances of Firefox version 48 or greater is currently not supported by the TestCentricity™ Web gem. Testing with
|
21
|
+
Firefox 48 or greater requires Marionette (aka geckodriver) and selenium-webdriver version 3.x, both of which are currently in Beta and not feature complete.
|
22
|
+
|
23
|
+
|
20
24
|
## Installation
|
21
25
|
|
22
26
|
Add this line to your automation project's Gemfile:
|
@@ -512,15 +516,16 @@ the connection.
|
|
512
516
|
|
513
517
|
### Locally hosted desktop web browser
|
514
518
|
|
515
|
-
For locally hosted desktop web browsers, the `WEB_BROWSER` Environment Variable must be set to one of the
|
519
|
+
For locally hosted desktop web browsers running on macOS (OS X) or Windows platforms, the `WEB_BROWSER` Environment Variable must be set to one of the
|
520
|
+
values from the table below:
|
516
521
|
|
517
522
|
`WEB_BROWSER` | **Desktop Platform**
|
518
|
-
|
519
|
-
`firefox`
|
520
|
-
`chrome`
|
521
|
-
`safari`
|
522
|
-
`ie`
|
523
|
-
`poltergeist` | OS X or Windows
|
523
|
+
--------------|----------------
|
524
|
+
`firefox` | macOS (OS X) or Windows
|
525
|
+
`chrome` | macOS (OS X) or Windows
|
526
|
+
`safari` | macOS (OS X) only
|
527
|
+
`ie` | Windows only
|
528
|
+
`poltergeist` | macOS (OS X) or Windows
|
524
529
|
|
525
530
|
To set the size of a desktop browser window, you set the `BROWSER_SIZE` Environment Variable to the desired width and height in pixels as shown below:
|
526
531
|
|
@@ -620,9 +625,10 @@ for information regarding the specific capabilities.
|
|
620
625
|
`BS_OS_VERSION` | Refer to `os_version` capability in chart
|
621
626
|
`BS_BROWSER` | Refer to `browser` capability in chart
|
622
627
|
`BS_VERSION` | [Optional] Refer to `browser_version` capability in chart. If not specified, latest stable version of browser will be used.
|
623
|
-
`TUNNELING` | Must be `true` if you are testing against internal/local servers
|
628
|
+
`TUNNELING` | Must be `true` if you are testing against internal/local servers (`true` or `false`)
|
624
629
|
`RESOLUTION` | [Optional] Refer to supported screen `resolution` capability in chart
|
625
630
|
`BROWSER_SIZE` | [Optional] Specify width, height of browser window
|
631
|
+
`RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
|
626
632
|
|
627
633
|
|
628
634
|
#### Remote mobile browsers on the BrowserStack service
|
@@ -633,14 +639,15 @@ for information regarding the specific capabilities.
|
|
633
639
|
|
634
640
|
**Environment Variable** | **Description**
|
635
641
|
--------------- | ----------------
|
636
|
-
`WEB_BROWSER`
|
637
|
-
`BS_USERNAME`
|
638
|
-
`BS_AUTHKEY`
|
639
|
-
`BS_BROWSER`
|
640
|
-
`BS_PLATFORM`
|
641
|
-
`BS_DEVICE`
|
642
|
-
`TUNNELING`
|
643
|
-
`ORIENTATION`
|
642
|
+
`WEB_BROWSER` | Must be set to `browserstack`
|
643
|
+
`BS_USERNAME` | Must be set to your BrowserStack account user name
|
644
|
+
`BS_AUTHKEY` | Must be set to your BrowserStack account access key
|
645
|
+
`BS_BROWSER` | Must be set to `iPhone`, `iPad`, or `android`
|
646
|
+
`BS_PLATFORM` | Must be set to `MAC` (for iOS) or `ANDROID`
|
647
|
+
`BS_DEVICE` | Refer to `device` capability in chart
|
648
|
+
`TUNNELING` | Must be `true` if you are testing against internal/local servers (`true` or `false`)
|
649
|
+
`ORIENTATION` | [Optional] Set to `portrait` or `landscape`
|
650
|
+
`RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
|
644
651
|
|
645
652
|
|
646
653
|
|
@@ -652,13 +659,14 @@ information regarding the specific capabilities.
|
|
652
659
|
|
653
660
|
**Environment Variable** | **Description**
|
654
661
|
--------------- | ----------------
|
655
|
-
`WEB_BROWSER`
|
656
|
-
`CB_USERNAME`
|
657
|
-
`CB_AUTHKEY`
|
658
|
-
`CB_OS`
|
659
|
-
`CB_BROWSER`
|
660
|
-
`RESOLUTION`
|
661
|
-
`BROWSER_SIZE
|
662
|
+
`WEB_BROWSER` | Must be set to `crossbrowser`
|
663
|
+
`CB_USERNAME` | Must be set to your CrossBrowserTesting account user name or email address
|
664
|
+
`CB_AUTHKEY` | Must be set to your CrossBrowserTesting account access key
|
665
|
+
`CB_OS` | Refer to `os_api_name` capability in the sample script of the Wizard
|
666
|
+
`CB_BROWSER` | Refer to `browser_api_name` capability in the sample script of the Wizard
|
667
|
+
`RESOLUTION` | [Optional] Refer to supported `screen_resolution` capability in the sample script of the Wizard
|
668
|
+
`BROWSER_SIZE` | [Optional] Specify width, height of browser window
|
669
|
+
`RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
|
662
670
|
|
663
671
|
|
664
672
|
#### Remote mobile browsers on the CrossBrowserTesting service
|
@@ -669,12 +677,13 @@ information regarding the specific capabilities.
|
|
669
677
|
|
670
678
|
**Environment Variable** | **Description**
|
671
679
|
--------------- | ----------------
|
672
|
-
`WEB_BROWSER`
|
673
|
-
`CB_USERNAME`
|
674
|
-
`CB_AUTHKEY`
|
675
|
-
`CB_PLATFORM`
|
676
|
-
`CB_BROWSER`
|
677
|
-
`RESOLUTION`
|
680
|
+
`WEB_BROWSER` | Must be set to `crossbrowser`
|
681
|
+
`CB_USERNAME` | Must be set to your CrossBrowserTesting account user name or email address
|
682
|
+
`CB_AUTHKEY` | Must be set to your CrossBrowserTesting account access key
|
683
|
+
`CB_PLATFORM` | Refer to `os_api_name` capability in the sample script of the Wizard
|
684
|
+
`CB_BROWSER` | Refer to `browser_api_name` capability in the sample script of the Wizard
|
685
|
+
`RESOLUTION` | Refer to supported `screen_resolution` capability in the sample script of the Wizard
|
686
|
+
`RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
|
678
687
|
|
679
688
|
|
680
689
|
|
@@ -686,33 +695,15 @@ information regarding the specific capabilities.
|
|
686
695
|
|
687
696
|
**Environment Variable** | **Description**
|
688
697
|
--------------- | ----------------
|
689
|
-
`WEB_BROWSER`
|
690
|
-
`SL_USERNAME`
|
691
|
-
`SL_AUTHKEY`
|
692
|
-
`SL_OS`
|
693
|
-
`SL_BROWSER`
|
694
|
-
`SL_VERSION`
|
695
|
-
`RESOLUTION`
|
696
|
-
`BROWSER_SIZE`| [Optional] Specify width, height of browser window
|
697
|
-
|
698
|
-
|
699
|
-
#### Remote mobile browsers on the Sauce Labs service
|
700
|
-
|
701
|
-
For remotely hosted mobile web browsers on the Sauce Labs service, the following **Environment Variables** must be set as described in
|
702
|
-
the table below. Use the Selenium API on the [Platform Configurator page](https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/) to obtain
|
703
|
-
information regarding the specific capabilities.
|
704
|
-
|
705
|
-
**Environment Variable** | **Description**
|
706
|
-
--------------- | ----------------
|
707
|
-
`WEB_BROWSER` | Must be set to `saucelabs`
|
708
|
-
`SL_USERNAME` | Must be set to your Sauce Labs account user name or email address
|
709
|
-
`SL_AUTHKEY` | Must be set to your Sauce Labs account access key
|
710
|
-
`SL_PLATFORM` | Refer to `platform` capability in the Copy Code section of the Platform Configurator page
|
711
|
-
`SL_BROWSER` | Must be set to `iPhone` or `android`
|
712
|
-
`SL_VERSION` | Refer to `version` capability in the Copy Code section of the Platform Configurator page
|
713
|
-
`SL_DEVICE` | Refer to `deviceName` capability in the Copy Code section of the Platform Configurator page
|
714
|
-
`SL_DEVICE_TYPE` | If displayed, refer to `deviceType` capability in the Copy Code section of the Platform Configurator page
|
715
|
-
`ORIENTATION` | Refer to `deviceOrientation` capability in the Copy Code section of the Platform Configurator page
|
698
|
+
`WEB_BROWSER` | Must be set to `saucelabs`
|
699
|
+
`SL_USERNAME` | Must be set to your Sauce Labs account user name or email address
|
700
|
+
`SL_AUTHKEY` | Must be set to your Sauce Labs account access key
|
701
|
+
`SL_OS` | Refer to `platform` capability in the Copy Code section of the Platform Configurator page
|
702
|
+
`SL_BROWSER` | Must be set to `chrome`, `firefox`, `safari`, `internet explorer`, or `edge`
|
703
|
+
`SL_VERSION` | Refer to `version` capability in the Copy Code section of the Platform Configurator page
|
704
|
+
`RESOLUTION` | [Optional] Refer to supported `screenResolution` capability in the Copy Code section of the Platform Configurator page
|
705
|
+
`BROWSER_SIZE `| [Optional] Specify width, height of browser window
|
706
|
+
`RECORD_VIDEO` | [Optional] Enable screen video recording during test execution (`true` or `false`)
|
716
707
|
|
717
708
|
|
718
709
|
#### Remote desktop browsers on the TestingBot service
|
@@ -729,11 +720,31 @@ regarding the specific capabilities.
|
|
729
720
|
`TB_OS` | Refer to `platform` capability in chart
|
730
721
|
`TB_BROWSER` | Refer to `browserName` capability in chart
|
731
722
|
`TB_VERSION` | Refer to `version` capability in chart
|
732
|
-
`TUNNELING` | Must be `true` if you are testing against internal/local servers
|
723
|
+
`TUNNELING` | Must be `true` if you are testing against internal/local servers (`true` or `false`)
|
733
724
|
`RESOLUTION` | [Optional] Possible values: `800x600`, `1024x768`, `1280x960`, `1280x1024`, `1600x1200`, `1920x1200`, `2560x1440`
|
734
725
|
`BROWSER_SIZE`| [Optional] Specify width, height of browser window
|
735
726
|
|
736
727
|
|
728
|
+
#### Remote mobile browsers on the TestingBot service
|
729
|
+
|
730
|
+
For remotely hosted mobile web browsers on the TestingBot service, the following **Environment Variables** must be set as described in
|
731
|
+
the table below. Refer to the [TestingBot List of Available Browsers page](https://testingbot.com/support/getting-started/browsers.html) for information
|
732
|
+
regarding the specific capabilities.
|
733
|
+
|
734
|
+
**Environment Variable** | **Description**
|
735
|
+
--------------- | ----------------
|
736
|
+
`WEB_BROWSER` | Must be set to `testingbot`
|
737
|
+
`TB_USERNAME` | Must be set to your TestingBot account user name
|
738
|
+
`TB_AUTHKEY` | Must be set to your TestingBot account access key
|
739
|
+
`TB_OS` | Must be set to `MAC` (for iOS) or `ANDROID`
|
740
|
+
`TB_BROWSER` | Must be set to `safari` (for iOS) or `browser` (for Android)
|
741
|
+
`TB_VERSION` | Refer to `version` capability in chart
|
742
|
+
`TB_PLATFORM` | Must be set to `iOS` or `ANDROID`
|
743
|
+
`TB_DEVICE` | Refer to `deviceName` capability in chart
|
744
|
+
`TUNNELING` | Must be `true` if you are testing against internal/local servers (`true` or `false`)
|
745
|
+
`ORIENTATION` | [Optional] Set to `portrait` or `landscape`
|
746
|
+
|
747
|
+
|
737
748
|
### Using Browser specific Profiles in cucumber.yml
|
738
749
|
|
739
750
|
While you can set **Environment Variables** in the command line when invoking Cucumber, a preferred method of specifying and managing
|
@@ -828,20 +839,17 @@ replace the placeholder text with your user account and authorization code for t
|
|
828
839
|
bs_osx_el_capitan: --profile bs_desktop BS_OS="OS X" BS_OS_VERSION="El Capitan"
|
829
840
|
bs_ff_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Firefox"
|
830
841
|
bs_chrome_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Chrome"
|
831
|
-
bs_safari_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Safari"
|
832
|
-
bs_safari9_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Safari" BS_VERSION="9.0"
|
842
|
+
bs_safari_el_cap: --profile bs_osx_el_capitan BS_BROWSER="Safari"
|
833
843
|
|
834
844
|
bs_osx_yosemite: --profile bs_desktop BS_OS="OS X" BS_OS_VERSION="Yosemite"
|
835
845
|
bs_ff_yos: --profile bs_osx_yosemite BS_BROWSER="Firefox"
|
836
846
|
bs_chrome_yos: --profile bs_osx_yosemite BS_BROWSER="Chrome"
|
837
|
-
bs_safari_yos: --profile bs_osx_yosemite BS_BROWSER="Safari"
|
838
|
-
bs_safari8_osx: --profile bs_osx_yosemite BS_BROWSER="Safari" BS_VERSION="8.0"
|
847
|
+
bs_safari_yos: --profile bs_osx_yosemite BS_BROWSER="Safari"
|
839
848
|
|
840
849
|
bs_osx_mavericks: --profile bs_desktop BS_OS="OS X" BS_OS_VERSION="Mavericks"
|
841
850
|
bs_ff_mav: --profile bs_osx_mavericks BS_BROWSER="Firefox"
|
842
851
|
bs_chrome_mav: --profile bs_osx_mavericks BS_BROWSER="Chrome"
|
843
|
-
bs_safari_mav: --profile bs_osx_mavericks BS_BROWSER="Safari"
|
844
|
-
bs_safari7_osx: --profile bs_osx_mavericks BS_BROWSER="Safari" BS_VERSION="7.0"
|
852
|
+
bs_safari_mav: --profile bs_osx_mavericks BS_BROWSER="Safari"
|
845
853
|
|
846
854
|
# BrowserStack Windows desktop browser profiles
|
847
855
|
bs_win7: --profile bs_desktop BS_OS="Windows" BS_OS_VERSION="7"
|
@@ -902,19 +910,16 @@ replace the placeholder text with your user account and authorization code for t
|
|
902
910
|
cb_ff_el_cap: --profile cb_osx_el_capitan CB_BROWSER="FF44"
|
903
911
|
cb_chrome_el_cap: --profile cb_osx_el_capitan CB_BROWSER="Chrome48x64"
|
904
912
|
cb_safari_el_cap: --profile cb_osx_el_capitan CB_BROWSER="Safari9"
|
905
|
-
cb_safari9_el_cap: --profile cb_osx_el_capitan CB_BROWSER="Safari9"
|
906
913
|
|
907
914
|
cb_osx_yosemite: --profile cb_osx CB_OS="Mac10.10"
|
908
915
|
cb_ff_yos: --profile cb_osx_yosemite CB_BROWSER="FF44"
|
909
916
|
cb_chrome_yos: --profile cb_osx_yosemite CB_BROWSER="Chrome48x64"
|
910
917
|
cb_safari_yos: --profile cb_osx_yosemite CB_BROWSER="Safari8"
|
911
|
-
cb_safari8_osx: --profile cb_osx_yosemite CB_BROWSER="Safari8"
|
912
918
|
|
913
919
|
cb_osx_mavericks: --profile cb_osx CB_OS="Mac10.9"
|
914
920
|
cb_ff_mav: --profile cb_osx_mavericks CB_BROWSER="FF43"
|
915
921
|
cb_chrome_mav: --profile cb_osx_mavericks CB_BROWSER="Chrome48x64"
|
916
922
|
cb_safari_mav: --profile cb_osx_mavericks CB_BROWSER="Safari7"
|
917
|
-
cb_safari7_osx: --profile cb_osx_mavericks CB_BROWSER="Safari7"
|
918
923
|
|
919
924
|
# CrossBrowserTesting Windows desktop browser profiles
|
920
925
|
cb_win: --profile cb_desktop RESOLUTION="1920x1080"
|
@@ -927,6 +932,7 @@ replace the placeholder text with your user account and authorization code for t
|
|
927
932
|
cb_chrome_win7: --profile cb_win7 CB_BROWSER="Chrome48x64"
|
928
933
|
cb_chrome_win8: --profile cb_win8 CB_BROWSER="Chrome48x64"
|
929
934
|
cb_chrome_win10: --profile cb_win10 CB_BROWSER="Chrome48x64"
|
935
|
+
cb_edge_win10: --profile cb_win10 CB_BROWSER="Edge20"
|
930
936
|
|
931
937
|
cb_ie11_win7: --profile cb_win7 CB_BROWSER="IE11"
|
932
938
|
cb_ie10_win7: --profile cb_win7 CB_BROWSER="IE10"
|
@@ -936,18 +942,21 @@ replace the placeholder text with your user account and authorization code for t
|
|
936
942
|
cb_ie11_win10: --profile cb_win10 CB_BROWSER="IE11"
|
937
943
|
|
938
944
|
# CrossBrowserTesting iOS mobile browser profiles
|
939
|
-
|
945
|
+
cb_iphone6s_plus: --profile cb_mobile CB_PLATFORM="iPhone6sPlus-iOS9sim" CB_BROWSER="MblSafari9.0" RESOLUTION="1242x2208"
|
946
|
+
cb_iphone6s: --profile cb_mobile CB_PLATFORM="iPhone6s-iOS9sim" CB_BROWSER="MblSafari9.0" RESOLUTION="750x1334"
|
947
|
+
cb_iphone6_plus: --profile cb_mobile CB_PLATFORM="iPhone6Plus-iOS8sim" CB_BROWSER="MblSafari8.0" RESOLUTION="1242x2208"
|
940
948
|
cb_iphone6: --profile cb_mobile CB_PLATFORM="iPhone6-iOS8sim" CB_BROWSER="MblSafari8.0" RESOLUTION="750x1334"
|
941
949
|
cb_iphone5s: --profile cb_mobile CB_PLATFORM="iPhone5s-iOS7sim" CB_BROWSER="MblSafari7.0" RESOLUTION="640x1136"
|
942
|
-
|
943
|
-
|
950
|
+
cb_ipad_pro: --profile cb_mobile CB_PLATFORM="iPadPro-iOS9Sim" CB_BROWSER="MblSafari9.0" RESOLUTION="2732x2048"
|
951
|
+
cb_ipad_air2: --profile cb_mobile CB_PLATFORM="iPadAir2-iOS9Sim" CB_BROWSER="MblSafari9.0" RESOLUTION="2048x1536"
|
952
|
+
cb_ipad_air: --profile cb_mobile CB_PLATFORM="iPadAir-iOS8Sim" CB_BROWSER="MblSafari8.0" RESOLUTION="2048x1536"
|
953
|
+
cb_ipad_mini: --profile cb_mobile CB_PLATFORM="iPadMiniRetina-iOS7Sim" CB_BROWSER="MblSafari7.0" RESOLUTION="2048x1536"
|
944
954
|
|
945
955
|
# CrossBrowserTesting Android mobile browser profiles
|
946
956
|
cb_nexus7: --profile cb_mobile CB_PLATFORM="Nexus7-And42" CB_BROWSER="MblChrome37" RESOLUTION="800x1280"
|
947
957
|
cb_galaxy_tab2: --profile cb_mobile CB_PLATFORM="GalaxyTab2-And41" CB_BROWSER="MblChrome38" RESOLUTION="1280x800"
|
948
958
|
cb_galaxy_s5: --profile cb_mobile CB_PLATFORM="GalaxyS5-And44" CB_BROWSER="MblChrome35" RESOLUTION="1080x1920"
|
949
959
|
cb_galaxy_s4: --profile cb_mobile CB_PLATFORM="GalaxyS4-And42" CB_BROWSER="MblChrome33" RESOLUTION="1080x1920"
|
950
|
-
cb_galaxy_s3: --profile cb_mobile CB_PLATFORM="GalaxyS3-And41" CB_BROWSER="MblChrome34" RESOLUTION="720x1280"
|
951
960
|
|
952
961
|
|
953
962
|
#==============
|
@@ -956,26 +965,22 @@ replace the placeholder text with your user account and authorization code for t
|
|
956
965
|
|
957
966
|
saucelabs: WEB_BROWSER=saucelabs SL_USERNAME=<INSERT USER NAME HERE> SL_AUTHKEY=<INSERT PASSWORD HERE>
|
958
967
|
sl_desktop: --profile saucelabs <%= desktop %>
|
959
|
-
sl_mobile: --profile saucelabs <%= mobile %>
|
960
968
|
|
961
969
|
# SauceLabs OS X desktop browser profiles
|
962
970
|
sl_osx_el_capitan: --profile sl_desktop SL_OS="OS X 10.11"
|
963
971
|
sl_ff_el_cap: --profile sl_osx_el_capitan SL_BROWSER="firefox"
|
964
972
|
sl_chrome_el_cap: --profile sl_osx_el_capitan SL_BROWSER="chrome"
|
965
973
|
sl_safari_el_cap: --profile sl_osx_el_capitan SL_BROWSER="safari"
|
966
|
-
sl_safari9_el_cap: --profile sl_osx_el_capitan SL_BROWSER="safari"
|
967
974
|
|
968
975
|
sl_osx_yosemite: --profile sl_desktop SL_OS="OS X 10.10" RESOLUTION="1920x1200"
|
969
976
|
sl_ff_yos: --profile sl_osx_yosemite SL_BROWSER="firefox"
|
970
977
|
sl_chrome_yos: --profile sl_osx_yosemite SL_BROWSER="chrome"
|
971
978
|
sl_safari_yos: --profile sl_osx_yosemite SL_BROWSER="safari"
|
972
|
-
sl_safari8_osx: --profile sl_osx_yosemite SL_BROWSER="safari"
|
973
979
|
|
974
980
|
sl_osx_mavericks: --profile sl_desktop SL_OS="OS X 10.9" RESOLUTION="1920x1200"
|
975
981
|
sl_ff_mav: --profile sl_osx_mavericks SL_BROWSER="firefox"
|
976
982
|
sl_chrome_mav: --profile sl_osx_mavericks SL_BROWSER="chrome"
|
977
983
|
sl_safari_mav: --profile sl_osx_mavericks SL_BROWSER="safari"
|
978
|
-
sl_safari7_osx: --profile sl_osx_mavericks SL_BROWSER="safari"
|
979
984
|
|
980
985
|
# SauceLabs Windows desktop browser profiles
|
981
986
|
sl_win7: --profile sl_desktop SL_OS="Windows 7" RESOLUTION="1920x1200"
|
@@ -994,20 +999,6 @@ replace the placeholder text with your user account and authorization code for t
|
|
994
999
|
sl_ie11_win8: --profile sl_win8 SL_BROWSER="internet explorer" SL_VERSION="11.0"
|
995
1000
|
sl_ie11_win10: --profile sl_win10 SL_BROWSER="internet explorer"
|
996
1001
|
|
997
|
-
# SauceLabs iOS mobile browser profiles
|
998
|
-
sl_ios: --profile sl_mobile SL_PLATFORM=OS X 10.10 SL_BROWSER="iphone" SL_VERSION="9.2"
|
999
|
-
sl_iphone6_plus: --profile sl_ios SL_DEVICE="iPhone 6 Plus"
|
1000
|
-
sl_iphone6: --profile sl_ios SL_DEVICE="iPhone 6"
|
1001
|
-
sl_iphone5s: --profile sl_ios SL_DEVICE="iPhone 5s"
|
1002
|
-
sl_iphone4s: --profile sl_ios SL_DEVICE="iPhone 4s"
|
1003
|
-
sl_ipad_air: --profile sl_ios SL_DEVICE="iPad Air"
|
1004
|
-
sl_ipad_retina: --profile sl_ios SL_DEVICE="iPad Retina"
|
1005
|
-
|
1006
|
-
# SauceLabs Android mobile browser profiles
|
1007
|
-
sl_android: --profile sl_mobile SL_PLATFORM=Linux SL_BROWSER="android" SL_VERSION="4.4"
|
1008
|
-
sl_android_phone: --profile sl_android SL_DEVICE="Android Emulator" SL_DEVICE_TYPE="phone"
|
1009
|
-
sl_android_tablet: --profile sl_android SL_DEVICE="Android Emulator" SL_DEVICE_TYPE="tablet"
|
1010
|
-
|
1011
1002
|
|
1012
1003
|
#==============
|
1013
1004
|
# profiles for remotely hosted web browsers on the TestingBot service
|
@@ -1015,25 +1006,28 @@ replace the placeholder text with your user account and authorization code for t
|
|
1015
1006
|
|
1016
1007
|
testingbot: WEB_BROWSER=testingbot TB_USERNAME=<INSERT USER NAME HERE> TB_AUTHKEY=<INSERT PASSWORD HERE>
|
1017
1008
|
tb_desktop: --profile testingbot <%= desktop %> RESOLUTION="1920x1200"
|
1009
|
+
tb_mobile: --profile testingbot <%= mobile %>
|
1018
1010
|
|
1019
1011
|
# TestingBot OS X desktop browser profiles
|
1012
|
+
tb_macos_sierra: --profile tb_desktop TB_OS="SIERRA"
|
1013
|
+
tb_ff_sierra: --profile tb_macos_sierra TB_BROWSER="firefox"
|
1014
|
+
tb_chrome_sierra: --profile tb_macos_sierra TB_BROWSER="chrome"
|
1015
|
+
tb_safari_sierra: --profile tb_macos_sierra TB_BROWSER="safari" TB_VERSION="10"
|
1016
|
+
|
1020
1017
|
tb_osx_el_capitan: --profile tb_desktop TB_OS="CAPITAN"
|
1021
1018
|
tb_ff_el_cap: --profile tb_osx_el_capitan TB_BROWSER="firefox"
|
1022
1019
|
tb_chrome_el_cap: --profile tb_osx_el_capitan TB_BROWSER="chrome"
|
1023
1020
|
tb_safari_el_cap: --profile tb_osx_el_capitan TB_BROWSER="safari" TB_VERSION="9"
|
1024
|
-
tb_safari9_el_cap: --profile tb_osx_el_capitan TB_BROWSER="safari" TB_VERSION="9"
|
1025
1021
|
|
1026
1022
|
tb_osx_yosemite: --profile tb_desktop TB_OS="YOSEMITE"
|
1027
1023
|
tb_ff_yos: --profile tb_osx_yosemite TB_BROWSER="firefox"
|
1028
1024
|
tb_chrome_yos: --profile tb_osx_yosemite TB_BROWSER="chrome"
|
1029
1025
|
tb_safari_yos: --profile tb_osx_yosemite TB_BROWSER="safari" TB_VERSION="8"
|
1030
|
-
tb_safari8_osx: --profile tb_osx_yosemite TB_BROWSER="safari" TB_VERSION="8"
|
1031
1026
|
|
1032
1027
|
tb_osx_mavericks: --profile tb_desktop TB_OS="MAVERICKS"
|
1033
1028
|
tb_ff_mav: --profile tb_osx_mavericks TB_BROWSER="firefox"
|
1034
1029
|
tb_chrome_mav: --profile tb_osx_mavericks TB_BROWSER="chrome"
|
1035
1030
|
tb_safari_mav: --profile tb_osx_mavericks TB_BROWSER="safari" TB_VERSION="7"
|
1036
|
-
tb_safari7_osx: --profile tb_osx_mavericks TB_BROWSER="safari" TB_VERSION="7"
|
1037
1031
|
|
1038
1032
|
# TestingBot Windows desktop browser profiles
|
1039
1033
|
tb_win7: --profile tb_desktop TB_OS="WIN7"
|
@@ -1050,7 +1044,33 @@ replace the placeholder text with your user account and authorization code for t
|
|
1050
1044
|
tb_ie11_win8: --profile tb_win8 TB_BROWSER="internet explorer" TB_VERSION="11"
|
1051
1045
|
tb_ie10_win8: --profile tb_win8 TB_BROWSER="internet explorer" TB_VERSION="10"
|
1052
1046
|
tb_ie11_win10: --profile tb_win10 TB_BROWSER="internet explorer" TB_VERSION="11"
|
1053
|
-
tb_edge_win10: --profile tb_win10 TB_BROWSER="microsoftedge" TB_VERSION="
|
1047
|
+
tb_edge_win10: --profile tb_win10 TB_BROWSER="microsoftedge" TB_VERSION="14"
|
1048
|
+
|
1049
|
+
# TestingBot iOS mobile browser profiles
|
1050
|
+
tb_ios: --profile tb_mobile TB_OS="MAC" TB_BROWSER="safari" TB_PLATFORM="iOS"
|
1051
|
+
tb_iphone6s_plus_10: --profile tb_ios TB_VERSION="10.0" TB_DEVICE="iPhone 6s Plus"
|
1052
|
+
tb_iphone6s_plus_93: --profile tb_ios TB_VERSION="9.3" TB_DEVICE="iPhone 6s Plus"
|
1053
|
+
tb_iphone6_plus_10: --profile tb_ios TB_VERSION="10.0" TB_DEVICE="iPhone 6 Plus"
|
1054
|
+
tb_iphone6_plus_93: --profile tb_ios TB_VERSION="9.3" TB_DEVICE="iPhone 6 Plus"
|
1055
|
+
tb_iphone6s_10: --profile tb_ios TB_VERSION="10.0" TB_DEVICE="iPhone 6s"
|
1056
|
+
tb_iphone6s_93: --profile tb_ios TB_VERSION="9.3" TB_DEVICE="iPhone 6s"
|
1057
|
+
tb_iphone5s_10: --profile tb_ios TB_VERSION="10.0" TB_DEVICE="iPhone 5s"
|
1058
|
+
tb_iphone5s_93: --profile tb_ios TB_VERSION="9.3" TB_DEVICE="iPhone 5s"
|
1059
|
+
tb_ipad_pro_10: --profile tb_ios TB_VERSION="10.0" TB_DEVICE="iPad Pro"
|
1060
|
+
tb_ipad_pro_93: --profile tb_ios TB_VERSION="9.3" TB_DEVICE="iPad Pro"
|
1061
|
+
tb_ipad_air2_10: --profile tb_ios TB_VERSION="10.0" TB_DEVICE="iPad Air 2"
|
1062
|
+
tb_ipad_air2_93: --profile tb_ios TB_VERSION="9.3" TB_DEVICE="iPad Air 2"
|
1063
|
+
|
1064
|
+
|
1065
|
+
# TestingBot Android mobile browser profiles
|
1066
|
+
tb_android: --profile tb_mobile TB_OS="ANDROID" TB_BROWSER="browser" TB_PLATFORM="Android"
|
1067
|
+
tb_nexus_s: --profile tb_android TB_VERSION="6.0" TB_DEVICE="Nexus S"
|
1068
|
+
tb_nexus_1: --profile tb_android TB_VERSION="5.0" TB_DEVICE="Nexus 1"
|
1069
|
+
tb_nexus_4: --profile tb_android TB_VERSION="6.0" TB_DEVICE="Nexus 4"
|
1070
|
+
tb_galaxy_nexus: --profile tb_android TB_VERSION="4.4" TB_DEVICE="Galaxy Nexus"
|
1071
|
+
tb_galaxy_s4: --profile tb_android TB_VERSION="4.4" TB_DEVICE="Galaxy S4"
|
1072
|
+
tb_galaxy_s5: --profile tb_android TB_VERSION="5.0" TB_DEVICE="Galaxy S5"
|
1073
|
+
tb_galaxy_s6: --profile tb_android TB_VERSION="6.0" TB_DEVICE="Galaxy S6"
|
1054
1074
|
|
1055
1075
|
|
1056
1076
|
To specify a locally hosted target browser using a profile at runtime, you use the flag `--profile` or `-p` followed by the profile name when
|
@@ -8,7 +8,7 @@ module TestCentricity
|
|
8
8
|
@alt_locator = nil
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
11
|
+
def file_attach(file_path)
|
12
12
|
Capybara.ignore_hidden_elements = false
|
13
13
|
page.attach_file(@locator, file_path)
|
14
14
|
Capybara.ignore_hidden_elements = true
|
@@ -25,7 +25,7 @@ module TestCentricity
|
|
25
25
|
js_script = "#{js_script} fileList.push(seleniumUpload#{i}.get(0).files[0]);"
|
26
26
|
end
|
27
27
|
# trigger the fake drop event
|
28
|
-
page.execute_script("#{js_script} e = $.Event('drop'); e.originalEvent = {dataTransfer : { files : fileList } }; $('
|
28
|
+
page.execute_script("#{js_script} e = $.Event('drop'); e.originalEvent = {dataTransfer : { files : fileList } }; $('#{@locator}').trigger(e);")
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -137,6 +137,7 @@ module TestCentricity
|
|
137
137
|
capabilities['deviceOrientation'] = ENV['ORIENTATION'] if ENV['ORIENTATION']
|
138
138
|
end
|
139
139
|
|
140
|
+
capabilities['browserstack.video'] = ENV['RECORD_VIDEO'] if ENV['RECORD_VIDEO']
|
140
141
|
capabilities['browserstack.debug'] = 'true'
|
141
142
|
capabilities['project'] = ENV['AUTOMATE_PROJECT'] if ENV['AUTOMATE_PROJECT']
|
142
143
|
capabilities['build'] = ENV['AUTOMATE_BUILD'] if ENV['AUTOMATE_BUILD']
|
@@ -240,6 +241,7 @@ module TestCentricity
|
|
240
241
|
capabilities['browserName'] = browser
|
241
242
|
capabilities['version'] = ENV['SL_VERSION'] if ENV['SL_VERSION']
|
242
243
|
capabilities['screenResolution'] = ENV['RESOLUTION'] if ENV['RESOLUTION']
|
244
|
+
capabilities['recordVideo'] = ENV['RECORD_VIDEO'] if ENV['RECORD_VIDEO']
|
243
245
|
if ENV['SL_OS']
|
244
246
|
capabilities['platform'] = ENV['SL_OS']
|
245
247
|
Environ.set_platform(:desktop)
|
@@ -264,11 +266,9 @@ module TestCentricity
|
|
264
266
|
def self.initialize_testingbot
|
265
267
|
browser = ENV['TB_BROWSER']
|
266
268
|
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
endpoint = '@hub.testingbot.com:4444/wd/hub'
|
271
|
-
end
|
269
|
+
ENV['TUNNELING'] ?
|
270
|
+
endpoint = '@localhost:4445/wd/hub' :
|
271
|
+
endpoint = '@hub.testingbot.com:4444/wd/hub'
|
272
272
|
endpoint = "http://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}#{endpoint}"
|
273
273
|
Capybara.register_driver :testingbot do |app|
|
274
274
|
capabilities = Selenium::WebDriver::Remote::Capabilities.new
|
@@ -278,7 +278,16 @@ module TestCentricity
|
|
278
278
|
capabilities['version'] = ENV['TB_VERSION'] if ENV['TB_VERSION']
|
279
279
|
capabilities['screen-resolution'] = ENV['RESOLUTION'] if ENV['RESOLUTION']
|
280
280
|
capabilities['platform'] = ENV['TB_OS']
|
281
|
-
|
281
|
+
capabilities['record_video'] = ENV['RECORD_VIDEO'] if ENV['RECORD_VIDEO']
|
282
|
+
if ENV['TB_PLATFORM']
|
283
|
+
capabilities['orientation'] = ENV['ORIENTATION'] if ENV['ORIENTATION']
|
284
|
+
capabilities['platformName'] = ENV['TB_PLATFORM']
|
285
|
+
capabilities['deviceName'] = ENV['TB_DEVICE']
|
286
|
+
Environ.set_device_type(ENV['TB_DEVICE'])
|
287
|
+
Environ.set_platform(:mobile)
|
288
|
+
else
|
289
|
+
Environ.set_platform(:desktop)
|
290
|
+
end
|
282
291
|
|
283
292
|
Capybara::Selenium::Driver.new(app, :browser => :remote, :url => endpoint, :desired_capabilities => capabilities)
|
284
293
|
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: 1.0.
|
4
|
+
version: 1.0.10
|
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-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|