|
TestBox 2.4.0 | ||||
FRAMES |
railo-context.Componenttestbox.system.TestResult
public class TestResult
Copyright Since 2005 TestBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This object manages the results of testing with TestBox
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 | |
---|---|
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 |
string |
getEndTime()
|
string |
getLabels()
|
struct |
getMemento()
Get a flat representation of this result |
string |
getStartTime()
|
any |
getSuiteStats(string id)
Get a suite stats by id from the reverse lookup |
string |
getTestBundles()
|
string |
getTestSpecs()
|
string |
getTestSuites()
|
string |
getTotalBundles()
|
string |
getTotalDuration()
|
string |
getTotalError()
|
string |
getTotalFail()
|
string |
getTotalPass()
|
string |
getTotalSkipped()
|
string |
getTotalSpecs()
|
string |
getTotalSuites()
|
TestResult |
incrementSpecs(any count='1')
Increment the global specs found |
any |
incrementSpecStat(string type, struct stats)
Record a spec stat with its recursive chain |
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 |
any |
setBundleStats(struct bundleStats)
|
any |
setEndTime(numeric endTime)
|
any |
setLabels(array labels)
|
any |
setStartTime(numeric startTime)
|
any |
setTestBundles(array testBundles)
|
any |
setTestSpecs(array testSpecs)
|
any |
setTestSuites(array testSuites)
|
any |
setTotalBundles(numeric totalBundles)
|
any |
setTotalDuration(numeric totalDuration)
|
any |
setTotalError(numeric totalError)
|
any |
setTotalFail(numeric totalFail)
|
any |
setTotalPass(numeric totalPass)
|
any |
setTotalSkipped(numeric totalSkipped)
|
any |
setTotalSpecs(numeric totalSpecs)
|
any |
setTotalSuites(numeric totalSuites)
|
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 railo-context.Component |
---|
|
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 ONLYMethod Detail |
---|
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 string getEndTime()
public string getLabels()
public struct getMemento()
public string getStartTime()
public any getSuiteStats(string id)
id
- Retrieve by idpublic string getTestBundles()
public string getTestSpecs()
public string getTestSuites()
public string getTotalBundles()
public string getTotalDuration()
public string getTotalError()
public string getTotalFail()
public string getTotalPass()
public string getTotalSkipped()
public string getTotalSpecs()
public string getTotalSuites()
public TestResult incrementSpecs(any count='1')
count
public any incrementSpecStat(string type, struct stats)
type
- The type of stat to store: skipped,fail,error,passstats
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 any setBundleStats(struct bundleStats)
bundleStats
public any setEndTime(numeric endTime)
endTime
public any setLabels(array labels)
labels
public any setStartTime(numeric startTime)
startTime
public any setTestBundles(array testBundles)
testBundles
public any setTestSpecs(array testSpecs)
testSpecs
public any setTestSuites(array testSuites)
testSuites
public any setTotalBundles(numeric totalBundles)
totalBundles
public any setTotalDuration(numeric totalDuration)
totalDuration
public any setTotalError(numeric totalError)
totalError
public any setTotalFail(numeric totalFail)
totalFail
public any setTotalPass(numeric totalPass)
totalPass
public any setTotalSkipped(numeric totalSkipped)
totalSkipped
public any setTotalSpecs(numeric totalSpecs)
totalSpecs
public any setTotalSuites(numeric totalSuites)
totalSuites
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 2.4.0 | ||||
FRAMES |