public class SystemPropertiesConfiguration extends Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
Deprecated.
|
protected String |
defaultBaseUrl |
protected EnvironmentVariables |
environmentVariables |
protected File |
outputDirectory
HTML 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.
|
protected File |
sourceDirectory
JSON reports will be read from here
|
| 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.
|
File |
getSourceDirectory() |
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) |
void |
setSourceDirectory(File sourceDirectory) |
boolean |
shouldUseAUniqueBrowser()
Deprecated.
|
boolean |
takeVerboseScreenshots()
Take a screenshot for each action.
|
SystemPropertiesConfiguration |
withEnvironmentVariables(EnvironmentVariables environmentVariables) |
@Deprecated public static final Integer DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
public static final String PROJECT_BUILD_DIRECTORY
protected File outputDirectory
protected File sourceDirectory
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 void setSourceDirectory(File sourceDirectory)
setSourceDirectory in interface Configurationpublic File getOutputDirectory()
getOutputDirectory in interface Configurationpublic File getSourceDirectory()
public 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 © 2023. All rights reserved.