|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.selenium.server.htmlrunner.HTMLLauncher
public class HTMLLauncher
Runs HTML Selenium test suites.
Constructor Summary | |
---|---|
HTMLLauncher(SeleniumServer remoteControl)
|
Method Summary | |
---|---|
protected BrowserLauncher |
getBrowserLauncher(java.lang.String browser,
java.lang.String sessionId,
RemoteControlConfiguration configuration,
Capabilities browserOptions)
|
protected java.io.FileWriter |
getFileWriter(java.io.File outputFile)
|
HTMLTestResults |
getResults()
|
static void |
main(java.lang.String[] args)
|
static int |
mainInt(java.lang.String... args)
|
void |
processResults(HTMLTestResults resultsParm)
Accepts HTMLTestResults for later asynchronous handling |
java.lang.String |
runHTMLSuite(java.lang.String browser,
java.lang.String browserURL,
java.io.File suiteFile,
java.io.File outputFile,
long timeoutInSeconds,
boolean multiWindow)
Launches a single HTML Selenium test suite. |
java.lang.String |
runHTMLSuite(java.lang.String browser,
java.lang.String browserURL,
java.lang.String suiteURL,
java.io.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(java.io.File outputFile)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLLauncher(SeleniumServer remoteControl)
Method Detail |
---|
public java.lang.String runHTMLSuite(java.lang.String browser, java.lang.String browserURL, java.lang.String suiteURL, java.io.File outputFile, long timeoutInSeconds, boolean multiWindow) throws java.io.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
- TODO
java.io.IOException
- if we can't write the output fileprotected BrowserLauncher getBrowserLauncher(java.lang.String browser, java.lang.String sessionId, RemoteControlConfiguration configuration, Capabilities browserOptions)
protected void sleepTight(long timeoutInMs)
protected java.io.FileWriter getFileWriter(java.io.File outputFile) throws java.io.IOException
java.io.IOException
protected void writeResults(java.io.File outputFile) throws java.io.IOException
java.io.IOException
public java.lang.String runHTMLSuite(java.lang.String browser, java.lang.String browserURL, java.io.File suiteFile, java.io.File outputFile, long timeoutInSeconds, boolean multiWindow) throws java.io.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 mode
java.io.IOException
- if we can't write the output filepublic void processResults(HTMLTestResults resultsParm)
processResults
in interface HTMLResultsListener
public static int mainInt(java.lang.String... args) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public HTMLTestResults getResults()
public void setResults(HTMLTestResults results)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |