|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |
WEB-INF.cftags.componentmxunit.framework.TestResult
public class TestResult
Represents the results generated by TestCases. Data is stored as a ColdFusion structure and component has methods for transforming that data to HTML and XML. In General, you will not need to call most methods in this component. The primary ones you will use are: getResults(), getHtmlResults(), getJunitXmlResults(), getXmlResults()
Method Summary | |
---|---|
TestResult |
TestResult()
|
void |
addActual(string actual)
|
void |
addContent(any content)
|
void |
addError(any exception)
|
void |
addExpected(string expected)
|
void |
addFailure(any exception)
|
void |
addProcessingTime(numeric milliseconds='-1')
|
void |
addSuccess(string message)
|
void |
addTrace([any message=''])
|
void |
closeResults()
|
string |
constructTagContextElements([any exception])
|
any |
endTest(any testCase)
|
any |
getDebug()
|
numeric |
getErrors()
|
Numeric |
getFailures()
|
string |
getHTMLResults([string mxunit_root=''])
|
string |
getInstallRoot([string fullPath=''])
|
any |
getJSONResults()
|
string |
getJUnitXMLResults()
|
string |
getPackage()
|
query |
getQueryResults()
|
string |
getRawHTMLResults()
|
array |
getResults()
|
struct |
getResultsAsStruct()
|
any |
getResultsOutput(any mode='', [any mxunit_root=''])
|
Numeric |
getSuccesses()
|
string |
getTextResults()
|
string |
getXMLResults()
|
void |
mergeErrorsIntoTestResult(struct ErrorStruct)
|
string |
normalizeQueryString(struct URLScope, string outputMode)
|
void |
setDebug(Any debugData)
|
void |
setPackage(string package)
|
void |
startTest(any testCase, any componentName)
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Method Detail |
---|
public TestResult TestResult()
public void addActual(string actual)
actual
public void addContent(any content)
content
public void addError(any exception)
exception
public void addExpected(string expected)
expected
public void addFailure(any exception)
exception
public void addProcessingTime(numeric milliseconds='-1')
milliseconds
public void addSuccess(string message)
message
public void addTrace([any message=''])
message
public void closeResults()
public string constructTagContextElements([any exception])
exception
public any endTest(any testCase)
testCase
public any getDebug()
public numeric getErrors()
public Numeric getFailures()
public string getHTMLResults([string mxunit_root=''])
mxunit_root
public string getInstallRoot([string fullPath=''])
fullPath
- Used for testing, really.public any getJSONResults()
public string getJUnitXMLResults()
public string getPackage()
public query getQueryResults()
public string getRawHTMLResults()
public array getResults()
public struct getResultsAsStruct()
public any getResultsOutput(any mode='', [any mxunit_root=''])
mode
mxunit_root
public Numeric getSuccesses()
public string getTextResults()
public string getXMLResults()
public void mergeErrorsIntoTestResult(struct ErrorStruct)
ErrorStruct
public string normalizeQueryString(struct URLScope, string outputMode)
URLScope
- the URL scopeoutputMode
- the output mode to append to the query stringpublic void setDebug(Any debugData)
debugData
public void setPackage(string package)
package
public void startTest(any testCase, any componentName)
testCase
componentName
|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |