A B C D E F G H I J L M N O P R S T W X

A

AbstractBrowser - Class in org.stjs.testing.driver.browser
 
AbstractBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.AbstractBrowser
 
addResult(TestResult) - Method in class org.stjs.testing.driver.TestResultCollection
 
addURL(URL) - Method in class org.stjs.testing.driver.WebAppClassLoader
 
appendScriptTag(StringBuilder, String) - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
AsyncProcess - Interface in org.stjs.testing.driver
 
awaitExecutionResult() - Method in class org.stjs.testing.driver.MultiTestMethod
Blocks until all browsers have called notifyExecutionResult() and returns a TestResultCollection containing all the results from all the browsers.
awaitNextTest() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
Blocks until JUnit notifies this browser session that either a new test must be executed (ie: executeTest() is called), or there are no more tests (ie: notifyNoMoreTests() is called).

B

BLANK_URI - Static variable in class org.stjs.testing.driver.HttpLongPollingServer
 
Browser - Interface in org.stjs.testing.driver.browser
Handles all the details of starting and stopping a testing session as well as executing individual tests for the specific browser represented by the implementation of this interface.
buildException(ClassLoader) - Method in class org.stjs.testing.driver.TestResult
 
buildException(ClassLoader) - Method in class org.stjs.testing.driver.TestResultCollection
 
buildProcess(BrowserLocator, String, String) - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
buildResult(Map<String, String>, HttpExchange) - Method in class org.stjs.testing.driver.browser.AbstractBrowser
Reads the result of the last unit test from the specified HTTP request.
buildResult(Map<String, String>, HttpExchange) - Method in class org.stjs.testing.driver.browser.PhantomjsBrowser
 

C

ChromeBrowser - Class in org.stjs.testing.driver.browser
 
ChromeBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.ChromeBrowser
 
copy(ClassLoader, String, Writer) - Static method in class org.stjs.testing.driver.StreamUtils
 
copy(ClassLoader, String, HttpExchange) - Static method in class org.stjs.testing.driver.StreamUtils
 

D

DesktopDefaultBrowser - Class in org.stjs.testing.driver.browser
 
DesktopDefaultBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.DesktopDefaultBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.ChromeBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.DesktopDefaultBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.FirefoxBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.HeadlessChromeBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.HeadlessFirefoxBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.PhantomjsBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.RemoteBrowser
 
doStart() - Method in class org.stjs.testing.driver.browser.RhinoBrowser
 
DriverConfiguration - Class in org.stjs.testing.driver
this is a wrapper around the configuration files stjs-test.properties.
DriverConfiguration(Class<?>) - Constructor for class org.stjs.testing.driver.DriverConfiguration
 

E

executeTest(MultiTestMethod) - Method in interface org.stjs.testing.driver.browser.Browser
Executes the specified test method on this browser, possibly asynchronously.
executeTest(MultiTestMethod) - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
Notifies this browser that the specified test must be executed.

F

FirefoxBrowser - Class in org.stjs.testing.driver.browser
 
FirefoxBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.FirefoxBrowser
 

G

getBrowserCount() - Method in class org.stjs.testing.driver.DriverConfiguration
 
getBrowsers() - Method in class org.stjs.testing.driver.DriverConfiguration
 
getBrowsers() - Method in class org.stjs.testing.driver.JUnitSession
 
getClassLoader() - Method in class org.stjs.testing.driver.DriverConfiguration
 
getConfig() - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
getConfig() - Method in interface org.stjs.testing.driver.browser.Browser
 
getConfig() - Method in class org.stjs.testing.driver.JUnitSession
 
getDependency(Class<T>) - Method in class org.stjs.testing.driver.JUnitSession
 
getDisplay() - Method in class org.stjs.testing.driver.Xvfb
 
getId() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
getInstance() - Static method in class org.stjs.testing.driver.JUnitSession
 
getMessage() - Method in class org.stjs.testing.driver.TestResult
 
getMethod() - Method in class org.stjs.testing.driver.MultiTestMethod
 
getMethodUnderExecution() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
Returns the test is currently being executed by this browser.
getPort() - Method in class org.stjs.testing.driver.DriverConfiguration
 
getProperty(String) - Method in class org.stjs.testing.driver.DriverConfiguration
 
getProperty(String, String) - Method in class org.stjs.testing.driver.DriverConfiguration
 
getResult(int) - Method in class org.stjs.testing.driver.TestResultCollection
 
getServerURL() - Method in class org.stjs.testing.driver.DriverConfiguration
 
getSharedDependencies() - Method in interface org.stjs.testing.driver.browser.Browser
Returns a list of AsyncProcess that the JUnit session must start before attempting to start this browser.
getSharedDependencies() - Method in class org.stjs.testing.driver.browser.HeadlessBrowser
 
getSharedDependencies() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
getSharedDependencies() - Method in class org.stjs.testing.driver.browser.PhantomjsBrowser
 
getStartPageUri(long, boolean) - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
getStartPageUrl(long, boolean) - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
getTestClass() - Method in class org.stjs.testing.driver.MultiTestMethod
 
