|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.server.htmlrunner.HTMLLauncher
public class HTMLLauncher
Runs HTML Selenium test suites.
Constructor Summary | |
---|---|
HTMLLauncher(SeleniumServer remoteControl)
|
Method Summary | |
---|---|
protected org.openqa.selenium.browserlaunchers.BrowserLauncher |
getBrowserLauncher(String browser,
String sessionId,
RemoteControlConfiguration configuration,
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)
|
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 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
- TODO
IOException
- if we can't write the output fileprotected org.openqa.selenium.browserlaunchers.BrowserLauncher getBrowserLauncher(String browser, String sessionId, RemoteControlConfiguration configuration, 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 mode
IOException
- if we can't write the output filepublic void processResults(HTMLTestResults resultsParm)
processResults
in interface HTMLResultsListener
public static int mainInt(String... args) throws Exception
Exception
public static void main(String[] args) throws Exception
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 |