001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package gui;
043:
044: import gui.window.*;
045:
046: import org.netbeans.junit.NbTestSuite;
047:
048: /**
049: * Measure UI-RESPONSIVENES and WINDOW_OPENING.
050: *
051: * @author mmirilovic@netbeans.org
052: */
053: public class MeasureDialogs {
054:
055: public static NbTestSuite suite() {
056: NbTestSuite suite = new NbTestSuite();
057:
058: // dialogs and windows which don't require any preparation
059: //remove from test run for NB4.1 suite.addTest(new About("measureTime", "About dialog open"));
060: //remove from test run for NB4.1 suite.addTest(new About_2("measureTime", "About details open"));
061:
062: suite.addTest(new ServerManager("measureTime",
063: "Server Manager dialog open"));
064: suite.addTest(new TemplateManager("measureTime",
065: "Template Manager dialog open"));
066:
067: suite
068: .addTest(new Options("measureTime",
069: "Options dialog open"));
070:
071: suite.addTest(new NewProjectDialog("measureTime",
072: "New Project dialog open"));
073: suite.addTest(new NewFileDialog("measureTime",
074: "New File dialog open"));
075: suite.addTest(new OpenProjectDialog("measureTime",
076: "Open Project dialog open"));
077: suite.addTest(new OpenFileDialog("measureTime",
078: "Open File dialog open"));
079:
080: //test needs to be fixed
081: // suite.addTest(new PluginManager("measureTime", "Plugin Manager open"));
082:
083: // need to be after Options - since NB 6.0 we open first panel of Options dialog instead of separate Proxy Configuration dialog,
084: // also after Update Center - because the Proxy dialog is invoked from Update Center wizard
085: suite.addTest(new ProxyConfiguration("measureTime",
086: "Proxy Configuration open"));
087:
088: suite.addTest(new FavoritesWindow("measureTime",
089: "Favorites window open"));
090: //remove from test run for NB4.1 suite.addTest(new FilesWindow("measureTime", "Files window open"));
091: //remove from test run for NB4.1 suite.addTest(new ProjectsWindow("measureTime", "Projects window open"));
092: //remove from test run for NB4.1 suite.addTest(new RuntimeWindow("measureTime", "Runtime window open"));
093: suite.addTest(new VersioningWindow("measureTime",
094: "Versioning window open"));
095:
096: //TODO suite.addTest(new OutputWindow("measureTime", "Output window open"));
097: suite
098: .addTest(new ToDoWindow("measureTime",
099: "To Do window open"));
100: //TODO no more in Window main menu suite.addTest(new HttpMonitorWindow("measureTime", "Http Monitor window open"));
101:
102: suite.addTest(new HelpContentsWindow("measureTime",
103: "Help Contents window open"));
104:
105: suite.addTest(new PropertyEditorString("measureTime",
106: "String Property Editor open"));
107: //TODO fails often suite.addTest(new PropertyEditorColor("measureTime", "Color Property Editor open"));
108:
109: suite.addTest(new AddServerInstanceDialog("measureTime",
110: "Add JDBC Driver dialog open"));
111: suite.addTest(new NewDatabaseConnectionDialog("measureTime",
112: "New Database Connection dialog open"));
113: // no more in IDE suite.addTest(new AddXMLandDTDSchemaCatalog("measureTime", "Add Catalog dialog open"));
114:
115: suite.addTest(new FindInProjects("measureTime",
116: "Find in Projects dialog open"));
117: suite.addTest(new ProjectPropertiesWindow("testJSEProject",
118: "JSE Project Properties window open"));
119: suite.addTest(new ProjectPropertiesWindow("testNBProject",
120: "NB Project Properties window open"));
121: //TODO no tomcat - see issue 101104 suite.addTest(new ProjectPropertiesWindow("testWebProject", "Web Project Properties window open"));
122:
123: suite.addTest(new DeleteFileDialog("measureTime",
124: "Delete Object dialog open"));
125:
126: suite.addTest(new AttachDialog("measureTime",
127: "Attach dialog open"));
128: suite.addTest(new NewBreakpointDialog("measureTime",
129: "New Breakpoint dialog open"));
130: suite.addTest(new NewWatchDialog("measureTime",
131: "New Watch dialog open"));
132:
133: //NB 6.0 no more part of the Tools menu suite.addTest(new JavadocIndexSearch("measureTime", "Javadoc Index Search open"));
134:
135: suite.addTest(new JavaPlatformManager("measureTime",
136: "Java Platform Manager open"));
137: suite.addTest(new LibrariesManager("measureTime",
138: "Libraries Manager open"));
139: suite.addTest(new NetBeansPlatformManager("measureTime",
140: "NetBeans Platform Manager open"));
141:
142: // dialogs and windows which first open a file in the editor
143: //TODO failing after retouche integration suite.addTest(new OverrideMethods("measureTime", "Override and Implement Methods dialog open"));
144: //TODO failing after retouche integration suite.addTest(new GotoClassDialog("measureTime", "Go To Class dialog open"));
145: suite.addTest(new GotoLineDialog("measureTime",
146: "Go to Line dialog open"));
147: //TODO failing after retouche integration suite.addTest(new AutoCommentWindow("measureTime", "Auto Comment Tool open"));
148:
149: // no more find dialog suite.addTest(new FindInSourceEditor("measureTime", "Find in Source Editor dialog open"));
150: suite.addTest(new InternationalizeDialog("measureTime",
151: "Internationalize dialog open"));
152:
153: suite.addTest(new AddServerInstanceDialog("measureTime",
154: "Add Server Instance dialog open"));
155:
156: suite.addTest(new CreateTestsDialog("measureTime",
157: "Create Tests dialog open"));
158:
159: suite.addTest(new SelectProfilingTaskDialog("measureTime",
160: "Select Profiling Task dialog open"));
161: suite.addTest(new CompareMemorySnapshotsDialog("measureTime",
162: "Compare memory Snapshots dialog"));
163:
164: suite.addTest(new ProfilerWindows("testProfilerControlPanel",
165: "Open Profiler Control Panel Window"));
166: suite.addTest(new ProfilerWindows(
167: "testProfilerTelemetryOverview",
168: "Open Profiler VM Telemetry Overview Window"));
169: suite.addTest(new ProfilerWindows("testProfilerLiveResults",
170: "Open Profiler Live Results Window"));
171: suite.addTest(new ProfilerWindows("testProfilerVMTelemetry",
172: "Open Profiler Profiler VM Telemetry Window Window"));
173: suite.addTest(new ProfilerWindows("testProfilerThreads",
174: "Open Profiler Threads Window"));
175: suite.addTest(new ProfilerWindows(
176: "testProfilerProfilingPoints",
177: "Open Profiler Profiling Points Window"));
178: suite.addTest(new AddProfilingPointWizard("measureTime",
179: "Add Profiling point Wizard"));
180:
181: //TODO failing after retouche integration suite.addTest(new RefactorFindUsagesDialog("measureTime", "Refactor find usages dialog open"));
182: //TODO failing after retouche integration suite.addTest(new RefactorRenameDialog("measureTime", "Refactor rename dialog open"));
183: //TODO hard to indentify end of the action suite.addTest(new RefactorMoveClassDialog("measureTime", "Refactor move class dialog open"));
184:
185: //TODO suite.addTest(new DocumentsDialog("measureTime", "Documents dialog open"));
186:
187: return suite;
188: }
189:
190: }
|