diff options
Diffstat (limited to 'tests/org.eclipse.jst.ws.tests.performance')
18 files changed, 0 insertions, 1073 deletions
diff --git a/tests/org.eclipse.jst.ws.tests.performance/.classpath b/tests/org.eclipse.jst.ws.tests.performance/.classpath deleted file mode 100644 index 751c8f2e5..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/tests/org.eclipse.jst.ws.tests.performance/.cvsignore b/tests/org.eclipse.jst.ws.tests.performance/.cvsignore deleted file mode 100644 index 434810902..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -bin -build.xml -temp.folder -axisPerfmsr.jar diff --git a/tests/org.eclipse.jst.ws.tests.performance/.project b/tests/org.eclipse.jst.ws.tests.performance/.project deleted file mode 100644 index 088e1a830..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/.project +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.jst.ws.tests.performance</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 515fbd762..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,57 +0,0 @@ -#Mon Jan 30 10:36:51 EST 2006 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.4 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.deprecation=ignore -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning -org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.source=1.3 diff --git a/tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 1463cd8d6..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,12 +0,0 @@ -#Mon Jan 30 10:40:54 EST 2006 -compilers.p.deprecated=1 -compilers.p.no-required-att=0 -compilers.p.not-externalized-att=1 -compilers.p.unknown-attribute=0 -compilers.p.unknown-class=0 -compilers.p.unknown-element=1 -compilers.p.unknown-resource=0 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.use-project=true -eclipse.preferences.version=1 diff --git a/tests/org.eclipse.jst.ws.tests.performance/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.ws.tests.performance/META-INF/MANIFEST.MF deleted file mode 100644 index 54ca3a88e..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/META-INF/MANIFEST.MF +++ /dev/null @@ -1,31 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %PLUGIN_NAME -Bundle-SymbolicName: org.eclipse.jst.ws.tests.performance -Bundle-Version: 1.0.100 -Bundle-ClassPath: axisPerfmsr.jar -Bundle-Activator: org.eclipse.jst.ws.tests.performance.plugin.PerformancePlugin -Bundle-Vendor: %PLUGIN_PROVIDER -Bundle-Localization: plugin -Export-Package: org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr, - org.eclipse.jst.ws.tests.performance, - org.eclipse.jst.ws.tests.performance.plugin, - org.eclipse.jst.ws.tests.performance.util -Require-Bundle: org.eclipse.jst.ws, - org.eclipse.jst.j2ee.core, - org.eclipse.core.runtime, - org.eclipse.core.resources, - org.eclipse.ui, - org.eclipse.wst.server.core, - org.junit, - org.eclipse.jst.ws.tests, - org.eclipse.jem.util, - org.eclipse.test.performance, - org.eclipse.wst.command.env.ui, - org.eclipse.wst.command.env.core, - org.eclipse.wst.common.environment, - org.eclipse.wst.common.modulecore, - org.eclipse.emf.ecore, - org.eclipse.jst.ws.consumption, - org.eclipse.wst.common.frameworks -Eclipse-LazyStart: true diff --git a/tests/org.eclipse.jst.ws.tests.performance/about.html b/tests/org.eclipse.jst.ws.tests.performance/about.html deleted file mode 100644 index 4ec598958..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/about.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> -<HTML> - -<head> -<title>About</title> -<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> -</head> - -<BODY lang="EN-US"> - -<H3>About This Content</H3> - -<P>May 2, 2006</P> - -<H3>License</H3> - -<P>The Eclipse Foundation makes available all content in this plug-in -("Content"). Unless otherwise indicated below, the Content is provided to you -under the terms and conditions of the Eclipse Public License Version 1.0 -("EPL"). A copy of the EPL is available at -<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>. -For purposes of the EPL, "Program" will mean the Content.</P> - -<P>If you did not receive this Content directly from the Eclipse Foundation, the -Content is being redistributed by another party ("Redistributor") and different -terms and conditions may apply to your use of any object code in the Content. -Check the Redistributor’s license that was provided with the Content. If no such -license exists, contact the Redistributor. Unless otherwise indicated below, the -terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at -<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P> - -</BODY> -</HTML> diff --git a/tests/org.eclipse.jst.ws.tests.performance/build.properties b/tests/org.eclipse.jst.ws.tests.performance/build.properties deleted file mode 100644 index 99ea6b51a..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/build.properties +++ /dev/null @@ -1,8 +0,0 @@ -bin.includes = plugin.xml,\ - test.xml,\ - axisPerfmsr.jar,\ - META-INF/,\ - about.html -jars.compile.order = axisPerfmsr.jar -source.axisPerfmsr.jar = src/ -output.axisPerfmsr.jar = bin/ diff --git a/tests/org.eclipse.jst.ws.tests.performance/plugin.properties b/tests/org.eclipse.jst.ws.tests.performance/plugin.properties deleted file mode 100644 index 99d89bbad..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/plugin.properties +++ /dev/null @@ -1,19 +0,0 @@ -############################################################################### -# Copyright (c) 2006 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 -# yyyymmdd bug Email and other contact information -# -------- -------- ----------------------------------------------------------- -# 20060424 138060 kathy@ca.ibm.com - Kathy Chan -############################################################################### - -# -# Messages in plugin.xml. -# -PLUGIN_NAME=JST Web Services Performance Plug-in -PLUGIN_PROVIDER=Eclipse.org diff --git a/tests/org.eclipse.jst.ws.tests.performance/plugin.xml b/tests/org.eclipse.jst.ws.tests.performance/plugin.xml deleted file mode 100644 index 7bf65fb5f..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/plugin.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.0"?> -<plugin> - - -</plugin> diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrBUJavaAxisTC50.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrBUJavaAxisTC50.java deleted file mode 100644 index 2e1340c33..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrBUJavaAxisTC50.java +++ /dev/null @@ -1,160 +0,0 @@ -package org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; -import org.eclipse.jem.util.emf.workbench.ProjectUtilities; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.ws.internal.common.J2EEUtils; -import org.eclipse.jst.ws.internal.common.ResourceUtils; -import org.eclipse.jst.ws.internal.consumption.command.common.CreateModuleCommand; -import org.eclipse.jst.ws.tests.axis.tomcat.v50.WSWizardTomcat50Test; -import org.eclipse.jst.ws.tests.performance.util.PerformanceJUnitUtils; -import org.eclipse.jst.ws.tests.unittest.WSJUnitConstants; -import org.eclipse.jst.ws.tests.util.JUnitUtils; -import org.eclipse.jst.ws.tests.util.ScenarioConstants; -import org.eclipse.test.performance.Performance; -import org.eclipse.test.performance.PerformanceMeter; - -/** - * Bottom up performance scenario with Axis and Tomcat v5.0 - */ -public final class PerfmsrBUJavaAxisTC50 extends WSWizardTomcat50Test { - // Constants - private final String WS_RUNTIMEID_AXIS = WSJUnitConstants.WS_RUNTIMEID_AXIS; - private final String PROJECT_NAME = WSJUnitConstants.BU_PROJECT_NAME; - - private IFile sourceFile_; - - /** - * Sets up the input data; - * - create project(s), - * - copy resources to workspace - */ - protected void installInputData() throws Exception - { - - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - IPath destPath = ResourceUtils.getJavaSourceLocation(webProject); - IFolder folder = (IFolder)ResourceUtils.findResource(destPath); - JUnitUtils.copyTestData("BUJava/src",folder,env_, null); - sourceFile_ = folder.getFile(new Path("foo/Echo.java")); - // Ensure that Echo.class is built in: - // <Web Project>/WebContent/WEB-INF/classes/foo/Echo.class - JUnitUtils.syncBuildProject(webProject,env_, null); - //assertTrue(JUnitUtils.getClassesFolderForWebProject(WEB_PROJECT_NAME).getFile(new Path("foo/Echo.class")).exists()); - - - } - - protected void createProjects() throws Exception{ - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - if (webProject==null || !webProject.exists()){ - createWebModule(PROJECT_NAME, PROJECT_NAME,J2EEVersionConstants.J2EE_1_4_ID); - } - } - - private void createWebModule(String projectNm, String componentName, int j2eeVersion){ - - CreateModuleCommand cmc = new CreateModuleCommand(); - cmc.setJ2eeLevel(new Integer(j2eeVersion).toString()); - cmc.setModuleName(componentName); - cmc.setModuleType(CreateModuleCommand.WEB); - cmc.setProjectName(projectNm); - cmc.setServerFactoryId(SERVERTYPEID_TC50); - cmc.setServerInstanceId(server_.getId()); - cmc.execute(null, null ); - - System.out.println("Done creating Web Project, "+projectNm); - - } - - - /** - * Set the persistent server runtime context preferences - */ - protected void initJ2EEWSRuntimeServerDefaults() throws Exception - { - // Set default preferences for Axis and Tomcat 5.0 - JUnitUtils.setWSRuntimeServer(WS_RUNTIMEID_AXIS, SERVERTYPEID_TC50); - } - - /** - * Set the initial selection - */ - protected void initInitialSelection() throws Exception - { - initialSelection_ = new StructuredSelection(sourceFile_); - } - - /** - * Launches the pop-up command to initiate the scenario - * @throws Exception - */ - public void testBUJavaAxisTC50() throws Exception - { - IStatus status = Status.OK_STATUS; - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - JUnitUtils.disableWSIDialog(webProject); - - Performance perf= Performance.getDefault(); - PerformanceMeter performanceMeter= perf.createPerformanceMeter(perf.getDefaultScenarioId(this)); - try { - - performanceMeter.start(); - PerformanceJUnitUtils.launchCreationWizard(ScenarioConstants.WIZARDID_BOTTOM_UP,ScenarioConstants.OBJECT_CLASS_ID_IFILE,initialSelection_); - performanceMeter.stop(); - - performanceMeter.commit(); - perf.assertPerformance(performanceMeter); - } - finally { - if (performanceMeter==null) - performanceMeter.dispose(); - } - - if (status.getSeverity() == Status.OK) - verifyOutput(); - else - throw new Exception(status.getException()); - - } - - /** - * Verify the scenario completed successfully - * @throws Exception - */ - private final void verifyOutput() throws Exception - { - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - IFolder webContentFolder = (IFolder)J2EEUtils.getWebContentContainer(webProject); - - IFolder wsdlFolder = webContentFolder.getFolder("wsdl"); - assertTrue(wsdlFolder.exists()); - assertTrue(wsdlFolder.members().length > 0); - assertTrue(webContentFolder.getFolder("wsdl").members().length > 0); - - //TODO Check if wsdd contains new Web service - //TODO Check if Web serivce can be invoked by a client - } - - /** - * Clear workspace if necessary - */ - protected void deleteInputData() throws Exception - { - // Remove the EAR from the server. - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - //JUnitUtils.removeModuleFromServer(server_,webProject,env_); - - // Delete the Web project. - webProject.delete(true,true, null); - assertFalse(webProject.exists()); - - } -}
\ No newline at end of file diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrClientAxisTC50.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrClientAxisTC50.java deleted file mode 100644 index c8fae0745..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrClientAxisTC50.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; -import org.eclipse.jem.util.emf.workbench.ProjectUtilities; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.ws.internal.common.J2EEUtils; -import org.eclipse.jst.ws.internal.common.ResourceUtils; -import org.eclipse.jst.ws.internal.consumption.command.common.CreateModuleCommand; -import org.eclipse.jst.ws.tests.axis.tomcat.v50.WSWizardTomcat50Test; -import org.eclipse.jst.ws.tests.performance.util.PerformanceJUnitUtils; -import org.eclipse.jst.ws.tests.unittest.WSJUnitConstants; -import org.eclipse.jst.ws.tests.util.JUnitUtils; -import org.eclipse.jst.ws.tests.util.ScenarioConstants; -import org.eclipse.test.performance.Performance; -import org.eclipse.test.performance.PerformanceMeter; - -/** - * Client performance scenario with Axis and Tomcat v5.0 - */ -public class PerfmsrClientAxisTC50 extends WSWizardTomcat50Test { - - private final String WS_RUNTIMEID_AXIS = WSJUnitConstants.WS_RUNTIMEID_AXIS; - - private final String CLIENT_PROJECT_NAME = WSJUnitConstants.CLIENT_PROJECT_NAME; - - private IFile sourceFile_; - - protected void createProjects() throws Exception{ - IProject webProject = ProjectUtilities.getProject(CLIENT_PROJECT_NAME); - if (!webProject.exists()){ - createWebModule(CLIENT_PROJECT_NAME, CLIENT_PROJECT_NAME,J2EEVersionConstants.J2EE_1_4_ID); - } - } - - private void createWebModule(String projectNm, String componentName, int j2eeVersion){ - - CreateModuleCommand cmc = new CreateModuleCommand(); - cmc.setJ2eeLevel(new Integer(j2eeVersion).toString()); - cmc.setModuleName(componentName); - cmc.setModuleType(CreateModuleCommand.WEB); - cmc.setProjectName(projectNm); - cmc.setServerFactoryId(SERVERTYPEID_TC50); - cmc.setServerInstanceId(server_.getId()); - cmc.execute(null, null ); - - } - - /** - * Sets up the input data; - * - create project(s), - * - copy resources to workspace - */ - protected void installInputData() throws Exception { - - IProject webProject = ProjectUtilities.getProject(CLIENT_PROJECT_NAME); - IFolder destFolder = (IFolder)J2EEUtils.getWebContentContainer(webProject); - JUnitUtils.copyTestData("TDJava",destFolder,env_, null); - sourceFile_ = destFolder.getFile(new Path("Echo.wsdl")); - JUnitUtils.syncBuildProject(webProject,env_, null); - - } - - /** - * Set the persistent server runtime context preferences - */ - protected void initJ2EEWSRuntimeServerDefaults() throws Exception { - // Set default preferences for Axis and Tomcat 5.0 - JUnitUtils.setWSRuntimeServer(WS_RUNTIMEID_AXIS, SERVERTYPEID_TC50); - } - - /** - * Set the initial selection - */ - protected void initInitialSelection() throws Exception { - initialSelection_ = new StructuredSelection(sourceFile_); - } - - /** - * Launches the pop-up command to initiate the scenario - * @throws Exception - */ - public void testClientAxisTC50() throws Exception - { - IStatus status = Status.OK_STATUS; - - JUnitUtils.enableProxyGeneration(true); - JUnitUtils.enableOverwrite(true); - Performance perf= Performance.getDefault(); - PerformanceMeter performanceMeter= perf.createPerformanceMeter(perf.getDefaultScenarioId(this)); - try { - - performanceMeter.start(); - PerformanceJUnitUtils.launchCreationWizard(ScenarioConstants.WIZARDID_CLIENT,ScenarioConstants.OBJECT_CLASS_ID_IFILE,initialSelection_); - performanceMeter.stop(); - performanceMeter.commit(); - perf.assertPerformance(performanceMeter); - } - finally { - if (performanceMeter==null) - performanceMeter.dispose(); - } - - if (status.getSeverity() == Status.OK) { - verifyOutput(); - } else { - throw new Exception(status.getException()); - } - - } - - /** - * Verify the scenario completed succesfully - * @throws Exception - */ - private final void verifyOutput() throws Exception { - IProject webProject = ProjectUtilities.getProject(CLIENT_PROJECT_NAME); - - IPath destPath = ResourceUtils.getJavaSourceLocation(webProject); - IFolder srcFolder = (IFolder)ResourceUtils.findResource(destPath); - - //IFolder srcFolder = JUnitUtils.getSourceFolderForWebProject(CLIENT_PROJECT_NAME); - IFolder folder = srcFolder.getFolder("foo"); - assertTrue(folder.exists()); - assertTrue(folder.members().length > 0); - - //TODO Check that the client runs - - } - - /** - * Remove workspace if necessary - */ - protected void deleteInputData() throws Exception { - - // Delete the Web project. - IProject webProject = ProjectUtilities.getProject(CLIENT_PROJECT_NAME); - webProject.delete(true,true, null); - - } - -} diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrTDJavaAxisTC50.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrTDJavaAxisTC50.java deleted file mode 100644 index 07bf32e4e..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrTDJavaAxisTC50.java +++ /dev/null @@ -1,141 +0,0 @@ -package org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; -import org.eclipse.jem.util.emf.workbench.ProjectUtilities; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jst.j2ee.internal.J2EEVersionConstants; -import org.eclipse.jst.ws.internal.common.J2EEUtils; -import org.eclipse.jst.ws.internal.consumption.command.common.CreateModuleCommand; -import org.eclipse.jst.ws.tests.axis.tomcat.v50.WSWizardTomcat50Test; -import org.eclipse.jst.ws.tests.performance.util.PerformanceJUnitUtils; -import org.eclipse.jst.ws.tests.unittest.WSJUnitConstants; -import org.eclipse.jst.ws.tests.util.JUnitUtils; -import org.eclipse.jst.ws.tests.util.ScenarioConstants; -import org.eclipse.test.performance.Performance; -import org.eclipse.test.performance.PerformanceMeter; - -/** - * Top down performance scenario with Axis and Tomcat v5.0 - */ -public class PerfmsrTDJavaAxisTC50 extends WSWizardTomcat50Test { - - private final String WS_RUNTIMEID_AXIS = WSJUnitConstants.WS_RUNTIMEID_AXIS; - - private final String PROJECT_NAME = WSJUnitConstants.TD_PROJECT_NAME; - - private IFile sourceFile_; - - protected void createProjects() throws Exception{ - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - if (!webProject.exists()){ - createWebModule(PROJECT_NAME, PROJECT_NAME,J2EEVersionConstants.J2EE_1_4_ID); - } - } - - private void createWebModule(String projectNm, String componentName, int j2eeVersion){ - - CreateModuleCommand cmc = new CreateModuleCommand(); - cmc.setJ2eeLevel(new Integer(j2eeVersion).toString()); - cmc.setModuleName(componentName); - cmc.setModuleType(CreateModuleCommand.WEB); - cmc.setProjectName(projectNm); - cmc.setServerFactoryId(SERVERTYPEID_TC50); - cmc.setServerInstanceId(server_.getId()); - cmc.execute(null, null ); - - System.out.println("Done creating Web Project, "+projectNm); - - } - - /** - * Sets up the input data; - * - create project(s), - * - copy resources to workspace - */ - protected void installInputData() throws Exception { - - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - IFolder destFolder = (IFolder)J2EEUtils.getWebContentContainer(webProject); - JUnitUtils.copyTestData("TDJava",destFolder,env_, null); - sourceFile_ = destFolder.getFile(new Path("Echo.wsdl")); - JUnitUtils.syncBuildProject(webProject,env_, null); - } - - /** - * Set the persistent server runtime context preferences - */ - protected void initJ2EEWSRuntimeServerDefaults() throws Exception { - // Set default preferences for Axis and Tomcat v5.0 server - JUnitUtils.setWSRuntimeServer(WS_RUNTIMEID_AXIS, SERVERTYPEID_TC50); - } - - /** - * Set the initial selection - */ - protected void initInitialSelection() throws Exception { - initialSelection_ = new StructuredSelection(sourceFile_); - - } - - /** - * Launches the pop-up command to initiate the scenario - * @throws Exception - */ - public void testTDJavaAxisTC50() throws Exception { - - IStatus status = Status.OK_STATUS; - Performance perf= Performance.getDefault(); - PerformanceMeter performanceMeter= perf.createPerformanceMeter(perf.getDefaultScenarioId(this)); - try { - - performanceMeter.start(); - PerformanceJUnitUtils.launchCreationWizard(ScenarioConstants.WIZARDID_TOP_DOWN,ScenarioConstants.OBJECT_CLASS_ID_IFILE,initialSelection_); - performanceMeter.stop(); - performanceMeter.commit(); - perf.assertPerformance(performanceMeter); - } - finally { - if (performanceMeter==null) - performanceMeter.dispose(); - } - if (status.getSeverity() == Status.OK) - verifyOutput(); - else - throw new Exception(status.getException()); - - } - - /** - * Verify the scenario completed successfully - * @throws Exception - */ - private final void verifyOutput() throws Exception - { - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - IFolder webContentFolder = (IFolder)J2EEUtils.getWebContentContainer(webProject); - - - IFolder wsdlFolder = webContentFolder.getFolder("wsdl"); - assertTrue(wsdlFolder.exists()); - assertTrue(wsdlFolder.members().length > 0); - - //TODO Verify that wsdd contains this Web service - //TODO Verify that the service can be invoked by a client - } - - /** - * Clear workspace if required - */ - protected void deleteInputData() throws Exception { - // Delete the Web project. - IProject webProject = ProjectUtilities.getProject(PROJECT_NAME); - webProject.delete(true,true,null); - - } - -} diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/AllPerformanceTests.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/AllPerformanceTests.java deleted file mode 100644 index 17010224f..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/AllPerformanceTests.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 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.jst.ws.tests.performance; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrBUJavaAxisTC50; -import org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrClientAxisTC50; -import org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrTDJavaAxisTC50; - -public class AllPerformanceTests { - public static Test suite() { - - // TODO: Create a test suite - TestSuite suite = new TestSuite("Test for org.eclipse.jst.ws.tests.performance"); - //$JUnit-BEGIN$ - suite.addTestSuite(PerfmsrBUJavaAxisTC50.class); - suite.addTestSuite(PerfmsrTDJavaAxisTC50.class); - suite.addTestSuite(PerfmsrClientAxisTC50.class); - //$JUnit-END$ - return suite; - } -} diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/plugin/PerformancePlugin.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/plugin/PerformancePlugin.java deleted file mode 100644 index 31f60773a..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/plugin/PerformancePlugin.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.eclipse.jst.ws.tests.performance.plugin; - -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The main plugin class to be used in the desktop. - */ -public class PerformancePlugin extends AbstractUIPlugin { - //The shared instance. - private static PerformancePlugin plugin; - //Resource bundle. - private ResourceBundle resourceBundle; - - /** - * The constructor. - */ - public PerformancePlugin() { - super(); - plugin = this; - try { - resourceBundle = ResourceBundle.getBundle("org.eclipse.jst.ws.internal.test.performance.PerformancePlugin"); - } catch (MissingResourceException x) { - resourceBundle = null; - } - } - - /** - * This method is called upon plug-in activation - */ - public void start(BundleContext context) throws Exception { - super.start(context); - } - - /** - * This method is called when the plug-in is stopped - */ - public void stop(BundleContext context) throws Exception { - super.stop(context); - } - - /** - * Returns the shared instance. - */ - public static PerformancePlugin getDefault() { - return plugin; - } - - /** - * Returns the string from the plugin's resource bundle, - * or 'key' if not found. - */ - public static String getResourceString(String key) { - ResourceBundle bundle = PerformancePlugin.getDefault().getResourceBundle(); - try { - return (bundle != null) ? bundle.getString(key) : key; - } catch (MissingResourceException e) { - return key; - } - } - - /** - * Returns the plugin's resource bundle, - */ - public ResourceBundle getResourceBundle() { - return resourceBundle; - } -} diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/EclipsePerformanceLog.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/EclipsePerformanceLog.java deleted file mode 100644 index f48f1a3a4..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/EclipsePerformanceLog.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.eclipse.jst.ws.tests.performance.util; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.test.performance.Performance; -import org.eclipse.test.performance.PerformanceMeter; -import org.eclipse.wst.common.environment.ILog; - - -public class EclipsePerformanceLog implements ILog { - - private boolean runState = false; - Performance perf = null; - PerformanceMeter performanceMeter= null; - - public boolean isEnabled() { - // TODO Auto-generated method stub - return false; - } - - public boolean isEnabled(String option) { - // TODO Auto-generated method stub - return false; - } - - public void log(int severity, int messageNum, Object caller, String method, Throwable throwable) { - // TODO Auto-generated method stub - - } - - public void log(int severity, String option, int messageNum, Object caller, String method, Throwable throwable) { - // TODO Auto-generated method stub - - } - - public void log(int severity, int messageNum, Object caller, String method, IStatus status) { - // TODO Auto-generated method stub - - } - - public void log(int severity, String option, int messageNum, Object caller, String method, IStatus status) { - // TODO Auto-generated method stub - - } - - public void log(int severity, int messageNum, Object caller, String method, Object object) { - // TODO Auto-generated method stub - - } - - public void log(int severity, String option, int messageNum, Object caller, String method, Object object) { - - if (method.equals("runCommand")) { - - try { - if (!runState) { - // begin performance recording - perf = Performance.getDefault(); - performanceMeter = perf.createPerformanceMeter(((String)object).toString()); - performanceMeter.start(); - runState = true; - } - else { - // end performance recording - performanceMeter.stop(); - performanceMeter.commit(); - perf.assertPerformance(performanceMeter); - performanceMeter.dispose(); - runState = false; - } - } - catch(Exception e) { - // handle exception - } - } - } - -} diff --git a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/PerformanceJUnitUtils.java b/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/PerformanceJUnitUtils.java deleted file mode 100644 index a896dc79a..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/PerformanceJUnitUtils.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 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.jst.ws.tests.performance.util; - -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jst.ws.tests.util.DynamicPopupJUnitWizard; -import org.eclipse.ui.PlatformUI; -import org.eclipse.wst.command.internal.env.ui.eclipse.EclipseStatusHandler; -import org.eclipse.wst.common.environment.IStatusHandler; - - -public class PerformanceJUnitUtils { - - private static void launchWizard(String pluginNS,String wizardId,String objectClassId,IStructuredSelection initialSelection) throws Exception - { - IStatusHandler statusHandler = new EclipseStatusHandler(); - - DynamicPopupJUnitWizard wizard = new DynamicPopupJUnitWizard(statusHandler); - wizard.setInitialData(wizardId); - ProgressMonitorDialog monitor = new ProgressMonitorDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell()); - try { - wizard.runHeadLess(initialSelection, monitor); - } - catch (Exception e){ - e.printStackTrace(); - } - - } - - public static void launchCreationWizard(String wizardId,String objectClassId,IStructuredSelection initialSelection) throws Exception - { - launchWizard("org.eclipse.jst.ws.creation.ui",wizardId,objectClassId,initialSelection); - } - - public static void launchConsumptionWizard(String wizardId,String objectClassId,IStructuredSelection initialSelection) throws Exception - { - launchWizard("org.eclipse.jst.ws.internal.consumption.ui",wizardId,objectClassId,initialSelection); - } - -} diff --git a/tests/org.eclipse.jst.ws.tests.performance/test.xml b/tests/org.eclipse.jst.ws.tests.performance/test.xml deleted file mode 100644 index 183b4ea2d..000000000 --- a/tests/org.eclipse.jst.ws.tests.performance/test.xml +++ /dev/null @@ -1,189 +0,0 @@ -<?xml version="1.0"?> - -<project name="testsuite" default="performance" basedir="."> - <!-- The property ${eclipse-home} should be passed into this script --> - <!-- Set a meaningful default value for when it is not. --> - <!-- <property name="eclipse-home" value="${basedir}\..\.."/> --> - <echo message="basedir ${basedir}" /> - <echo message="eclipse place ${eclipse-home}" /> - - <!-- sets the properties plugin-name, and library-file --> - <property name="plugin-name" value="org.eclipse.jst.ws.tests.performance"/> - <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml"/> - <property name="perf-tests-file" value="${testDir}/performance-tests.xml"/> - <property name="workspace" value="${eclipse-home}/workspace_ws_performance"/> - <property name="extraVMargs" value="-Dorg.eclipse.jst.server.tomcat.50=${testDir}/${tomcat50Dir}"/> - - <!-- This target holds all initialization code that needs to be done for --> - <!-- all tests that are to be run. Initialization for individual tests --> - <!-- should be done within the body of the suite target. --> - <target name="init"> - <delete dir="${workspace}" quiet="true"/> - </target> - - <!-- This target defines the tests that need to be run. --> - <target name="performance_suite"> - - <!-- Iteration 1 --> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrBUJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrClientAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrTDJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <!-- Iteration 2 --> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrBUJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrClientAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrTDJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <!-- Iteration 3 --> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrBUJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrClientAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrTDJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <!-- Iteration 4 --> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrBUJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrClientAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrTDJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <!-- Iteration 5 --> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrBUJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrClientAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - <delete dir="${workspace}" quiet="true"/> - <ant target="ui-test" antfile="${perf-tests-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${workspace}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.jst.ws.tests.axis.tomcat.v50.perfmsr.PerfmsrTDJavaAxisTC50" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - <property name="extraVMargs" value="${extraVMargs}"/> - </ant> - - </target> - - <!-- This target holds code to cleanup the testing environment after --> - <!-- all of the tests have been run. You can use this target to --> - <!-- delete temporary files that have been created. --> - <target name="cleanup"> - <delete dir="${workspace}" quiet="true"/> - </target> - - <!-- This target runs the test suite. Any actions that need to happen --> - <!-- after all the tests have been run should go here. --> - <target name="performance" depends="init,performance_suite,cleanup"> - <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> - <property name="includes" value="org.eclipse.jst.ws.tests.performance*.xml"/> - <property name="output-file" value="${plugin-name}.xml"/> - </ant> - </target> -</project> |