WEB-INF.cftags.component coldbox.system.testing.TestResult
******************************************************************************* Copyright 2005-2009 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* This object manages the results of testing with TestBox
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
struct
|
bundleStats
|
true
|
false
|
|
numeric
|
endTime
|
true
|
false
|
|
array
|
labels
|
true
|
false
|
|
numeric
|
startTime
|
true
|
false
|
|
array
|
testBundles
|
true
|
false
|
|
array
|
testSpecs
|
true
|
false
|
|
array
|
testSuites
|
true
|
false
|
|
numeric
|
totalBundles
|
true
|
false
|
|
numeric
|
totalDuration
|
true
|
false
|
|
numeric
|
totalError
|
true
|
false
|
|
numeric
|
totalFail
|
true
|
false
|
|
numeric
|
totalPass
|
true
|
false
|
|
numeric
|
totalSkipped
|
true
|
false
|
|
numeric
|
totalSpecs
|
true
|
false
|
|
numeric
|
totalSuites
|
true
|
false
|
Constructor Summary | |
---|---|
init([numeric bundleCount='0'], [array labels='[runtime expression]'], [array testBundles='[runtime expression]'], [array testSuites='[runtime expression]'], [array testSpecs='[runtime expression]'])
Constructor. |
Method Summary | |
---|---|
numeric
|
GETENDTIME()
|
array
|
GETLABELS()
|
numeric
|
GETSTARTTIME()
|
array
|
GETTESTBUNDLES()
|
array
|
GETTESTSPECS()
|
array
|
GETTESTSUITES()
|
numeric
|
GETTOTALBUNDLES()
|
numeric
|
GETTOTALDURATION()
|
numeric
|
GETTOTALERROR()
|
numeric
|
GETTOTALFAIL()
|
numeric
|
GETTOTALPASS()
|
numeric
|
GETTOTALSKIPPED()
|
numeric
|
GETTOTALSPECS()
|
numeric
|
GETTOTALSUITES()
|
TestResult
|
SETBUNDLESTATS(struct bundleStats)
|
TestResult
|
SETENDTIME(numeric endTime)
|
TestResult
|
SETLABELS(array labels)
|
TestResult
|
SETSTARTTIME(numeric startTime)
|
TestResult
|
SETTESTBUNDLES(array testBundles)
|
TestResult
|
SETTESTSPECS(array testSpecs)
|
TestResult
|
SETTESTSUITES(array testSuites)
|
TestResult
|
SETTOTALBUNDLES(numeric totalBundles)
|
TestResult
|
SETTOTALDURATION(numeric totalDuration)
|
TestResult
|
SETTOTALERROR(numeric totalError)
|
TestResult
|
SETTOTALFAIL(numeric totalFail)
|
TestResult
|
SETTOTALPASS(numeric totalPass)
|
TestResult
|
SETTOTALSKIPPED(numeric totalSkipped)
|
TestResult
|
SETTOTALSPECS(numeric totalSpecs)
|
TestResult
|
SETTOTALSUITES(numeric totalSuites)
|
TestResult
|
end()
Finish recording stats. |
TestResult
|
endStats(struct stats)
End processing of a bundle stats reference. |
any
|
getBundleStats([string id])
Get a bundle stats by path as a struct or the entire stats array if no path passed. |
struct
|
getMemento()
Get a flat representation of this result. |
any
|
getSuiteStats(string id)
Get a suite stats by id from the reverse lookup. |
any
|
incrementSpecStat(string type, struct stats)
Record a spec stat with its recursive chain. |
TestResult
|
incrementSpecs(any count='1')
Increment the global specs found. |
TestResult
|
incrementStat(any type='pass', [numeric count='1'])
Increment a global stat. |
TestResult
|
incrementSuites(any count='1')
Increment the global suites found. |
boolean
|
isComplete()
Verify testing is complete in results. |
struct
|
startBundleStats(string bundlePath, string name)
Start a new bundle stats and return its reference. |
struct
|
startSpecStats(string name, struct suiteStats)
Start a new spec stats and return its reference. |
struct
|
startSuiteStats(string name, struct bundleStats, [struct parentStats='[runtime expression]'])
Start a new suite stats and return its reference. |
any
|
storeDebugBuffer([array buffer])
Store latest bundle debug output buffer by adding it to the top bundle. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
bundleCount
- the count to init the results forlabels
- The lables to usetestBundles
- The test bundles that should execute ONLYtestSuites
- The test suites that should execute ONLYtestSpecs
- The test specs that should execut ONLYProperty Detail |
---|
serializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseserializable
- truerequired
- falseMethod Detail |
---|
bundleStats
endTime
labels
startTime
testBundles
testSpecs
testSuites
totalBundles
totalDuration
totalError
totalFail
totalPass
totalSkipped
totalSpecs
totalSuites
Finish recording stats
End processing of a bundle stats reference
stats
- The bundle stats structure reference to completeGet a bundle stats by path as a struct or the entire stats array if no path passed.
id
- If passed, then retrieve by idGet a flat representation of this result
Get a suite stats by id from the reverse lookup
id
- Retrieve by idRecord a spec stat with its recursive chain
type
- The type of stat to store: skipped,fail,error,passstats
Increment the global specs found
count
Increment a global stat
type
- The type of stat to increment: fail,pass,error or skippedcount
Increment the global suites found
count
Verify testing is complete in results
Start a new bundle stats and return its reference
bundlePath
name
Start a new spec stats and return its reference
name
- The name of the suitesuiteStats
- The suite stats reference this belongs to.Start a new suite stats and return its reference
name
- The name of the suitebundleStats
- The bundle stats reference this belongs to.parentStats
- If passed, the parent stats this suite belongs toStore latest bundle debug output buffer by adding it to the top bundle
buffer