You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2010/01/09 19:28:58 UTC

svn commit: r897513 [1/14] - in /webservices/juddi/trunk/qa: ./ juddi-xlt/ juddi-xlt/config/ juddi-xlt/config/data/ juddi-xlt/config/data/default/ juddi-xlt/lib/ juddi-xlt/src/ juddi-xlt/src/org/ juddi-xlt/src/org/apache/ juddi-xlt/src/org/apache/juddi...

Author: kstam
Date: Sat Jan  9 18:28:54 2010
New Revision: 897513

URL: http://svn.apache.org/viewvc?rev=897513&view=rev
Log:
JUDDI-274, adding XLT test suite

Added:
    webservices/juddi/trunk/qa/   (with props)
    webservices/juddi/trunk/qa/build.xml
    webservices/juddi/trunk/qa/juddi-xlt/   (with props)
    webservices/juddi/trunk/qa/juddi-xlt/build.properties
    webservices/juddi/trunk/qa/juddi-xlt/build.xml
    webservices/juddi/trunk/qa/juddi-xlt/config/
    webservices/juddi/trunk/qa/juddi-xlt/config/data/
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/companies.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/countries.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/emails.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/firstnames.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/lastnames.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/nouns.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/searchphrases.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/sentences.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/streets.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/towns.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/data/default/words.txt
    webservices/juddi/trunk/qa/juddi-xlt/config/default.properties
    webservices/juddi/trunk/qa/juddi-xlt/config/dev-log4j.properties
    webservices/juddi/trunk/qa/juddi-xlt/config/dev.properties
    webservices/juddi/trunk/qa/juddi-xlt/config/jvmargs.cfg
    webservices/juddi/trunk/qa/juddi-xlt/config/log4j.properties
    webservices/juddi/trunk/qa/juddi-xlt/config/project.properties
    webservices/juddi/trunk/qa/juddi-xlt/config/test.properties
    webservices/juddi/trunk/qa/juddi-xlt/lib/
    webservices/juddi/trunk/qa/juddi-xlt/lib/commons-configuration-1.5.jar   (with props)
    webservices/juddi/trunk/qa/juddi-xlt/lib/uddi-client-3.0.0.20090723.201033-6.jar   (with props)
    webservices/juddi/trunk/qa/juddi-xlt/lib/uddi-tck-3.0.0.beta.jar   (with props)
    webservices/juddi/trunk/qa/juddi-xlt/lib/uddi-ws-3.0.0.20090723.192310-12.jar   (with props)
    webservices/juddi/trunk/qa/juddi-xlt/readme.txt
    webservices/juddi/trunk/qa/juddi-xlt/src/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/AbstractJUDDIAction.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/FindBusinessByName.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/FindServices.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/GetAuthenticationToken.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/GetStaticAuthToken.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/RegisterBusiness.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/RegisterService.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/Subscribe.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/UnregisterBusiness.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/SOAP/UnregisterService.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/http/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/http/BrowseJuddiNode.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/http/GoToJuddiPortal.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/http/Homepage.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/http/Login.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/action/http/Logout.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/flow/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/flow/RegisterBusinessFlow.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TDeleteService.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TFindServiceByName.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TGetAuthToken.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TPublishSingleService.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TRegisterBusinessWithServices.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TSubscription.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/TViewNode.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/benchmark/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/benchmark/TFindBusinessBM.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/benchmark/TRegisterBusinessBM.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/benchmark/TSearchableLimitBM.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/benchmark/TSearchableLimitStaticAuthTokenBM.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/http/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/http/TBrowse.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/performance/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/performance/TDeleteBusinessPT.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/performance/TFindBusinessPT.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/test/performance/TRegisterBusinessPT.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/util/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/util/AbstractUDDIClientTestCase.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/util/JUDDIServiceProvider.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/util/LoggingHandler.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/util/UDDIUtils.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/validators/
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/validators/CommonValidator.java
    webservices/juddi/trunk/qa/juddi-xlt/src/org/apache/juddi/xlt/validators/FooterValidator.java
    webservices/juddi/trunk/qa/juddi-xlt/src/uddi.properties
    webservices/juddi/trunk/qa/xlt/   (with props)

