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 org.netbeans.junit.NbTestSuite;
045: import gui.action.*;
046:
047: /**
048: * Measure UI-RESPONSIVENES and WINDOW_OPENING.
049: *
050: * @author mkhramov@netbeans.org
051: */
052: public class VWPMeasureActions {
053: public static NbTestSuite suite() {
054: NbTestSuite suite = new NbTestSuite();
055:
056: //TODO do Open project through UI suite.addTest(new OpenWebPackProject("measureTime","Open Small Web Project"));
057: //TODO do Open project through UI suite.addTest(new OpenHugeWebPackProject("testOpenWebPackProject","Open Huge Web Project"));
058:
059: suite.addTest(new OpenProjectFirstPage(
060: "testOpenSmallProjectFirstPage",
061: "Open Small Project First Page"));
062: suite.addTest(new OpenProjectFirstPage(
063: "testOpenLargeProjectFirstPage",
064: "Open Large Project First Page"));
065:
066: // manual results differ from automated
067: // suite.addTest(new TypingInCSSEditor("measureTime","Type a character in CSS Editor"));
068:
069: suite.addTest(new CSSRuleAddTest("measureTime",
070: "Measure time to add and modify CSS rule"));
071: suite.addTest(new PasteCSSText("measureTime",
072: "Measure time to Paste text into CSS editor"));
073:
074: suite.addTest(new OpenBeanFiles("testApplicationBean",
075: "Open Application Bean"));
076: suite.addTest(new OpenBeanFiles("testRequestBean",
077: "Open Request Bean"));
078: suite.addTest(new OpenBeanFiles("testSessionBean",
079: "Open Session Bean"));
080: suite.addTest(new OpenNavigationPage("measureTime",
081: "Open Navigation Page"));
082:
083: suite.addTest(new CreateWebPackFiles("testCreateCSSTable",
084: "Create CSS table"));
085: suite.addTest(new CreateWebPackFiles("testCreateJSPFragment",
086: "Create JSP fragment for VWP project"));
087: suite.addTest(new CreateWebPackFiles("testCreateJSPPage",
088: "Create JSP page for VWP project"));
089:
090: suite.addTest(new gui.window.DatabaseTableDrop("measureTime",
091: "Database table drop on Table time"));
092: //TODO Disabled because throws exception. See bugid #99202
093: suite.addTest(new ComponentAddTest("testAddTableComponent",
094: "Adding Table Component"));
095: suite.addTest(new ComponentAddTest("testAddButtonComponent",
096: "Adding Button Component"));
097: suite.addTest(new ComponentAddTest("testAddListboxComponent",
098: "Adding Listbox Component"));
099:
100: //suite.addTest(new CreateWebPackProjectSBS("testCreateWebPackProject","Create Visual Web Project SBS"));
101:
102: suite.addTest(new WebProjectDeployment(
103: "testDeploySmallProject", "Deployment Small Project"));
104: suite.addTest(new WebProjectDeployment(
105: "testDeployLargeProject", "Deployment Huge Project"));
106:
107: suite.addTest(new CleanAndBuildProject(
108: "testCleanAndBuildSingleOpenedPageProject",
109: "CnB project with single opened page"));
110: suite.addTest(new CleanAndBuildProject(
111: "testCleanAndBuildMultipleOpenedPagesProject",
112: "CnB project with two opened pages"));
113:
114: suite.addTest(new PageSwitchTest("testPageSwitch"));
115: suite.addTest(new ViewSwitchTest("doMeasurement",
116: "Test view switch time"));
117: suite
118: .addTest(new CreateWebPackProject(
119: "testCreateWebPackProject",
120: "Create Visual Web Project"));
121:
122: return suite;
123: }
124: }
|