|
||||||||||
| 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 int |
DEFAULT_ELEMENT_TIMEOUT_SECONDS
Default timeout when waiting for AJAX elements in pages, in milliseconds. |
static Integer |
DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
|
static String |
DEFAULT_WEBDRIVER_DRIVER
The default browser is Firefox. |
static String |
MAX_RETRIES
|
static String |
OUTPUT_DIRECTORY_PROPERTY
Use this property to define the output directory in which reports will be stored. |
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. |
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 | |
|---|---|
Configuration |
copy()
|
String |
getBaseUrl()
This is the URL where test cases start. |
int |
getCurrentTestCount()
This is the URL where test cases start. |
SupportedWebDriver |
getDriverType()
Get the currently-configured browser type. |
int |
getElementTimeout()
|
EnvironmentVariables |
getEnvironmentVariables()
|
double |
getEstimatedAverageStepCount()
|
File |
getOutputDirectory()
The output directory is where the test runner writes the XML and HTML reports to. |
int |
getRestartFrequency()
|
com.google.common.base.Optional<TakeScreenshots> |
getScreenshotLevel()
How often should screenshots be taken. |
int |
getStepDelay()
|
boolean |
getUseUniqueBrowser()
|
File |
loadOutputDirectoryFromSystemProperties()
Where should the reports go? |
int |
maxRetries()
|
boolean |
onlySaveFailingScreenshots()
|
void |
setDefaultBaseUrl(String defaultBaseUrl)
Override the default base URL manually. |
void |
setIfUndefined(String property,
String value)
|
void |
setOutputDirectory(File outputDirectory)
|
boolean |
storeHtmlSourceCode()
|
boolean |
takeVerboseScreenshots()
Take a screenshot for each action. |
Configuration |
withEnvironmentVariables(EnvironmentVariables environmentVariables)
|
| 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 static final Integer DEFAULT_ESTIMATED_AVERAGE_STEP_COUNT
public static final String OUTPUT_DIRECTORY_PROPERTY
public static final String REFUSE_UNTRUSTED_CERTIFICATES
public static final String MAX_RETRIES
| Constructor Detail |
|---|
@Inject public SystemPropertiesConfiguration(EnvironmentVariables environmentVariables)
| Method Detail |
|---|
public Configuration copy()
copy in interface Configurationpublic Configuration withEnvironmentVariables(EnvironmentVariables environmentVariables)
withEnvironmentVariables in interface Configurationpublic EnvironmentVariables getEnvironmentVariables()
getEnvironmentVariables in interface Configurationpublic int maxRetries()
maxRetries in interface Configurationpublic SupportedWebDriver getDriverType()
getDriverType in interface Configurationpublic File loadOutputDirectoryFromSystemProperties()
public 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()
Configuration
takeVerboseScreenshots in interface Configurationpublic com.google.common.base.Optional<TakeScreenshots> getScreenshotLevel()
Configuration
getScreenshotLevel in interface Configurationpublic boolean storeHtmlSourceCode()
storeHtmlSourceCode in interface Configuration
public 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()
Configuration
getCurrentTestCount 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 | |||||||||