Created
June 22, 2016 20:44
-
-
Save ishubin/be7c8322e08df0ec7949a97e8dd19dc7 to your computer and use it in GitHub Desktop.
Galen dump with full page screenshot in chrome and firefox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Range approximation | |
| # ~~~~~~~~~~~~~~~~~~~~~ | |
| # Defines the approximation value for ranges when using "~" in galen page specs | |
| # This value means how many pixels or percents should it take constructing a range | |
| # e.g. if we define approximation as 5 then the following spec: | |
| # height: ~ 50 px | |
| # will actually be replaced by Galen with this: | |
| # height: 45 to 55px | |
| galen.range.approximation=3 | |
| # Custom Listeners | |
| # ~~~~~~~~~~~~~~~~~~~~~~~ | |
| # A comma separated list of class paths to reporting listeners | |
| # The defined listeners will be picked up by Galen and used for reporting | |
| # | |
| # galen.reporting.listeners= | |
| # Using page urls from last checked page in HTML report | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # This property enables the use of last page url in a page test | |
| # Needed when for some pages on the website there is no way to open it by direct url | |
| # galen.reporting.html.useLastPageUrls = true | |
| # Default browser | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # A browser that should be used by default in case it was not specified in galen test | |
| galen.default.browser=firefox | |
| # Color scheme spec precision | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # A value between 8 and 256 for color spectrum accuracy. | |
| spec.colorscheme.precision = 256 | |
| # Full screenshots | |
| # ~~~~~~~~~~~~~~~~~~~~ | |
| # In some browsers it is not possible to create a complete screenshot of whole page. | |
| # With this property enabled Galen will scroll page and make screenshots of parts of it. | |
| # Then it will assemble it in a one big screenshot | |
| # | |
| galen.browser.screenshots.fullPage = true | |
| # the following parameter is need in case the upper parameter is set to true | |
| # it sets the amount of time in milliseconds needed for a check that the page was scrolled when taking full page screenshots | |
| galen.browser.screenshots.fullPage.scrollWait = 0 | |
| # Color scheme spec test color range | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # A value between 0 and 256 which defined the range of nearby colors | |
| # in spectrum which will be picked up for calculating the percentage of usage | |
| spec.colorscheme.testrange = 6 | |
| # Running in Selenium Grid | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # You can run your tests in Selenium Grid without modifying the tests. | |
| # Just enable the "galen.browserFactory.selenium.runInGrid" property | |
| # and Galen will always choose a Selenium Grid instead of running tests against local browsers | |
| # Also make sure you provide the proper url to grid | |
| # | |
| # galen.browserFactory.selenium.runInGrid = true | |
| # galen.browserFactory.selenium.grid.url = http://localhost:4444/wd/hub | |
| # galen.browserFactory.selenium.grid.browser = | |
| # galen.browserFactory.selenium.grid.browserVersion = | |
| # galen.browserFactory.selenium.grid.platform = | |
| # Exit with fail code in case of any failures | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # galen.use.fail.exit.code = true | |
| # Test file extension for standard test runner | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| galen.test.suffix=.test | |
| # JavaScript Test file extension for JavaScript test runner | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| galen.test.js.file.suffix=.test.js | |
| # Area finder for page elements | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # Defines a method of extracting location and size of web element. By default 'native' is used, which means | |
| # that Galen will use WebElement.getLocation() and WebElement.getSize() Java methods to construct area of page element. | |
| # But on some devices (e.g. iPhone with iOS 8.0) this would not work and there you need to switch to another method. | |
| # All possible methods | |
| # - native - Uses WebDriver methods for getting location and size | |
| # - jsbased - Uses JavaScript getBoundingClientRect() function in order to get area for page element. | |
| # - jsbased_native - Uses 'jsbased' method but in case of error goes back to 'native' method | |
| # - custom - Uses user-defined JavaScript for getting area of page element. If you use this method, you need to also | |
| # provide a script via galen.browser.pageElement.areaFinder.custom.script property | |
| galen.browser.pageElement.areaFinder = native |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @objects | |
| item-* ul.media-list > li |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ set | |
| domain www.bbc.com | |
| @@ parameterized | |
| | browser | browserName | | |
| | firefox | Firefox | | |
| | chrome | Chrome | | |
| @@ parameterized | |
| | deviceName | tags | size | | |
| | Mobile | mobile | 320x600 | | |
| | Tablet | tablet | 640x480 | | |
| | Desktop | desktop | 1024x800 | | |
| Front on ${deviceName} in ${browserName} | |
| selenium ${browser} "http://${domain}" ${size} | |
| dump home.gspec --name "Front page on ${browserName}" --export dumps/homepage-${browser}-${size} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment