|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jwalk.out.Report org.jwalk.out.ProtocolReport org.jwalk.out.StatisticalReport
public abstract class StatisticalReport
StatisticalReport is an abstract report containing test statistics.
Not intended to be published separately, StatisticalReport is a common
superclass of CycleReport and SummaryReport. It accumulates various
results after testing is completed, counting up statistics from each
executed TestSequence.
The API of StatisticalReport allows client programs to access the
number of test sequences which executed, which terminated normally,
which terminated with an exception, which were manually confirmed or
rejected and which were automatically passed or failed.
Field Summary | |
---|---|
protected int |
confirmed
|
protected int |
failed
|
protected int |
passed
|
protected int |
rejected
|
protected int |
succeeded
Counters for various judgements upon tests. |
protected int |
terminated
|
Fields inherited from class org.jwalk.out.Report |
---|
edition, walker |
Constructor Summary | |
---|---|
protected |
StatisticalReport(Edition edition,
ClassInspector inspector)
Secret method to initialise the edition and inspector. |
Method Summary | |
---|---|
int |
countConfirmed()
Counts the number of tests confirmed manually by the tester. |
int |
countCorrect()
Counts the number of tests passed automatically by the oracle. |
int |
countExecuted()
Counts the number of tests that were executed. |
int |
countFailed()
Counts the total number of tests failed in this test cycle. |
int |
countIncorrect()
Counts the number of tests failed automatically by the oracle. |
int |
countPassed()
Counts the total number of tests passed in this test cycle. |
int |
countRejected()
Counts the number of tests rejected manually by the tester. |
int |
countSucceeded()
Counts the number of tests that executed normally. |
int |
countTerminated()
Counts the number of tests that terminated abnormally. |
protected void |
tallyResults(java.util.List<TestSequence> results)
Secret function to tally the test results after testing is finished. |
Methods inherited from class org.jwalk.out.ProtocolReport |
---|
banner, getConstants, getConstructors, getContent, getJWalker, getMethods, getTestClass, isAbstract, toString, toString, toString |
Methods inherited from class org.jwalk.out.Report |
---|
getEdition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int succeeded
protected int terminated
protected int confirmed
protected int rejected
protected int passed
protected int failed
Constructor Detail |
---|
protected StatisticalReport(Edition edition, ClassInspector inspector)
edition
- an enumerated indicator of the type of Report.inspector
- the ClassInspector used to inspect the test class.Method Detail |
---|
protected void tallyResults(java.util.List<TestSequence> results)
results
- the list of results, whose statistics are to be tallied.public int countExecuted()
public int countSucceeded()
public int countTerminated()
public int countConfirmed()
public int countRejected()
public int countCorrect()
public int countIncorrect()
public int countPassed()
public int countFailed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |