|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.eclipse.test.performance.PerformanceTestCase
public class PerformanceTestCase
A PerformanceTestCase is a convenience class that takes care of managing
a PerformanceMeter.
Here is an example:
public class MyPerformanceTestCase extends PeformanceTestCase {
public void testMyOperation() {
for (int i= 0; i < 10; i++) {
// preparation
startMeasuring();
// my operation
stopMeasuring();
// clean up
}
commitMeasurements();
assertPerformance();
}
}
| Constructor Summary | |
|---|---|
PerformanceTestCase()
Constructs a performance test case. |
|
PerformanceTestCase(java.lang.String name)
Constructs a performance test case with the given name. |
|
| Method Summary | |
|---|---|
void |
setComment(int commentKind,
java.lang.String commentText)
Set a comment for the scenario represented by this TestCase. |
void |
tagAsGlobalSummary(java.lang.String shortName,
Dimension dimension)
Mark the scenario of this test case to be included into the global and the component performance summary. |
void |
tagAsGlobalSummary(java.lang.String shortName,
Dimension[] dimensions)
Mark the scenario represented by the given PerformanceMeter to be included into the global and the component performance summary. |
void |
tagAsSummary(java.lang.String shortName,
Dimension dimension)
Mark the scenario of this test case to be included into the component performance summary. |
void |
tagAsSummary(java.lang.String shortName,
Dimension[] dimensions)
Mark the scenario represented by the given PerformanceMeter to be included into the component performance summary. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PerformanceTestCase()
public PerformanceTestCase(java.lang.String name)
name - the name of the performance test case| Method Detail |
|---|
public void tagAsGlobalSummary(java.lang.String shortName,
Dimension dimension)
shortName - a short (shorter than 40 characters) descritive name of the scenariodimension - the dimension to show in the summary
public void tagAsGlobalSummary(java.lang.String shortName,
Dimension[] dimensions)
shortName - a short (shorter than 40 characters) descritive name of the scenariodimensions - an array of dimensions to show in the summary
public void tagAsSummary(java.lang.String shortName,
Dimension dimension)
shortName - a short (shorter than 40 characters) descritive name of the scenariodimension - the dimension to show in the summary
public void tagAsSummary(java.lang.String shortName,
Dimension[] dimensions)
shortName - a short (shorter than 40 characters) descritive name of the scenariodimensions - an array of dimensions to show in the summary
public void setComment(int commentKind,
java.lang.String commentText)
commentKind - kind of comment. Must be EXPLAINS_DEGRADATION_COMMENT to have an effect.commentText - the comment (shorter than 400 characters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||