|
TestBox v1.0.0 | ||||
FRAMES |
WEB-INF.cftags.componenttestbox.system.testing.TestResult
public class 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 & Description | Default | Serializable | Required |
struct
|
bundleStats
Attributes: |
|
true
|
false
|
numeric
|
endTime
Attributes: |
|
true
|
false
|
array
|
labels
Attributes: |
|
true
|
false
|
numeric
|
startTime
Attributes: |
|
true
|
false
|
array
|
testBundles
Attributes: |
|
true
|
false
|
array
|
testSpecs
Attributes: |
|
true
|
false
|
array
|
testSuites
Attributes: |
|
true
|
false
|
numeric
|
totalBundles
Attributes: |
|
true
|
false
|
numeric
|
totalDuration
Attributes: |
|
true
|
false
|
numeric
|
totalError
Attributes: |
|
true
|
false
|
numeric
|
totalFail
Attributes: |
|
true
|
false
|
numeric
|
totalPass
Attributes: |
|
true
|
false
|
numeric
|
totalSkipped
Attributes: |
|
true
|
false
|
numeric
|
totalSpecs
Attributes: |
|
true
|
false
|
numeric
|
totalSuites
Attributes: |
|
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 |
---|
public init([numeric bundleCount='0'], [array labels='[runtime expression]'], [array testBundles='[runtime expression]'], [array testSuites='[runtime expression]'], [array testSpecs='[runtime expression]'])
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 |
---|
struct bundleStats
default
- serializable
- truerequired
- falsenumeric endTime
default
- serializable
- truerequired
- falsearray labels
default
- serializable
- truerequired
- falsenumeric startTime
default
- serializable
- truerequired
- falsearray testBundles
default
- serializable
- truerequired
- falsearray testSpecs
default
- serializable
- truerequired
- falsearray testSuites
default
- serializable
- truerequired
- falsenumeric totalBundles
default
- serializable
- truerequired
- falsenumeric totalDuration
default
- serializable
- truerequired
- falsenumeric totalError
default
- serializable
- truerequired
- falsenumeric totalFail
default
- serializable
- truerequired
- falsenumeric totalPass
default
- serializable
- truerequired
- falsenumeric totalSkipped
default
- serializable
- truerequired
- falsenumeric totalSpecs
default
- serializable
- truerequired
- falsenumeric totalSuites
default
- serializable
- truerequired
- falseMethod Detail |
---|
public numeric GETENDTIME()
public array GETLABELS()
public numeric GETSTARTTIME()
public array GETTESTBUNDLES()
public array GETTESTSPECS()
public array GETTESTSUITES()
public numeric GETTOTALBUNDLES()
public numeric GETTOTALDURATION()
public numeric GETTOTALERROR()
public numeric GETTOTALFAIL()
public numeric GETTOTALPASS()
public numeric GETTOTALSKIPPED()
public numeric GETTOTALSPECS()
public numeric GETTOTALSUITES()
public TestResult SETBUNDLESTATS(struct bundleStats)
bundleStats
public TestResult SETENDTIME(numeric endTime)
endTime
public TestResult SETLABELS(array labels)
labels
public TestResult SETSTARTTIME(numeric startTime)
startTime
public TestResult SETTESTBUNDLES(array testBundles)
testBundles
public TestResult SETTESTSPECS(array testSpecs)
testSpecs
public TestResult SETTESTSUITES(array testSuites)
testSuites
public TestResult SETTOTALBUNDLES(numeric totalBundles)
totalBundles
public TestResult SETTOTALDURATION(numeric totalDuration)
totalDuration
public TestResult SETTOTALERROR(numeric totalError)
totalError
public TestResult SETTOTALFAIL(numeric totalFail)
totalFail
public TestResult SETTOTALPASS(numeric totalPass)
totalPass
public TestResult SETTOTALSKIPPED(numeric totalSkipped)
totalSkipped
public TestResult SETTOTALSPECS(numeric totalSpecs)
totalSpecs
public TestResult SETTOTALSUITES(numeric totalSuites)
totalSuites
public TestResult end()
public TestResult endStats(struct stats)
stats
- The bundle stats structure reference to completepublic any getBundleStats([string id])
id
- If passed, then retrieve by idpublic struct getMemento()
public any getSuiteStats(string id)
id
- Retrieve by idpublic any incrementSpecStat(string type, struct stats)
type
- The type of stat to store: skipped,fail,error,passstats
public TestResult incrementSpecs(any count='1')
count
public TestResult incrementStat(any type='pass', [numeric count='1'])
type
- The type of stat to increment: fail,pass,error or skippedcount
public TestResult incrementSuites(any count='1')
count
public boolean isComplete()
public struct startBundleStats(string bundlePath, string name)
bundlePath
name
public struct startSpecStats(string name, struct suiteStats)
name
- The name of the suitesuiteStats
- The suite stats reference this belongs to.public struct startSuiteStats(string name, struct bundleStats, [struct parentStats='[runtime expression]'])
name
- The name of the suitebundleStats
- The bundle stats reference this belongs to.parentStats
- If passed, the parent stats this suite belongs topublic any storeDebugBuffer([array buffer])
buffer
|
TestBox v1.0.0 | ||||
FRAMES |