Propchange: webservices/juddi/trunk/qa/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Jan  9 18:28:54 2010
@@ -0,0 +1 @@
+target

Added: webservices/juddi/trunk/qa/build.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/qa/build.xml?rev=897513&view=auto
==============================================================================
--- webservices/juddi/trunk/qa/build.xml (added)
+++ webservices/juddi/trunk/qa/build.xml Sat Jan  9 18:28:54 2010
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+		* Copyright 2001-2010 The Apache Software Foundation. * * Licensed
+		under the Apache License, Version 2.0 (the "License"); * you may not
+		use this file except in compliance with the License. * You may obtain
+		a copy of the License at * *
+		http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
+		applicable law or agreed to in writing, software * distributed under
+		the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY KIND, either express or implied. * See the
+		License for the specific language governing permissions and *
+		limitations under the License. * */
+	-->
+<project default="setup" basedir=".">
+	
+	<target name="setup">
+		<mkdir dir="xlt"/>
+		<get src="https://lab.xceptance.de/releases/xlt/3.3.0/xlt-3.3.0-r3088.zip"
+			 dest="${basedir}/xlt/xlt-3.3.0-r3088.zip" verbose="true" usetimestamp="true" />
+		<unzip src="${basedir}/xlt/xlt-3.3.0-r3088.zip" dest="${basedir}/target" overwrite="false"/>
+    </target>
+	
+	<target name="configure" depends="setup">
+		<copy file="${basedir}/xlt/license.xml.donotcheckin" tofile="${basedir}/target/xlt-3.3.0-r3088/config/license.xml"/>
+		<replace file="${basedir}/target/xlt-3.3.0-r3088/config/mastercontroller.properties"
+		   token="com.xceptance.xlt.mastercontroller.agentfiles = samples/testsuite"
+		   value="com.xceptance.xlt.mastercontroller.agentfiles = ${basedir}/juddi-xlt" />
+		<chmod dir="target/xlt-3.3.0-r3088/bin" perm="ugo+rx" includes="**/*.sh"/>
+	</target>
+	
+	<target name="loadtest" depends="configure">
+	   <ant antfile="juddi-xlt/build.xml" target="loadtest" />
+	</target>
+	
+</project>
\ No newline at end of file

Propchange: webservices/juddi/trunk/qa/juddi-xlt/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Jan  9 18:28:54 2010
@@ -0,0 +1 @@
+classes

Added: webservices/juddi/trunk/qa/juddi-xlt/build.properties
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/qa/juddi-xlt/build.properties?rev=897513&view=auto
==============================================================================
--- webservices/juddi/trunk/qa/juddi-xlt/build.properties (added)
+++ webservices/juddi/trunk/qa/juddi-xlt/build.properties Sat Jan  9 18:28:54 2010
@@ -0,0 +1,14 @@
+# configure the location of XLT 
+fs = ${file.separator}
+xlt.home.dir = ..${fs}target${fs}xlt-3.3.0-r3088${fs}
+xlt.bin.dir = ${xlt.home.dir}${fs}bin
+xlt.classes.dir = ${xlt.home.dir}${fs}classes
+xlt.lib.dir = ${xlt.home.dir}${fs}lib
+
+# configure basic settings 
+test.src.dir = ${fs}src
+test.classes.dir = ${fs}classes
+test.config.dir = ${fs}config
+test.lib.dir = ${fs}lib
+test.results.dir = ${fs}results
+test.cases = com${fs}xceptance${fs}xlt${fs}samples${fs}tests${fs}**${fs}T*.java

