public class SystemPropertiesConfiguration extends Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ELEMENT_TIMEOUT_SECONDS
Default timeout when waiting for AJAX elements in pages, in seconds.
|
static Integer |
DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT |
protected String |
defaultBaseUrl |
protected EnvironmentVariables |
environmentVariables |
protected File |
outputDirectory
HTML and XML reports will be generated in this directory.
|
static String |
PROJECT_BUILD_DIRECTORY
If in system properties will be defined project.build.directory or project.reporting.OutputDirectory then it will
be used for output for serenity test reports.
|
static String |
REFUSE_UNTRUSTED_CERTIFICATES
By default, when accepting untrusted SSL certificates, assume that these certificates will come from an
untrusted issuer or will be self signed.
|
| Constructor and Description |
|---|
SystemPropertiesConfiguration(EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
This is the URL where test cases start.
|
int |
getCurrentTestCount()
This is the URL where test cases start.
|
int |
getElementTimeoutInSeconds() |
EnvironmentVariables |
getEnvironmentVariables() |
double |
getEstimatedAverageStepCount() |
File |
getHistoryDirectory() |
File |
getOutputDirectory()
The output directory is where the test runner writes the XML and HTML
reports to.
|
int |
getRestartFrequency() |
Optional<TakeScreenshots> |
getScreenshotLevel()
How often should screenshots be taken.
|
int |
getStepDelay() |
boolean |
getUseUniqueBrowser()
Deprecated.
|
File |
loadHistoryDirectoryFromSystemProperties() |
File |
loadOutputDirectoryFromSystemProperties()
Where should the reports go?
|
boolean |
onlySaveFailingScreenshots() |
void |
reloadOutputDirectory()
If some property that can change output directory@Override was changed this method should be called
|
void |
setDefaultBaseUrl(String defaultBaseUrl)
Override the default base URL manually.
|
void |
setIfUndefined(String property,
String value) |
void |
setOutputDirectory(File outputDirectory) |
boolean |
shouldUseAUniqueBrowser()
Deprecated.
|
boolean |
takeVerboseScreenshots()
Take a screenshot for each action.
|
SystemPropertiesConfiguration |
withEnvironmentVariables(EnvironmentVariables environmentVariables) |
public static final int DEFAULT_ELEMENT_TIMEOUT_SECONDS
public static final Integer DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
public static final String PROJECT_BUILD_DIRECTORY
public static final String REFUSE_UNTRUSTED_CERTIFICATES
protected File outputDirectory
protected String defaultBaseUrl
protected EnvironmentVariables environmentVariables
@Inject public SystemPropertiesConfiguration(EnvironmentVariables environmentVariables)
public SystemPropertiesConfiguration withEnvironmentVariables(EnvironmentVariables environmentVariables)
withEnvironmentVariables in interface Configurationpublic EnvironmentVariables getEnvironmentVariables()
getEnvironmentVariables in interface Configurationpublic File loadOutputDirectoryFromSystemProperties()
public File loadHistoryDirectoryFromSystemProperties()
public void reloadOutputDirectory()
public int getStepDelay()
getStepDelay in interface Configurationpublic int getElementTimeoutInSeconds()
getElementTimeoutInSeconds in interface Configuration@Deprecated public boolean getUseUniqueBrowser()
ConfigurationgetUseUniqueBrowser in interface Configuration@Deprecated public boolean shouldUseAUniqueBrowser()
shouldUseAUniqueBrowser in interface Configurationpublic void setOutputDirectory(File outputDirectory)
setOutputDirectory in interface Configurationpublic File getOutputDirectory()
getOutputDirectory in interface Configurationpublic File getHistoryDirectory()
getHistoryDirectory in interface Configurationpublic double getEstimatedAverageStepCount()
getEstimatedAverageStepCount in interface Configurationpublic boolean onlySaveFailingScreenshots()
onlySaveFailingScreenshots in interface Configurationpublic boolean takeVerboseScreenshots()
ConfigurationtakeVerboseScreenshots in interface Configurationpublic Optional<TakeScreenshots> getScreenshotLevel()
ConfigurationgetScreenshotLevel in interface Configurationpublic void setIfUndefined(String property, String value)
setIfUndefined in interface Configurationpublic void setDefaultBaseUrl(String defaultBaseUrl)
setDefaultBaseUrl in interface Configurationpublic int getRestartFrequency()
getRestartFrequency in interface Configurationpublic int getCurrentTestCount()
ConfigurationgetCurrentTestCount in interface Configurationpublic String getBaseUrl()
getBaseUrl in interface ConfigurationCopyright © 2022. All rights reserved.