public class PhantomjsBrowser extends LongPollingBrowser
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_PHANTOMJS_BIN |
| Constructor and Description |
|---|
PhantomjsBrowser(DriverConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
TestResult |
buildResult(Map<String,String> queryStringParameters,
com.sun.net.httpserver.HttpExchange exchange)
Reads the result of the last unit test from the specified HTTP request.
|
void |
doStart() |
Set<Class<? extends AsyncProcess>> |
getSharedDependencies()
Returns a list of AsyncProcess that the JUnit session must start before attempting to start this browser.
|
void |
sendNoMoreTestFixture(com.sun.net.httpserver.HttpExchange exchange)
Writes to the HTTP response the HTML and/or javascript code that is necessary for the browser understand that there will be no more tests.
|
void |
stop()
Stops this browsers and performs cleanup operations, if any.
|
awaitNextTest, executeTest, getId, getMethodUnderExecution, getStartPageUri, getStartPageUrl, markAsDead, markAsDead, notifyNoMoreTests, registerWithLongPollingServer, sendTestFixture, startappendScriptTag, buildProcess, getConfig, isRunningOnWindows, processSet, sendResponse, startProcess, startProcesspublic static final String PROP_PHANTOMJS_BIN
public PhantomjsBrowser(DriverConfiguration config)
public void doStart()
throws org.junit.runners.model.InitializationError
doStart in class LongPollingBrowserorg.junit.runners.model.InitializationErrorpublic void sendNoMoreTestFixture(com.sun.net.httpserver.HttpExchange exchange)
throws IOException
LongPollingBrowsersendNoMoreTestFixture in class LongPollingBrowserexchange - contains the HTTP response that must be written toIOExceptionpublic void stop()
Browserstop in interface AsyncProcessstop in interface Browserstop in class AbstractBrowserpublic TestResult buildResult(Map<String,String> queryStringParameters, com.sun.net.httpserver.HttpExchange exchange)
AbstractBrowserbuildResult in class AbstractBrowserpublic Set<Class<? extends AsyncProcess>> getSharedDependencies()
BrowsergetSharedDependencies in interface BrowsergetSharedDependencies in class LongPollingBrowserCopyright © 2015. All Rights Reserved.