Bug 129215 performance tests that run too fast (< 100 ms)
The test org.eclipse.ui.tests.performance.EditorSwitchTest#testEditorSwitch:perf_basic,perf_outline() is running in less than 100 ms on most of the test machines. That's too fast. Need to increase the length of time for which this test runs. We may want to call BasicPerformanceTest.exercise(Runnable, int, int, int) instead of BasicPerformanceTest.exercise(Runnable) from the EditorSwitchTest instead.
tests/org.eclipse.ui.tests.performance/src/org/eclipse/ui/tests/performance/OpenCloseViewTest.java
/*******************************************************************************
 * Copyright (c) 2004, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.tests.performance;
import org.eclipse.test.performance.Dimension;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
/**
 * Performance tests for showing views.
 * There are separate tests for showing a simple view (MockViewPart)
 * and a more complex view (Resource Navigator).
 * The views are shown in an empty perspective.
 */
public class OpenCloseViewTest extends BasicPerformanceTest {
    private String viewId;
    public OpenCloseViewTest(String viewId, int tagging) {
        super("showView:" + viewId, tagging);
        this.viewId = viewId;
    }
    protected void runTest() throws Throwable {