public class HTMLLauncher
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HTMLLauncher.Args |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.logging.Logger |
log |
private org.seleniumhq.jetty9.server.Server |
server |
| Constructor and Description |
|---|
HTMLLauncher() |
| Modifier and Type | Method and Description |
|---|---|
private org.openqa.selenium.WebDriver |
createDriver(java.lang.String browser) |
private java.net.URL |
determineSuiteUrl(java.lang.String startURL,
java.lang.String suiteURL) |
static void |
main(java.lang.String[] args) |
static int |
mainInt(java.lang.String... args) |
java.lang.String |
runHTMLSuite(java.lang.String browser,
java.lang.String startURL,
java.lang.String suiteURL,
java.io.File outputFile,
long timeoutInSeconds,
java.lang.String userExtensions)
Launches a single HTML Selenium test suite.
|
private static boolean |
validateArgs(HTMLLauncher.Args processed) |
private java.net.URL |
verifySuiteUrl(java.net.URL url) |
private static java.util.logging.Logger log
private org.seleniumhq.jetty9.server.Server server
public java.lang.String runHTMLSuite(java.lang.String browser,
java.lang.String startURL,
java.lang.String suiteURL,
java.io.File outputFile,
long timeoutInSeconds,
java.lang.String userExtensions)
throws java.io.IOException
browser - - the browserString ("*firefox", "*iexplore" or an executable path)startURL - - 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 finishjava.io.IOException - if we can't write the output fileprivate java.net.URL determineSuiteUrl(java.lang.String startURL,
java.lang.String suiteURL)
throws java.io.IOException
java.io.IOExceptionprivate java.net.URL verifySuiteUrl(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic static int mainInt(java.lang.String... args)
throws java.lang.Exception
java.lang.Exceptionprivate static boolean validateArgs(HTMLLauncher.Args processed)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprivate org.openqa.selenium.WebDriver createDriver(java.lang.String browser)