public final class GaleniumConfiguration extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getActualImagesDirectory()
The root directory for storing sample images of current run.
|
static String |
getAuthorPass()
Password to use when logging into author.
|
static String |
getAuthorUser()
Username to use when logging into author.
|
static String |
getBaseUrl()
The base URL to use when running tests.
|
static String |
getChromeBinaryPath()
Path to Chrome binary which is passed to driver.
|
static int |
getDefaultWebdriverTimeout()
Default timeout for webdriver in seconds.
|
static String |
getExpectedImagesDirectory()
Path to root folder of expected image samples to verify against.
|
static String |
getGalenJsTestPath()
Path to root folder containing Galen JS tests.
|
static String |
getGalenSpecPath()
Path to root folder containing Galen specs.
|
static String |
getGridHost()
Selenium Grid hostname or address.
|
static int |
getGridPort()
Selenium Grid port number.
|
static String |
getHttpPass()
HTTP password to use in HTTP basic auth.
|
static String |
getHttpUser()
HTTP username to use in HTTP basic auth.
|
static Integer |
getMediaQueryHeight()
Height to use when instantiating devices using media queries.
|
static Integer |
getMediaQueryMaximalWidth()
Height to use when instantiating devices using media queries.
|
static Integer |
getMediaQueryMinimalWidth()
Height to use when instantiating devices using media queries.
|
static String |
getMediaQueryPropertiesPath()
Path to media query definitions.
|
static int |
getNumberOfBrowserInstantiationRetries()
Number of retries when instantiating browsers.
|
static int |
getNumberOfRetries()
Number of retries for failed tests.
|
static String |
getReportDirectory()
Report root folder.
|
static String |
getTestLogDirectory()
Test log root folder.
|
static String |
getTextComparisonOutputDirectory()
Directory to retrieve the text samples from.
|
static boolean |
isFixChromeImageComparison()
Headless Chrome Windows workaround flag.
|
static boolean |
isHeadless()
Headless browser flag.
|
static boolean |
isLazyWebDriverInitialization()
Lazy web driver intialization takes control away from WebDriverListener and lets the test itself decide
when or whether to initialize a webdriver.
|
static boolean |
isOnlyReportGalenErrors()
Only report Galen errors and leave successful tests out of report.
|
static boolean |
isSamplingVerificationIgnore()
Ignore sampling verification errors and continue running test.
|
static boolean |
isSkipExtentReports()
Usually Galenium will log to ExtentReports, but it can be skipped.
|
static boolean |
isSparseReporting()
Sparse reporting is a different set of logging configuration.
|
static boolean |
isSuppressAutoAdjustBrowserSize()
Adjusting the browser size is important to ensure the correct viewport size, but it can lead to problems with
certain browser/driver/OS combinations.
|
static boolean |
isTakeScreenshotOnSkippedTest()
Take screenshots for skipped tests.
|
static boolean |
isTakeScreenshotOnSuccessfulTest()
Take screenshots for successful tests.
|
static boolean |
isWebDriverAcceptTrustedSslCertificatesOnly()
Control whether to only accept secure SSL certificates
Key:
|
static boolean |
isWebDriverAlwaysNew()
Control whether to attempt reuse of drivers.
|
static boolean |
isWebDriverRefuseSslCertificates()
Control whether to refuse SSL certificates
Key:
|
public static String getActualImagesDirectory()
galenium.sampling.image.directory.actual
"./target/galenium-reports"
public static String getAuthorPass()
io.wcm.qa.aem.author.pass
"admin"
public static String getAuthorUser()
io.wcm.qa.aem.author.user
"admin"
public static String getBaseUrl()
io.wcm.qa.baseUrl
"http://localhost:4502"
public static String getChromeBinaryPath()
galenium.webdriver.chrome.binary
null
public static int getDefaultWebdriverTimeout()
galenium.webdriver.timeout
10
public static String getExpectedImagesDirectory()
galenium.sampling.image.directory.expected
"./target/specs"
public static String getGalenJsTestPath()
galenium.jsTestPath
getGalenSpecPath()
public static String getGalenSpecPath()
galenium.specPath
"./target/specs"
public static String getGridHost()
selenium.host
null
public static int getGridPort()
selenium.port
4444
public static String getHttpPass()
io.wcm.qa.http.pass
null
public static String getHttpUser()
io.wcm.qa.http.user
null
public static Integer getMediaQueryHeight()
galenium.mediaquery.height
800
public static Integer getMediaQueryMaximalWidth()
galenium.mediaquery.width.max
2000
public static Integer getMediaQueryMinimalWidth()
galenium.mediaquery.width.min
320
public static String getMediaQueryPropertiesPath()
galenium.mediaquery.properties
./target/test-classes/mediaqueries.properties
Properties
file containing media query definitionspublic static int getNumberOfBrowserInstantiationRetries()
galenium.webdriver.retryMax
0
public static int getNumberOfRetries()
galenium.retryMax
2
public static String getReportDirectory()
galenium.report.rootPath
"./target/galenium-reports"
public static String getTestLogDirectory()
galenium.logging.testlogs
"./target/testlogs"
public static String getTextComparisonOutputDirectory()
galenium.sampling.text.directory.actual
"./target/sampled"
public static boolean isFixChromeImageComparison()
galenium.sampling.image.chromefix
true
public static boolean isHeadless()
galenium.headless
false
public static boolean isLazyWebDriverInitialization()
galenium.webdriver.lazy
false
public static boolean isOnlyReportGalenErrors()
galenium.report.galen.errorsOnly
false
public static boolean isSamplingVerificationIgnore()
galenium.sampling.verification.ignoreErrors
false
public static boolean isSkipExtentReports()
galenium.report.extent.skip
false
public static boolean isSparseReporting()
galenium.report.sparse
false
public static boolean isSuppressAutoAdjustBrowserSize()
galenium.suppressAutoAdjustBrowserSize
false
public static boolean isTakeScreenshotOnSkippedTest()
galenium.screenshotOnSkipped
false
public static boolean isTakeScreenshotOnSuccessfulTest()
galenium.screenshotOnSuccess
false
public static boolean isWebDriverAcceptTrustedSslCertificatesOnly()
galenium.webdriver.ssl.trusted
false
public static boolean isWebDriverAlwaysNew()
galenium.webdriver.alwaysNew
false
public static boolean isWebDriverRefuseSslCertificates()
galenium.webdriver.ssl.refuse
false
Copyright © 2017–2022 wcm.io QA. All rights reserved.