public class HTMLLauncher extends Object implements HTMLResultsListener
Constructor and Description |
---|
HTMLLauncher(SeleniumServer remoteControl) |
Modifier and Type | Method and Description |
---|---|
protected BrowserLauncher |
getBrowserLauncher(String browser,
String sessionId,
RemoteControlConfiguration configuration,
org.openqa.selenium.Capabilities browserOptions) |
protected FileWriter |
getFileWriter(File outputFile) |
HTMLTestResults |
getResults() |
static void |
main(String[] args) |
static int |
mainInt(String... args) |
void |
processResults(HTMLTestResults resultsParm)
Accepts HTMLTestResults for later asynchronous handling
|
String |
runHTMLSuite(String browser,
String browserURL,
File suiteFile,
File outputFile,
long timeoutInSeconds,
boolean multiWindow)
Launches a single HTML Selenium test suite.
|
String |
runHTMLSuite(String browser,
String browserURL,
String suiteURL,
File outputFile,
long timeoutInSeconds,
boolean multiWindow)
Launches a single HTML Selenium test suite.
|
void |
setResults(HTMLTestResults results) |
protected void |
sleepTight(long timeoutInMs) |
protected void |
writeResults(File outputFile) |
public HTMLLauncher(SeleniumServer remoteControl)
public String runHTMLSuite(String browser, String browserURL, String suiteURL, File outputFile, long timeoutInSeconds, boolean multiWindow) throws IOException
browser
- - the browserString ("*firefox", "*iexplore" or an executable path)browserURL
- - the start URL for the browsersuiteURL
- - the relative URL to the HTML suiteoutputFile
- - The file to which we'll output the HTML resultstimeoutInSeconds
- - the amount of time (in seconds) to wait for the browser to finishmultiWindow
- TODOIOException
- if we can't write the output fileprotected BrowserLauncher getBrowserLauncher(String browser, String sessionId, RemoteControlConfiguration configuration, org.openqa.selenium.Capabilities browserOptions)
protected void sleepTight(long timeoutInMs)
protected FileWriter getFileWriter(File outputFile) throws IOException
IOException
protected void writeResults(File outputFile) throws IOException
IOException
public String runHTMLSuite(String browser, String browserURL, File suiteFile, File outputFile, long timeoutInSeconds, boolean multiWindow) throws IOException
browser
- - the browserString ("*firefox", "*iexplore" or an executable path)browserURL
- - the start URL for the browsersuiteFile
- - a file containing the HTML suite to runoutputFile
- - The file to which we'll output the HTML resultstimeoutInSeconds
- - the amount of time (in seconds) to wait for the browser to finishmultiWindow
- - whether to run the browser in multiWindow or else framed modeIOException
- if we can't write the output filepublic void processResults(HTMLTestResults resultsParm)
processResults
in interface HTMLResultsListener
public HTMLTestResults getResults()
public void setResults(HTMLTestResults results)
Copyright © 2015. All rights reserved.