public interface DriverConfiguration
TestRunnerDriver
.Modifier and Type | Method and Description |
---|---|
void | setAlertEmail(java.lang.String recipient) Sets recipient email address for batch report email. |
void | setBatchCommit(boolean commit) Sets whether this batch run should be committed to the batchRun DS. |
void | setBatchLog(java.lang.String message) Sets the log message to be entered into the BatchRun DS for this batch run, You may include any details or description for the batch run. |
void | setBranch(java.lang.String branch) Sets the branch identifier to be entered in the BatchRun DS for this batch run, and used to compare against previous runs (if comparing differences). |
void | setBrowser(java.lang.String browser) Sets the browser that will be used by Selenium to run the HTML scripts. |
void | setCaptureScreenshot() Configures TestRunner to capture a PNG screenshot of the browser if a Selenium test fails, adding the image to the test result record. |
void | setCcEmail(java.lang.String recipient) Sets recipient email address for batch report email. |
void | setFileRoot(java.lang.String path) Sets the root directory for all other file system paths. |
void | setFiles(java.lang.String[] files) Specifies an explicit set of Selenium HTML test script files to run. |
void | setHttpPort(int port) Sets the HTTP port of the target to which TestRunner should connect when running Selenium open() commands in the Selenium HTML scripts. |
void | setHttpTarget(java.lang.String target) Sets the HTTP target webserver to which TestRunner should connect when running Selenium open() commands in the Selenium HTML scripts. |
void | setMailHost(java.lang.String mailHost) Sets the mail host to use when sending mail. |
void | setMailSubject(java.lang.String subject) Sets subject line base to use when sending the email reporting batch results. |
void | setMailTemplate(java.lang.String template) Sets velocity template file to use for generation of the batch report email body. |
void | setMaximizeBrowser(boolean maximize) Sets whether to maximize the browser for Selenium tests. |
void | setNoEmail() Disables sending any email for this batch run. |
void | setRepeatEmail(java.lang.String recipient) Sets recipient email address for batch report email. |
void | setSaveMessages() Configures TestRunner to save the ISC Console Developer Messages to each test record for diagnostic purposes. |
void | setSeleniumTemplateFile(java.lang.String path) Sets the path to the template file for the Selenium HTML scripts. |
void | setSeleniumTimeout(int timeout) Sets the timeout for the Selenium test as a whole, in seconds. |
void | setSenderEmail(java.lang.String sender) Sets sender email address for batch report email. |
void | setServerFileRoot(java.lang.String path) Sets the root directory on the target server used for looking up relative URLs in Selenium commands. |
void | setServerLogMode(java.lang.String mode) Configures TestRunner to collect the ISC Server Log Messages for each test for diagnostic purposes. |
void | setServerLogOutputMethod(java.lang.String out) Configures output method that TestRunner will use to report/persist any server log messages; only has an effect for server log modes of "some" or "all". |
void | setTestRoot(java.lang.String path) Sets the Selenium HTML test script root directory. |
void | setTimestamp(java.util.Date timestamp) Specifies which previous batch run should be used as the baseline to compare against the current batch run. |
void | setUserExtensionsFile(java.lang.String path) Deprecated. the supplied extensions file has no impact on TestRunner now that it's based on our SmartClientWebDriver class; this setter will be removed in the next release of SmartClient. |
void | setUserName(java.lang.String userName) Sets the user name to be entered into the BatchRun DS for this batch run. |
void | setWebDriverLegacyMode(boolean legacyMode) Sets whether to use legacy mode for Firefox browser. |
void setFileRoot(java.lang.String path)
path
- file system root directory for TestRunnervoid setTestRoot(java.lang.String path)
If the driver is being run in s servlet container, then this path must use Unix-style path separators (forward slashes) and be absolute (starting with a separator). In the host filesystem, the path will be interpreted relative to the root container directory.
path
- test script root directoryvoid setServerFileRoot(java.lang.String path)
path
- server file system root directoryvoid setSeleniumTemplateFile(java.lang.String path)
path
- path to selenium template@Deprecated void setUserExtensionsFile(java.lang.String path)
SmartClientWebDriver
class; this setter will be removed in the next release of SmartClient.path
- path to user extensions filevoid setHttpTarget(java.lang.String target)
target
- HTTP targetvoid setHttpPort(int port)
port
- HTTP portvoid setFiles(java.lang.String[] files)
files
- test script files to runvoid setUserName(java.lang.String userName)
userName
- name of user for batch log and email purposesvoid setBatchLog(java.lang.String message)
message
- log message to commit for this batch runvoid setBranch(java.lang.String branch)
branch
- branch identifier to commit for this batch runvoid setTimestamp(java.util.Date timestamp)
timestamp
- desired timestamp of baseline batch to compare with currentvoid setBrowser(java.lang.String browser)
browser
- browser specification (passed through to Selenium)void setWebDriverLegacyMode(boolean legacyMode)
legacyMode
- whether to use legacy mode for Firefox browservoid setBatchCommit(boolean commit)
commit
- whether to commitvoid setAlertEmail(java.lang.String recipient)
recipient
- email addressvoid setRepeatEmail(java.lang.String recipient)
recipient
- email addressvoid setCcEmail(java.lang.String recipient)
recipient
- email addressvoid setSenderEmail(java.lang.String sender)
sender
- email addressvoid setNoEmail()
void setMailHost(java.lang.String mailHost)
mailHost
- mail hostvoid setMailSubject(java.lang.String subject)
subject
- subject linevoid setMailTemplate(java.lang.String template)
template
- batch report mail template filevoid setSaveMessages()
void setServerLogMode(java.lang.String mode)
mode
- sets collection modevoid setServerLogOutputMethod(java.lang.String out)
out
- sets output methodvoid setCaptureScreenshot()
void setMaximizeBrowser(boolean maximize)
maximize
- whether to maximize the browservoid setSeleniumTimeout(int timeout)
timeout
- sets timeout in seconds