|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.webdriver.SystemPropertiesConfiguration
public class SystemPropertiesConfiguration
Centralized configuration of the test runner. You can configure the output directory, the browser to use, and the reports to generate. Most configuration elements can be set using system properties.
| Field Summary | |
|---|---|
static String |
ASSUME_UNTRUSTED_CERTIFICATE_ISSUER
By default, when accepting untrusted SSL certificates, assume that these certificates will come from an untrusted issuer or will be self signed. |
static int |
DEFAULT_ELEMENT_TIMEOUT_SECONDS
Default timeout when waiting for AJAX elements in pages, in milliseconds. |
Integer |
DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
|
static String |
DEFAULT_WEBDRIVER_DRIVER
The default browser is Firefox. |
static String |
OUTPUT_DIRECTORY_PROPERTY
Use this property to define the output directory in which reports will be stored. |
static String |
WEBDRIVER_DRIVER
Use the 'webdriver.driver' property to tell Thucydides what browser to run the tests in. |
| Constructor Summary | |
|---|---|
SystemPropertiesConfiguration(EnvironmentVariables environmentVariables)
|
|
| Method Summary | |
|---|---|
String |
getBaseUrl()
This is the URL where test cases start. |
SupportedWebDriver |
getDriverType()
Get the currently-configured browser type. |
int |
getElementTimeout()
|
protected EnvironmentVariables |
getEnvironmentVariables()
|
double |
getEstimatedAverageStepCount()
|
File |
getOutputDirectory()
The output directory is where the test runner writes the XML and HTML reports to. |
int |
getRestartFrequency()
|
int |
getStepDelay()
|
boolean |
getUseUniqueBrowser()
|
File |
loadOutputDirectoryFromSystemProperties()
Where should the reports go? |
boolean |
onlySaveFailingScreenshots()
|
void |
setDefaultBaseUrl(String defaultBaseUrl)
Override the default base URL manually. |
void |
setOutputDirectory(File outputDirectory)
|
boolean |
takeVerboseScreenshots()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WEBDRIVER_DRIVER
public static final String DEFAULT_WEBDRIVER_DRIVER
public static final int DEFAULT_ELEMENT_TIMEOUT_SECONDS
public final Integer DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
public static final String OUTPUT_DIRECTORY_PROPERTY
public static final String ASSUME_UNTRUSTED_CERTIFICATE_ISSUER
| Constructor Detail |
|---|
@Inject public SystemPropertiesConfiguration(EnvironmentVariables environmentVariables)
| Method Detail |
|---|
protected EnvironmentVariables getEnvironmentVariables()
public SupportedWebDriver getDriverType()
getDriverType in interface Configurationpublic File loadOutputDirectoryFromSystemProperties()
loadOutputDirectoryFromSystemProperties in interface Configurationpublic int getStepDelay()
getStepDelay in interface Configurationpublic int getElementTimeout()
getElementTimeout in interface Configurationpublic boolean getUseUniqueBrowser()
getUseUniqueBrowser in interface Configurationpublic void setOutputDirectory(File outputDirectory)
setOutputDirectory in interface Configurationpublic File getOutputDirectory()
getOutputDirectory in interface Configurationpublic double getEstimatedAverageStepCount()
getEstimatedAverageStepCount in interface Configurationpublic boolean onlySaveFailingScreenshots()
onlySaveFailingScreenshots in interface Configurationpublic boolean takeVerboseScreenshots()
takeVerboseScreenshots in interface Configurationpublic void setDefaultBaseUrl(String defaultBaseUrl)
setDefaultBaseUrl in interface Configurationpublic int getRestartFrequency()
getRestartFrequency in interface Configurationpublic String getBaseUrl()
getBaseUrl in interface Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||