MXUnit 2.1.3 (Generated: 09/27/2012)

mxunit.framework
Class TestResult

WEB-INF.cftags.component
        extended by mxunit.framework.TestResult
Direct Known Subclasses:
TestResult , TestResult , TestResult , TestResult , TestResult

public class TestResult
extends WEB-INF.cftags.component

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

TestResult

public TestResult TestResult()


addActual

public void addActual(string actual)

Parameters:
actual

addContent

public void addContent(any content)

Parameters:
content

addError

public void addError(any exception)

Parameters:
exception

addExpected

public void addExpected(string expected)

Parameters:
expected

addFailure

public void addFailure(any exception)

Parameters:
exception

addProcessingTime

public void addProcessingTime(numeric milliseconds='-1')

Parameters:
milliseconds

addSuccess

public void addSuccess(string message)

Parameters:
message

addTrace

public void addTrace([any message=''])

Parameters:
message

closeResults

public void closeResults()


constructTagContextElements

public string constructTagContextElements([any exception])

Parameters:
exception

endTest

public any endTest(any testCase)

Parameters:
testCase

getDebug

public any getDebug()


getErrors

public numeric getErrors()


getFailures

public Numeric getFailures()


getHTMLResults

public string getHTMLResults([string mxunit_root=''])

Parameters:
mxunit_root

getInstallRoot

public string getInstallRoot([string fullPath=''])

Parameters:
fullPath - Used for testing, really.

getJSONResults

public any getJSONResults()


getJUnitXMLResults

public string getJUnitXMLResults()


getPackage

public string getPackage()


getQueryResults

public query getQueryResults()


getRawHTMLResults

public string getRawHTMLResults()


getResults

public array getResults()


getResultsAsStruct

public struct getResultsAsStruct()


getResultsOutput

public any getResultsOutput(any mode='', [any mxunit_root=''])

Parameters:
mode
mxunit_root

getSuccesses

public Numeric getSuccesses()


getTextResults

public string getTextResults()


getXMLResults

public string getXMLResults()


mergeErrorsIntoTestResult

public void mergeErrorsIntoTestResult(struct ErrorStruct)

Parameters:
ErrorStruct

normalizeQueryString

public string normalizeQueryString(struct URLScope, string outputMode)

Parameters:
URLScope - the URL scope
outputMode - the output mode to append to the query string

setDebug

public void setDebug(Any debugData)

Parameters:
debugData

setPackage

public void setPackage(string package)

Parameters:
package

startTest

public void startTest(any testCase, any componentName)

Parameters:
testCase
componentName

MXUnit 2.1.3 (Generated: 09/27/2012)