public class TestReporter extends Object
ResultReceiverServer and transforms
them into JUnit results (via RunNotifier).| Modifier and Type | Class and Description |
|---|---|
private static class |
TestReporter.JSTestFailure
A JavaScript execution failure object.
|
| Modifier and Type | Field and Description |
|---|---|
private HashMap<String,String> |
browsers |
private org.json.simple.parser.ContainerFactory |
containerFactory |
private org.junit.runner.notification.RunNotifier |
notifier |
private org.json.simple.parser.JSONParser |
parser |
private org.junit.runner.Description |
suiteDescription |
private Class<?> |
testClass |
| Constructor and Description |
|---|
TestReporter(org.junit.runner.notification.RunNotifier notifier) |
| Modifier and Type | Method and Description |
|---|---|
private org.junit.runner.Description |
describeChild(Class browser,
String description) |
private void |
finishReportingForTestSuite() |
void |
handleMessage(String data)
Receives the test results and transforms them into JUnit events.
|
private void |
reportBrowserError(Map message) |
private void |
reportTestResult(Map message) |
private void |
setBrowsers(Map browsers) |
void |
setTestClass(Class<?> testClass) |
private org.json.simple.parser.JSONParser parser
private org.junit.runner.notification.RunNotifier notifier
private Class<?> testClass
private org.junit.runner.Description suiteDescription
private org.json.simple.parser.ContainerFactory containerFactory
TestReporter(org.junit.runner.notification.RunNotifier notifier)
notifier - JUnit notifier for transformed test resultspublic void handleMessage(String data)
data - test results as JSON stringpublic void setTestClass(Class<?> testClass)
private void finishReportingForTestSuite()
private void setBrowsers(Map browsers)
private void reportBrowserError(Map message)
private void reportTestResult(Map message)
Copyright © 2014 Immobilien Scout GmbH. All rights reserved.