You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pe...@apache.org on 2005/02/23 22:31:57 UTC
cvs commit: ws-axis/c/tests/auto_build/wsi README.txt analyzerConfig.xml build.xml monitorConfig.xml
perryan 2005/02/23 13:31:57
Added: c/tests/auto_build/wsi README.txt analyzerConfig.xml
build.xml monitorConfig.xml
Log:
Ant based framework for running the Axis C++ tests through the WS-I test tools for verify conformance
Revision Changes Path
1.1 ws-axis/c/tests/auto_build/wsi/README.txt
Index: README.txt
===================================================================
#
# WS-I test tool automation (See http://ws-i.org)
#
# The purpose of the scripts in this directory is to run the standard Axis C++
# tests through the WS-I test monitor and WS-I conformance analyzer to check that
# the SOAP messages being created by the Axis C++ product adhere to the WS-I
# standards.
#
# This is designed to work with the WS-I 1.1 Basic Profile only and will only
# check the request and response messages on the wire.
#
# The analyzer config file is BasicProfile_1.1_TAD.xml
#
##################################################################################
To run the test type the following
ant -Dwsi.home=xxx -Ddir.xmlParser=xxx -Dtest.host=xxx -Dtest.port=xxx
[-Ddir.release=xxx -Dtest.list=xxx]
Options:
--------
-Dwsi.home=/opt/wsi-test-tools
This is the location of the WS-I test tools package.
This is a mandatory property.
-Ddir.xmlParser=$XERCES_HOME/lib
This is the location of the XML parser external package libraries
This is a mandatory property.
-Dtest.host=lion
This is the name of the server that the services are running on
This is a mandatory property.
-Dtest.port=9080
This is the port that the services are listening on
This is a mandatory property.
-Ddir.release
This will need to be specified if the packaging step has been performed.
If only the Ant build phase has been done then this need not be specified.
Default: as specified in Axis C++ default platform properties file.
-Dtest.list=/home/andyp/cwssBuild/src/ws-axis/c/tests/auto_build/wsi/test.list
This is the list of the tests to run through the WS-I test tool.
Default: all tests.
Output:
-------
The test output will be in the standard location ${dir.obj}/test/generated.
The WS-I output for the tests will be written to ${dir.obj}/test/wsi/reports
To view the WS-I reports please refer to the WS-I documentation.
1.1 ws-axis/c/tests/auto_build/wsi/analyzerConfig.xml
Index: analyzerConfig.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2002-2003 by The Web Services-Interoperability Organization (WS-I) and
Certain of its Members. All Rights Reserved.
Notice
The material contained herein is not a license, either expressly or impliedly, to any
intellectual property owned or controlled by any of the authors or developers of this
material or WS-I. The material contained herein is provided on an "AS IS" basis and to
the maximum extent permitted by applicable law, this material is provided AS IS AND WITH
ALL FAULTS, and the authors and developers of this material and WS-I hereby disclaim all
other warranties and conditions, either express, implied or statutory, including, but not
limited to, any (if any) implied warranties, duties or conditions of merchantability,
of fitness for a particular purpose, of accuracy or completeness of responses, of results,
of workmanlike effort, of lack of viruses, and of lack of negligence. ALSO, THERE IS NO
WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO
DESCRIPTION OR NON-INFRINGEMENT WITH REGARD TO THIS MATERIAL.
IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR WS-I BE LIABLE TO ANY OTHER
PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE,
LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES
WHETHER UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR
ANY OTHER AGREEMENT RELATING TO THIS MATERIAL, WHETHER OR NOT SUCH PARTY HAD ADVANCE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
WS-I License Information
Use of this WS-I Material is governed by the WS-I Test License and other licenses.
Information on these licenses are contained in the README.txt and ReleaseNotes.txt files.
By downloading this file, you agree to the terms of these licenses.
How To Provide Feedback
The Web Services-Interoperability Organization (WS-I) would like to receive input,
suggestions and other feedback ("Feedback") on this work from a wide variety of
industry participants to improve its quality over time.
By sending email, or otherwise communicating with WS-I, you (on behalf of yourself if
you are an individual, and your company if you are providing Feedback on behalf of the
company) will be deemed to have granted to WS-I, the members of WS-I, and other parties
that have access to your Feedback, a non-exclusive, non-transferable, worldwide, perpetual,
irrevocable, royalty-free license to use, disclose, copy, license, modify, sublicense or
otherwise distribute and exploit in any manner whatsoever the Feedback you provide regarding
the work. You acknowledge that you have no expectation of confidentiality with respect to
any Feedback you provide. You represent and warrant that you have rights to provide this
Feedback, and if you are providing Feedback on behalf of a company, you represent and warrant
that you have the rights to provide Feedback on behalf of your company. You also acknowledge
that WS-I is not required to review, discuss, use, consider or in any way incorporate your
Feedback into future versions of its work. If WS-I does incorporate some or all of your
Feedback in a future version of the work, it may, but is not obligated to include your name
(or, if you are identified as acting on behalf of your company, the name of your company) on
a list of contributors to the work. If the foregoing is not acceptable to you and any company
on whose behalf you are acting, please do not provide any Feedback.
WS-I members should direct feedback on this document to wsi_testing@lists.ws-i.org;
non-members should direct feedback to wsi-tools@ws-i.org.
-->
<wsi-analyzerConfig:configuration name="Sample Basic Profile Analyzer Configuration"
xmlns:wsi-analyzerConfig="http://www.ws-i.org/testing/2003/03/analyzerConfig/">
<wsi-analyzerConfig:description>
This file contains a sample of the configuration file for
the Basic Profile Analyzer, which can be used with the
other sample files.
</wsi-analyzerConfig:description>
<wsi-analyzerConfig:verbose>false</wsi-analyzerConfig:verbose>
<wsi-analyzerConfig:assertionResults type="all" messageEntry="true" failureMessage="true"/>
<wsi-analyzerConfig:reportFile replace="true" location="report.xml">
<wsi-analyzerConfig:addStyleSheet href="WWWW/common/xsl/report.xsl" type="text/xsl"/>
</wsi-analyzerConfig:reportFile>
<wsi-analyzerConfig:testAssertionsFile>
WWWW/common/profiles/BasicProfile_1.1_TAD.xml
</wsi-analyzerConfig:testAssertionsFile>
<wsi-analyzerConfig:logFile correlationType="endpoint">
LLLLLLLL
</wsi-analyzerConfig:logFile>
</wsi-analyzerConfig:configuration>
1.1 ws-axis/c/tests/auto_build/wsi/build.xml
Index: build.xml
===================================================================
<project name="Additional framework" default="runTestFrameworks" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<!-- set top to ws-axis/c. We are in tests/auto_build/wsi -->
<property name="dir.top" value="${basedir}/../../.."/>
<property name="dir.test" value="${dir.top}"/>
<property name="dir.out" value="${dir.top}/../../../obj"/>
<!-- <property name="dir.release" value="${dir.out}/package/wscc-1.0-Linux"/> -->
<property name="dir.autotests" value="../testcases"/>
<property name="test.list" value="${dir.autotests}/test.list"/>
<property name="dir.reports" value="${dir.out}/test/wsi/reports"/>
<property name="dir.test.obj" value="${dir.out}/test/wsi/"/>
<property environment="env"/>
<property name="dir.xmlParser" value="${env.XERCES_HOME}"/>
<property name="dir.axisJARs" value="${env.AXISJAVA_LIB}"/>
<property name="wsi.home" value="${env.WSI_HOME}"/>
<target name="setProperties">
<condition property="suffix" value="sh">
<not>
<os family="windows"/>
</not>
</condition>
<condition property="suffix" value="bat">
<os family="windows"/>
</condition>
</target>
<target name="runTestFrameworks" depends="setProperties, wsi, wsdl2ws"/>
<target name="wsdl2ws" />
<target name="cleanWSIReports">
<delete dir="${dir.reports}"/>
<mkdir dir="${dir.reports}"/>
</target>
<target name="wsi" depends="cleanWSIReports">
<path id="test_properties">
<fileset dir="${dir.autotests}/tests" includesfile="${test.list}"/>
</path>
<foreach target="runWSI" param="test.property.path" inheritall="true">
<path refid="test_properties"/>
</foreach>
</target>
<target name="runWSI">
<basename property="test.name" file="${test.property.path}" suffix="xml"/>
<basename property="test.property.file" file="${test.property.path}"/>
<trycatch>
<try>
<parallel timeout="70000" failonany="false">
<antcall target="startWSIMonitor" inheritall="true"/>
<sequential>
<!-- Wait for jvm to start monitor program -->
<sleep seconds="5"/>
<!-- Run the client test -->
<ant antfile="${dir.test}/test.xml" dir="${dir.top}" inheritall="false">
<!--
<property name="dir.release" value="${dir.release}"/>
<property name="dir.include" value="${dir.release}/include"/>
<property name="dir.obj" value="${dir.test.obj}"/>
<property name="HTTP.SSLChannel.dir" value="${env.GSKIT_HOME}"/>
-->
<property name="dir.xmlParser" value="${dir.xmlParser}"/>
<property name="dir.axisJARs" value="${dir.axisJARs}"/>
<property name="testHost" value="localhost"/>
<property name="testPort" value="4040"/>
<property name="test.name" value="${test.name}"/>
<property name="test.timeout" value="100000"/>
<property name="test.nomonitor" value="true"/>
</ant>
<!-- <sleep seconds="25"/> -->
</sequential>
</parallel>
</try>
<catch>
<echo message="Exception in monitor caught it in Ant try/catch block while trying to run test ${testName}"/>
</catch>
<finally>
<sleep seconds="1"/>
</finally>
</trycatch>
<antcall target="startWSIAnalyzer" inheritall="true"/>
</target>
<target name="startWSIMonitor" depends="modifyMonitorConfig">
<exec executable="${wsi.home}/java/bin/Monitor.${suffix}" dir="${wsi.home}/java" vmlauncher="false">
<env key="WSI_HOME" value="${wsi.home}"/>
<arg line="-config ${dir.reports}/mon_${test.name}.xml"/>
</exec>
</target>
<target name="startWSIAnalyzer" depends="modifyAnalyzerConfig">
<exec executable="${wsi.home}/java/bin/Analyzer.${suffix}" dir="${wsi.home}/java" vmlauncher="false">
<env key="WSI_HOME" value="${wsi.home}"/>
<arg line="-config ${dir.reports}/ana_${test.name}.xml"/>
<arg line="-reportFile ${dir.reports}/${test.name}.xml"/>
<arg line="-logFile ${dir.reports}/log_${test.name}.xml"/>
</exec>
</target>
<target name="modifyMonitorConfig">
<copy file="${basedir}/monitorConfig.xml" tofile="${dir.reports}/mon_${test.name}.xml"/>
<replace file="${dir.reports}/mon_${test.name}.xml" token="XXXXXXXX" value="${dir.reports}/log_${test.property.file}"/>
<replace file="${dir.reports}/mon_${test.name}.xml" token="HHHH" value="${test.host}"/>
<replace file="${dir.reports}/mon_${test.name}.xml" token="PPPP" value="${test.port}"/>
</target>
<target name="modifyAnalyzerConfig">
<copy file="${basedir}/analyzerConfig.xml" tofile="${dir.reports}/ana_${test.name}.xml"/>
<replace file="${dir.reports}/ana_${test.name}.xml" token="WWWW" value="${wsi.home}"/>
<replace file="${dir.reports}/ana_${test.name}.xml" token="LLLLLLLL" value="${dir.reports}/log_${test.name}.xml"/>
</target>
</project>
1.1 ws-axis/c/tests/auto_build/wsi/monitorConfig.xml
Index: monitorConfig.xml
===================================================================
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (c) 2002-2003 by The Web Services-Interoperability Organization (WS-I) and
Certain of its Members. All Rights Reserved.
Notice
The material contained herein is not a license, either expressly or impliedly, to any
intellectual property owned or controlled by any of the authors or developers of this
material or WS-I. The material contained herein is provided on an "AS IS" basis and to
the maximum extent permitted by applicable law, this material is provided AS IS AND WITH
ALL FAULTS, and the authors and developers of this material and WS-I hereby disclaim all
other warranties and conditions, either express, implied or statutory, including, but not
limited to, any (if any) implied warranties, duties or conditions of merchantability,
of fitness for a particular purpose, of accuracy or completeness of responses, of results,
of workmanlike effort, of lack of viruses, and of lack of negligence. ALSO, THERE IS NO
WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO
DESCRIPTION OR NON-INFRINGEMENT WITH REGARD TO THIS MATERIAL.
IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR WS-I BE LIABLE TO ANY OTHER
PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE,
LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES
WHETHER UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR
ANY OTHER AGREEMENT RELATING TO THIS MATERIAL, WHETHER OR NOT SUCH PARTY HAD ADVANCE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
WS-I License Information
Use of this WS-I Material is governed by the WS-I Test License and other licenses.
Information on these licenses are contained in the README.txt and ReleaseNotes.txt files.
By downloading this file, you agree to the terms of these licenses.
How To Provide Feedback
The Web Services-Interoperability Organization (WS-I) would like to receive input,
suggestions and other feedback ("Feedback") on this work from a wide variety of
industry participants to improve its quality over time.
By sending email, or otherwise communicating with WS-I, you (on behalf of yourself if
you are an individual, and your company if you are providing Feedback on behalf of the
company) will be deemed to have granted to WS-I, the members of WS-I, and other parties
that have access to your Feedback, a non-exclusive, non-transferable, worldwide, perpetual,
irrevocable, royalty-free license to use, disclose, copy, license, modify, sublicense or
otherwise distribute and exploit in any manner whatsoever the Feedback you provide regarding
the work. You acknowledge that you have no expectation of confidentiality with respect to
any Feedback you provide. You represent and warrant that you have rights to provide this
Feedback, and if you are providing Feedback on behalf of a company, you represent and warrant
that you have the rights to provide Feedback on behalf of your company. You also acknowledge
that WS-I is not required to review, discuss, use, consider or in any way incorporate your
Feedback into future versions of its work. If WS-I does incorporate some or all of your
Feedback in a future version of the work, it may, but is not obligated to include your name
(or, if you are identified as acting on behalf of your company, the name of your company) on
a list of contributors to the work. If the foregoing is not acceptable to you and any company
on whose behalf you are acting, please do not provide any Feedback.
WS-I members should direct feedback on this document to wsi_testing@lists.ws-i.org;
non-members should direct feedback to wsi-tools@ws-i.org.
-->
<wsi-monConfig:configuration
xmlns:wsi-monConfig="http://www.ws-i.org/testing/2003/03/monitorConfig/">
<wsi-monConfig:comment>
WS-I config for Axis automation
</wsi-monConfig:comment>
<wsi-monConfig:logFile replace="true" location="XXXXXXXX">
<wsi-monConfig:addStyleSheet href="../common/xsl/log.xsl" type="text/xsl"/>
</wsi-monConfig:logFile>
<!-- logDuration is the max time to wait for new connections. Shutdown will start after this many seconds -->
<wsi-monConfig:logDuration>50</wsi-monConfig:logDuration>
<!-- cleanupTimeoutSeconds is the max time to wait for responses after logDuration has finished -->
<wsi-monConfig:cleanupTimeoutSeconds>15</wsi-monConfig:cleanupTimeoutSeconds>
<wsi-monConfig:manInTheMiddle>
<wsi-monConfig:redirect>
<wsi-monConfig:comment>Host HHHH port PPPP.</wsi-monConfig:comment>
<wsi-monConfig:listenPort>4040</wsi-monConfig:listenPort>
<wsi-monConfig:schemeAndHostPort>http://HHHH:PPPP</wsi-monConfig:schemeAndHostPort>
<wsi-monConfig:maxConnections>60</wsi-monConfig:maxConnections>
<wsi-monConfig:readTimeoutSeconds>10</wsi-monConfig:readTimeoutSeconds>
</wsi-monConfig:redirect>
</wsi-monConfig:manInTheMiddle>
</wsi-monConfig:configuration>