getTestClassName() - Method in class org.stjs.testing.driver.TestResultCollection
 
getTestMethodName() - Method in class org.stjs.testing.driver.TestResultCollection
 
getTestTimeout() - Method in class org.stjs.testing.driver.DriverConfiguration
 
getUserAgent() - Method in class org.stjs.testing.driver.TestResult
 
getWaitForBrowser() - Method in class org.stjs.testing.driver.DriverConfiguration
 

H

HeadlessBrowser - Class in org.stjs.testing.driver.browser
 
HeadlessBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.HeadlessBrowser
 
HeadlessChromeBrowser - Class in org.stjs.testing.driver.browser
 
HeadlessChromeBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.HeadlessChromeBrowser
 
HeadlessFirefoxBrowser - Class in org.stjs.testing.driver.browser
 
HeadlessFirefoxBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.HeadlessFirefoxBrowser
 
HTMLFixture - Annotation Type in org.stjs.testing.annotation
 
HttpLongPollingServer - Class in org.stjs.testing.driver
Manages the HTTP server that is used to send tests to the browsers.
HttpLongPollingServer(DriverConfiguration) - Constructor for class org.stjs.testing.driver.HttpLongPollingServer
Configures and starts the HTTP server

I

isDebugEnabled() - Method in class org.stjs.testing.driver.DriverConfiguration
 
isOk() - Method in class org.stjs.testing.driver.TestResult
 
isOk() - Method in class org.stjs.testing.driver.TestResultCollection
 
isRunningOnWindows() - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
isSkipIfNoBrowser() - Method in class org.stjs.testing.driver.DriverConfiguration
 
isStartBrowser() - Method in class org.stjs.testing.driver.DriverConfiguration
 

J

JSException - Exception in org.stjs.testing
A placeholder class for javascript exceptions.
JSException() - Constructor for exception org.stjs.testing.JSException
 
JUnitSession - Class in org.stjs.testing.driver
Represents one session of unit testing that may span multiple tests in multiple classes, and performs startup and cleanup actions based on the JUnit lifecycle.

L

LongPollingBrowser - Class in org.stjs.testing.driver.browser
Represents a testing session opened with one instance of a browser that uses long-polling to fetch new tests to execute from the HTTP server.
LongPollingBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.LongPollingBrowser
 

M

markAsDead() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
markAsDead(Throwable, String) - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
methodBlock(FrameworkMethod) - Method in class org.stjs.testing.driver.STJSTestDriverRunner
 
MultiTestMethod - Class in org.stjs.testing.driver
Coordinates the execution of one unit test across several browsers.
MultiTestMethod(TestClass, FrameworkMethod, int) - Constructor for class org.stjs.testing.driver.MultiTestMethod
Creates a new MultiTestMethod that reprents the specified unit test of the specified class, executed on the specified number of browsers.

N

NEXT_TEST_URI - Static variable in class org.stjs.testing.driver.HttpLongPollingServer
 
notifyExecutionResult(TestResult) - Method in class org.stjs.testing.driver.MultiTestMethod
Called by the browsers when they have finished executing their unit test.
notifyNoMoreTests() - Method in interface org.stjs.testing.driver.browser.Browser
Notifies this browser that there are no more tests to execute.
notifyNoMoreTests() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
Notifies this browser that there are no more tests to execute.

O

org.stjs.testing - package org.stjs.testing
 
org.stjs.testing.annotation - package org.stjs.testing.annotation
 
org.stjs.testing.driver - package org.stjs.testing.driver
 
org.stjs.testing.driver.browser - package org.stjs.testing.driver.browser
 

P

PhantomjsBrowser - Class in org.stjs.testing.driver.browser
 
PhantomjsBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.PhantomjsBrowser
 
processSet(Class<? extends AsyncProcess>...) - Static method in class org.stjs.testing.driver.browser.AbstractBrowser
 
PROP_CHROME_BIN - Static variable in class org.stjs.testing.driver.browser.ChromeBrowser
 
PROP_FIREFOX_BIN - Static variable in class org.stjs.testing.driver.browser.FirefoxBrowser
 
PROP_PHANTOMJS_BIN - Static variable in class org.stjs.testing.driver.browser.PhantomjsBrowser
 

R

registerBrowserSession(LongPollingBrowser) - Method in class org.stjs.testing.driver.HttpLongPollingServer
Registers the specified browser session with this HTTP server, so that this server knows how to respond to HTTP requests containing the specified session's id.
registerWithLongPollingServer() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
 
RemoteBrowser - Class in org.stjs.testing.driver.browser
 
RemoteBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.RemoteBrowser
 
RhinoBrowser - Class in org.stjs.testing.driver.browser
This browser uses Rhino Javascript engine and env.js to run a headless browser inside the virtual machine.
RhinoBrowser(DriverConfiguration) - Constructor for class org.stjs.testing.driver.browser.RhinoBrowser
 