Added: webservices/juddi/trunk/qa/juddi-xlt/build.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/qa/juddi-xlt/build.xml?rev=897513&view=auto
==============================================================================
--- webservices/juddi/trunk/qa/juddi-xlt/build.xml (added)
+++ webservices/juddi/trunk/qa/juddi-xlt/build.xml Sat Jan  9 18:28:54 2010
@@ -0,0 +1,123 @@
+<?xml version="1.0"?>
+<!--
+		* Copyright 2001-2010 The Apache Software Foundation. * * Licensed
+		under the Apache License, Version 2.0 (the "License"); * you may not
+		use this file except in compliance with the License. * You may obtain
+		a copy of the License at * *
+		http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
+		applicable law or agreed to in writing, software * distributed under
+		the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY KIND, either express or implied. * See the
+		License for the specific language governing permissions and *
+		limitations under the License. * */
+	-->
+<project default="all" basedir=".">
+
+	<!-- 
+        Reads the properties from a file.  
+    -->
+	<property file="${basedir}/build.properties" />
+
+	<!-- 
+        Builds the XLT class path for further reference.  
+    -->
+	<path id="xlt.class.path">
+		<pathelement path="${xlt.classes.dir}" />
+		<fileset dir="${xlt.lib.dir}">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${test.lib.dir}">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<!-- 
+        Deletes any result file from a previous test run.  
+    -->
+	<target name="clean">
+		<delete includeEmptyDirs="true" failonerror="false">
+			<fileset dir="${test.classes.dir}" includes="**/*" />
+			<fileset dir="${test.results.dir}" includes="**/*" />
+		</delete>
+	</target>
+
+	<!-- 
+        Compiles the Java sources in ${test.src.dir} to ${test.classes.dir}. 
+        Any non-Java file in the sources dir will be copied there, too.
+    -->
+	<target name="compile">
+		<mkdir dir="${test.classes.dir}" />
+		<javac srcdir="${test.src.dir}" destdir="${test.classes.dir}" debug="on" optimize="off" deprecation="on">
+			<classpath refid="xlt.class.path" />
+		</javac>
+		<copy todir="${test.classes.dir}">
+			<fileset dir="${test.src.dir}">
+				<exclude name="**/*.java" />
+			</fileset>
+		</copy>
+	</target>
+
+	<!-- 
+        Performs a functional test by running the configured junit tests. 
+    -->
+	<target name="test" depends="compile">
+		<!-- 
+            Run the junit tests. 
+        -->
+		<junit forkmode="once" printsummary="on">
+			<!-- build the class path -->
+			<classpath>
+				<path refid="xlt.class.path" />
+				<pathelement location="${test.classes.dir}" />
+			</classpath>
+			<!-- configure the environment for XLT-based test cases -->
+			<sysproperty key="com.xceptance.xlt.home" value="${basedir}" />
+			<sysproperty key="com.xceptance.xlt.data.directory" value="${test.config.dir}/data" />
+			<sysproperty key="log4j.configuration" value="file:${test.config.dir}/dev-log4j.properties" />
+			<!-- configure the test result formatter -->
+			<formatter type="xml" />
+			<!-- execute all configured tests -->
+			<batchtest fork="yes" todir="${test.results.dir}">
+				<fileset dir="${test.src.dir}">
+					<include name="${test.cases}" />
+				</fileset>
+			</batchtest>
+		</junit>
+		<!-- 
+            Create a test report from the test results. 
+        -->
+		<junitreport todir="${test.results.dir}">
+			<!-- determine the test result files -->
+			<fileset dir="${test.results.dir}">
+				<include name="TEST-*.xml" />
+			</fileset>
+			<!-- generate the HTML report -->
+			<report format="noframes" todir="${test.results.dir}" />
+		</junitreport>
+	</target>
+
+	<!-- 
+        Performs a load test with the test cases configured in the test suite.
+        For this, the XLT load test environment is used. 
+    -->
+	<target name="loadtest" depends="compile">
+		<!-- 
+			Determine the command to run depending on the OS.
+		-->
+		<condition property="command" value="mastercontroller.cmd" else="mastercontroller.sh">
+			<os family="windows" />
+		</condition>
+		<!-- 
+            Run the master controller using an embedded agent controller. 
+        -->
+		<exec executable="${xlt.bin.dir}/${command}">
+			<arg line="-auto -embedded -report" />
+		</exec>
+	</target>
+
+	<!-- 
+        Executes all targets one after the other.  
+    -->
+	<target name="all" depends="clean, test, loadtest" />
+
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org