| org.eclipse.ui.tests.harness.util.UITestCase org.eclipse.ui.tests.performance.BasicPerformanceTest
All known Subclasses: org.eclipse.ui.tests.performance.OpenClosePerspectiveTest, org.eclipse.ui.tests.performance.CommandsPerformanceTest, org.eclipse.ui.tests.performance.ProblemsViewPerformanceTest, org.eclipse.ui.tests.performance.EditorSwitchTest, org.eclipse.ui.tests.performance.ObjectContributionsPerformance, org.eclipse.ui.tests.performance.layout.ComputeSizeTest, org.eclipse.ui.tests.performance.presentations.PresentationPerformanceTest, org.eclipse.ui.tests.performance.PerspectiveSwitchTest, org.eclipse.jface.tests.performance.SWTTreeTest, org.eclipse.ui.tests.performance.GenerateIdentifiersTest, org.eclipse.jface.tests.performance.ListPopulationTest, org.eclipse.ui.tests.performance.layout.LayoutTest, org.eclipse.ui.tests.performance.OpenCloseWindowTest, org.eclipse.ui.tests.performance.OpenMultipleEditorTest, org.eclipse.ui.tests.performance.layout.ResizeTest, org.eclipse.jface.tests.performance.ViewerTest, org.eclipse.ui.tests.performance.OpenCloseViewTest, org.eclipse.ui.tests.performance.OpenCloseEditorTest,
BasicPerformanceTest | abstract public class BasicPerformanceTest extends UITestCase (Code) | | Baseclass for simple performance tests.
since: 3.1 |
Field Summary | |
final public static int | GLOBAL | final public static int | LOCAL | final public static int | NONE |
Method Summary | |
public void | assertPerformance() Asserts default properties of the measurements captured for this test
case. | public void | assertPerformanceInRelativeBand(Dimension dim, int lowerPercentage, int upperPercentage) Asserts that the measurement specified by the given dimension is within a
certain range with respect to some reference value. | public void | commitMeasurements() | protected void | doSetUp() | protected void | doTearDown() | public static void | exercise(TestRunnable runnable) Runs the given runnable until either 100 iterations or 4s has elapsed. | public static void | exercise(TestRunnable runnable, int minIterations, int maxIterations, int maxTime) Exercises the given runnable until either the given number of iterations
or the given amount of time has elapsed, whatever occurs first. | protected IProject | getProject() | public void | setDegradationComment(String string) Set the comment for the receiver to string. | public void | startMeasuring() Called from within a test case immediately before the code to measure is
run. | public void | stopMeasuring() | public void | tagIfNecessary(String shortName, Dimension dimension) | public static void | waitForBackgroundJobs() |
GLOBAL | final public static int GLOBAL(Code) | | |
LOCAL | final public static int LOCAL(Code) | | |
NONE | final public static int NONE(Code) | | |
BasicPerformanceTest | public BasicPerformanceTest(String testName)(Code) | | |
BasicPerformanceTest | public BasicPerformanceTest(String testName, int tagging)(Code) | | Parameters: testName - |
assertPerformance | public void assertPerformance()(Code) | | Asserts default properties of the measurements captured for this test
case.
throws: RuntimeException - if the properties do not hold |
assertPerformanceInRelativeBand | public void assertPerformanceInRelativeBand(Dimension dim, int lowerPercentage, int upperPercentage)(Code) | | Asserts that the measurement specified by the given dimension is within a
certain range with respect to some reference value. If the specified
dimension isn't available, the call has no effect.
Parameters: dim - the Dimension to check Parameters: lowerPercentage - a negative number indicating the percentage the measured valueis allowed to be smaller than some reference value Parameters: upperPercentage - a positive number indicating the percentage the measured valueis allowed to be greater than some reference value throws: RuntimeException - if the properties do not hold |
commitMeasurements | public void commitMeasurements()(Code) | | |
exercise | public static void exercise(TestRunnable runnable) throws CoreException(Code) | | Runs the given runnable until either 100 iterations or 4s has elapsed.
Runs a minimum of 3 times.
Parameters: runnable - since: 3.1 |
exercise | public static void exercise(TestRunnable runnable, int minIterations, int maxIterations, int maxTime) throws CoreException(Code) | | Exercises the given runnable until either the given number of iterations
or the given amount of time has elapsed, whatever occurs first.
Parameters: runnable - Parameters: maxIterations - Parameters: maxTime - since: 3.1 |
getProject | protected IProject getProject()(Code) | | |
setDegradationComment | public void setDegradationComment(String string)(Code) | | Set the comment for the receiver to string. Note this is added to the
output as is so you will need to add markup if you need a link.
Parameters: string - The comment to write out for the test. |
startMeasuring | public void startMeasuring()(Code) | | Called from within a test case immediately before the code to measure is
run. It starts capturing of performance data. Must be followed by a call
to
PerformanceTestCase.stopMeasuring before subsequent calls to
this method or
PerformanceTestCase.commitMeasurements .
|
stopMeasuring | public void stopMeasuring()(Code) | | |
tagIfNecessary | public void tagIfNecessary(String shortName, Dimension dimension)(Code) | | |
waitForBackgroundJobs | public static void waitForBackgroundJobs()(Code) | | |
Fields inherited from org.eclipse.ui.tests.harness.util.UITestCase | protected IWorkbench fWorkbench(Code)(Java Doc)
|
|
|