public class TestSuite extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REPORT_DETAIL_ALL |
static String |
REPORT_DETAIL_FAILURES_ONLY |
static String |
REPORT_DETAIL_PER_FIXTURE |
static String |
REPORT_DETAIL_SUMMARY |
Constructor and Description |
---|
TestSuite(TestReport report) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletRequest |
getCurrentRequest()
Returns the current page request
|
String |
getCurrentRequestUrl()
Retrieves the full URL including parameters for the current request
|
TestReport |
getReport() |
String |
getReportDetail()
Determines how much detail is shown in the report
|
Writer |
getWriter()
The writer to use with this test suite
|
boolean |
isDebug() |
boolean |
isRunningSuite() |
boolean |
isStopOnException() |
boolean |
isStopRunning() |
void |
onDebug(String nodeText,
String message)
Records a debug message in the report
|
void |
onException(String nodeText,
String message,
Throwable exception)
Records an exception in the report
|
void |
onFailure(String nodeText,
String actualValue,
String message)
Records a test failure in the report
|
void |
onPass(String nodeText,
String message)
Records a test pass in the report
|
void |
setCurrentRequest(javax.servlet.http.HttpServletRequest currentRequest)
Sets the current page request
|
void |
setDebug(boolean debug) |
void |
setReport(TestSuiteReport report)
Sets the current suite report
|
void |
setReportDetail(String reportDetail)
Determines how much detail is shown in the report
|
void |
setStopOnException(boolean stopOnException) |
void |
setStopRunning(boolean stopRunning) |
void |
setWriter(Writer writer)
Sets the writer used by this test suite
|
public static final String REPORT_DETAIL_ALL
public static final String REPORT_DETAIL_PER_FIXTURE
public static final String REPORT_DETAIL_SUMMARY
public static final String REPORT_DETAIL_FAILURES_ONLY
public TestSuite(TestReport report)
public Writer getWriter()
public void setWriter(Writer writer)
writer
- the writer to usepublic TestReport getReport()
public void setReport(TestSuiteReport report)
report
- the current suite reportpublic boolean isRunningSuite()
public boolean isDebug()
public void setDebug(boolean debug)
public void onException(String nodeText, String message, Throwable exception)
nodeText
- the current cell on the tablemessage
- a message to record with the exceptionexception
- the exception to recordpublic void onFailure(String nodeText, String actualValue, String message)
nodeText
- the current cell text on the tableactualValue
- the value that was returned from the executionmessage
- a message to record with the failurepublic void onPass(String nodeText, String message)
nodeText
- the current cell text on the tablemessage
- a message to record with the passpublic void onDebug(String nodeText, String message)
nodeText
- the current cell text on the tablemessage
- a message to record with the passpublic String getReportDetail()
public void setReportDetail(String reportDetail)
reportDetail
- ne of the detail levels, either REPORT_DETAIL_ALL, REPORT_DETAIL_TEST_FIXTURE or REPORT_DETAIL_TEST_SUITEpublic javax.servlet.http.HttpServletRequest getCurrentRequest()
public void setCurrentRequest(javax.servlet.http.HttpServletRequest currentRequest)
public String getCurrentRequestUrl()
public boolean isStopRunning()
public void setStopRunning(boolean stopRunning)
public boolean isStopOnException()
public void setStopOnException(boolean stopOnException)
Copyright © 2003–2020 Atlassian. All rights reserved.