run(RunNotifier) - Method in class org.stjs.testing.driver.STJSTestDriverRunner
 
runnerCompleted(STJSTestDriverRunner) - Method in class org.stjs.testing.driver.JUnitSession
Called when the specified runner has finished executing all of its tests.
runnerInstantiated(STJSTestDriverRunner) - Method in class org.stjs.testing.driver.JUnitSession
Called when a runner has been instantiated.

S

Scripts - Annotation Type in org.stjs.testing.annotation
Deprecated. 
ScriptsAfter - Annotation Type in org.stjs.testing.annotation
 
ScriptsBefore - Annotation Type in org.stjs.testing.annotation
 
sendNoMoreTestFixture(HttpExchange) - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
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.
sendNoMoreTestFixture(HttpExchange) - Method in class org.stjs.testing.driver.browser.PhantomjsBrowser
 
sendResponse(String, HttpExchange) - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
sendTestFixture(MultiTestMethod, HttpExchange) - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
Writes to the HTTP response the HTML and/or javascript code that is necessary for the browser to execute the specified test.
setDebugEnabled(boolean) - Method in class org.stjs.testing.driver.DriverConfiguration
 
setPort(int) - Method in class org.stjs.testing.driver.DriverConfiguration
 
setSkipIfNoBrowser(boolean) - Method in class org.stjs.testing.driver.DriverConfiguration
 
setStartBrowser(boolean) - Method in class org.stjs.testing.driver.DriverConfiguration
 
setTestTimeout(int) - Method in class org.stjs.testing.driver.DriverConfiguration
 
setWaitForBrowser(int) - Method in class org.stjs.testing.driver.DriverConfiguration
 
size() - Method in class org.stjs.testing.driver.TestResultCollection
 
start() - Method in interface org.stjs.testing.driver.AsyncProcess
 
start() - Method in interface org.stjs.testing.driver.browser.Browser
Starts the browser session.
start() - Method in class org.stjs.testing.driver.browser.LongPollingBrowser
Starts the browser session.
start() - Method in class org.stjs.testing.driver.HttpLongPollingServer
 
start() - Method in class org.stjs.testing.driver.Xvfb
 
startProcess(BrowserLocator, String, String) - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
startProcess(ProcessBuilder) - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
startProcess(BrowserLocator, String, String) - Method in class org.stjs.testing.driver.browser.HeadlessBrowser
 
STJSTestDriverRunner - Class in org.stjs.testing.driver
add the STJSBridge annotation only to allow it to be present in the junit annotation
STJSTestDriverRunner(Class<?>) - Constructor for class org.stjs.testing.driver.STJSTestDriverRunner
 
stop() - Method in interface org.stjs.testing.driver.AsyncProcess
 
stop() - Method in class org.stjs.testing.driver.browser.AbstractBrowser
 
stop() - Method in interface org.stjs.testing.driver.browser.Browser
Stops this browsers and performs cleanup operations, if any.
stop() - Method in class org.stjs.testing.driver.browser.HeadlessBrowser
 
stop() - Method in class org.stjs.testing.driver.browser.PhantomjsBrowser
 
stop() - Method in class org.stjs.testing.driver.HttpLongPollingServer
 
stop() - Method in class org.stjs.testing.driver.Xvfb
 
StreamUtils - Class in org.stjs.testing.driver
utils to copy different urls to an output stream

T

targetDirectory - Static variable in class org.stjs.testing.driver.STJSTestDriverRunner
 
testCompleted(STJSTestDriverRunner, FrameworkMethod, TestResultCollection) - Method in class org.stjs.testing.driver.JUnitSession
Called after a JUnit test has been executed by all the browsers
TestResult - Class in org.stjs.testing.driver
 
TestResult(String, String, String, boolean) - Constructor for class org.stjs.testing.driver.TestResult
 
TestResultCollection - Class in org.stjs.testing.driver
 
TestResultCollection(String, String) - Constructor for class org.stjs.testing.driver.TestResultCollection
 
testStarting(STJSTestDriverRunner, FrameworkMethod) - Method in class org.stjs.testing.driver.JUnitSession
Called before a JUnit test is dispatched to the browsers.
toString() - Method in class org.stjs.testing.driver.MultiTestMethod
 
toString() - Method in class org.stjs.testing.driver.TestResult
 

W

WEBAPP_DIR - Static variable in class org.stjs.testing.driver.WebAppClassLoader
 
WebAppClassLoader - Class in org.stjs.testing.driver
This class loader allows the loading of files from the src/main/webapp folder, target/stjs-test and war dependencies
WebAppClassLoader(URL[], ClassLoader, boolean) - Constructor for class org.stjs.testing.driver.WebAppClassLoader
 

X

Xvfb - Class in org.stjs.testing.driver
Controls an Xvfb (X virtual frame buffer) server so that any browser can be started in a headless way on Linux.
Xvfb(DriverConfiguration) - Constructor for class org.stjs.testing.driver.Xvfb
 

A B C D E F G H I J L M N O P R S T W X

Copyright © 2013. All Rights Reserved.