harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r531796 [1/5] - in /harmony/enhanced/buildtest/branches/2.0: adaptors/JettyScenario/ tests/ tests/JettyScenario/ tests/JettyScenario/resources/ tests/JettyScenario/resources/JettyScenario/ tests/JettyScenario/src/
Date Tue, 24 Apr 2007 07:21:44 GMT
Author: smishura
Date: Tue Apr 24 00:21:40 2007
New Revision: 531796

URL: http://svn.apache.org/viewvc?view=rev&rev=531796
Log:
Apply patch from HARMONY-3530:
([testing] Contribution of the automated scenario for Jetty)

Added:
    harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/
    harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/README.txt   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/adaptor.xml   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/cc-config.xml   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/parameters.xml   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/static_content.txt   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/static_content_ungzipped.txt   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/src/
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/src/JettyScenario.java   (with props)
    harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/src/JettyTestCase.java   (with props)

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/README.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/README.txt?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/README.txt (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/README.txt Tue Apr 24 00:21:40 2007
@@ -0,0 +1,175 @@
+                         ========================    
+                         Jetty automated scenario
+                         ========================    
+
+---------------
+Archive Content
+---------------
+
+This archive contains automated scenario which performs user-like actions such
+as viewing and navigating with browser through web site hosted by Mortbay*
+Jetty application server.
+
+ +/
+  |-+adaptors/             - Adaptors connecting test suites to Build Test
+  |  |
+  |  |-+JettyScenario/     - Jetty scenario adaptor directory
+  |     |
+  |     |--adaptor.xml     - The adaptor
+  |     |
+  |     |--parameters.xml  - Parameters file
+  |     |
+  |     |--cc-config.xml   - Cruise Control configuration file
+  |
+  |-+tests/                - Tests suites placed under Build Test repository
+  |  |
+  |  |-+JettyScenario/     - Jetty scenario root directory
+  |     |
+  |     |-+resources/      - Resources required for Jetty scenario
+  |     |
+  |     |-+src/            - Jetty scenario sources
+  |
+  |-README.txt             - Readme File
+
+
+----------------
+Scenario purpose
+----------------
+
+The Jetty scenario was created in order to test if some JRE (e.g. Apache
+Harmony) is able to run Jetty server and it works just fine. This scenario
+is far from covering the whole Jetty functionality, for now it just tests
+some basic things such as:
+
+ o Server successfully starts and stops using given JRE
+ o Server successfully deploys its test web applications
+ o Some of the test applications works properly, i.e. user addresses web
+   site links and receives valid responses (pages)
+
+The scenario contains 5 testcases which test the following:
+
+ o Initial(home) page of the site hosted by Jetty
+ o Page with static content of large size
+ o Servlet-based pages
+ o JSP-based page
+ o Page with static content archived with GZip
+
+
+------------------
+Scenario mechanism
+------------------
+
+The scenario uses Gargoyle Software* HtmlUnit framework which emulates web
+browser. Using this tool Jetty scenario simulates user actions as they were
+done with usual browser (e.g. Netscape or Firefox). Actions are implemented
+in java using HtmlUnit API in terms of HTML language. HtmlUnit in its turn
+converts API calls to HTTP requests and receives responses for them. Then
+scenario checks if responses received for certain requests are valid, thus
+checking that server generating responses works fine.
+
+
+-------------------
+Scenario automation
+-------------------
+
+The scenario is automated using new Build Test infrastructure (HARMONY-3501).
+The new BT provides features which allow:
+
+  o Run the scenario on just built classlib and drlvm
+  o Run the scenario in standalone mode (once)
+  o Run the scenario in continuous mode using Cruise Control tool
+
+
+------------------
+Scenario execution
+------------------
+
+The following steps should by made to run Jetty scenario:
+
+1. Check out Build Test installer from SVN
+
+     svn co -r HEAD -N http://svn.apache.org/repos/asf/harmony/enhanced/buildtest/trunk
+
+2. Setup Build Test and required suites with the following command:
+
+     ant -Dtest.suites="classlib,drlvm,JettyScenario" setup
+
+3. Set values of required parameters in generated file:
+
+     required-parameters.properties
+
+   Note, that if you need to run scneario on previously built drlvm and
+   classlib you must not modify parameters jetty.server.jre and 
+   scenario.framework.jre.
+
+   If you need you may also explicitely set values of optional parameters
+   in adaptors/JettyScenario/parameters.xml file.
+
+4. Run the scneario on previously built drlvm and classib with command:
+
+     ant -Dtest.suites="classlib,drlvm,JettyScenario" run
+
+   or run the scenario in continuous mode with command:
+
+     ant -Dtest.suites="classlib,drlvm,JettyScenario" run-cc
+    
+5. Run the scneario on explicitely defined JRE with command:
+
+     ant -Dtest.suites=JettyScenario run
+
+   or
+
+     ant -Dtest.suites=JettyScenario run-cc
+
+
+-----------------
+Known limitations
+-----------------
+
+If you want to try this scenario without checkouts of BT and the scenario from
+SVN, you should do the following:
+
+1. Download BT from JIRA: http://issues.apache.org/jira/browse/HARMONY-3501
+
+2. Unzip BT into some directory (e.g. WORKDIR)
+
+3. Unzip this archive into WORKDIR
+
+4. Copy directory JettyScenario from WORKDIR/tests to WORKDIR/build/checkouts
+
+5. Comment in WORKDIR/adaptors/JettyScenario/adaptor.xml all tasks starting:
+
+     <exec executable="svn" ...
+
+   there should be only two tasks (first in setup target and second in update
+   one).
+
+6. Make steps from 2nd of above instructions (scenario execution).
+
+
+-----------------------------------------------
+Tools and libraries required for Jetty scenario
+-----------------------------------------------
+
+The scenario requires the same tools and libraries preinstalled on your system
+as Build Test framework itself:
+
+  1) JDK version 1.5.0
+     http://java.sun.com
+     http://www.jrockit.com/
+
+  2) Apache Ant, version 1.6.5 or higher 
+     http://ant.apache.org
+
+  3) Subversion tool (svn)
+     http://subversion.tigris.org/
+
+All other external dependencies such as Jetty, HtmlUnit, JUnit will be
+automatically downloaded on the setup phase.
+
+
+----------
+Disclaimer
+----------
+
+*) Other brands and names are the property of their respective owners.

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/adaptor.xml?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/adaptor.xml Tue Apr 24 00:21:40 2007
@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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. -->
+
+<!-- ====================================================================== 
+                            BT Adaptor for Jetty scenario
+     ====================================================================== -->
+<project name="JettyScenario" default="run" basedir=".">
+
+    <condition property="ps" value="\" else="/">
+            <os family="Windows"/>
+    </condition>
+    <property name="scenario.dir" location="${checkouts.dir}${ps}${suite.name}"/>
+    <property name="scenario.bin.dir" location="${scenario.dir}${ps}classes"/>
+    <property name="scenario.results.dir" location="${scenario.dir}${ps}results"/>
+
+    <target name="setup">
+        <condition property="ps" value="\" else="/">
+            <os family="Windows"/>
+        </condition>
+        <log message="============= Adaptor for ${suite.name}: Set Up .."/>
+        <log message=""/>
+        <log message="=== External dependencies ========================"/>
+        <log message="Jetty exists:      ${JettyScenario.parameters.external.jetty-6.1.2rc1.exists}"/>
+        <log message="Jetty basename:    ${JettyScenario.parameters.external.jetty-6.1.2rc1.basename}"/>
+        <log message="Jetty location:    ${ext.jetty-6.1.2rc1.location}"/>
+        <log message="=================================================="/>
+        <log message="HtmlUnit exists:   ${JettyScenario.parameters.external.htmlunit-1.11.exists}"/>
+        <log message="HtmlUnit basename: ${JettyScenario.parameters.external.htmlunit-1.11.basename}"/>
+        <log message="HtmlUnit location: ${ext.htmlunit-1.11.location}"/>
+        <log message="=================================================="/>
+        <log message="JUnit exists:      ${JettyScenario.parameters.external.junit-3.8.2.exists}"/>
+        <log message="JUnit basename:    ${JettyScenario.parameters.external.junit-3.8.2.basename}"/>
+        <log message="JUnit location:    ${ext.junit-3.8.2.location}"/>
+        <log message="=================================================="/>
+        <log message=""/>
+        <log message="=== Required parameters =========================="/>
+        <log message="Jetty JRE:    ${JettyScenario.parameters.required.jetty.server.jre}"/>
+        <log message="Scenario JRE: ${JettyScenario.parameters.required.scenario.framework.jre}"/>
+        <log message="=================================================="/>
+
+        <!--
+            Performing scenario setup in the following order:
+
+            1. Create working directory
+            2. Checkout scenario sources and resources from svn
+            3. Compile scenario sources
+        -->
+
+        <mkdir dir="${scenario.bin.dir}"/>
+
+        <exec executable="svn" dir="${trunk.dir}" failonerror="true">
+            <arg line="co ${svn.url}"/>
+            <arg line="${trunk.dir}"/>
+        </exec>
+
+        <javac srcdir="${scenario.dir}${ps}src" destdir="${scenario.bin.dir}">
+            <classpath>
+                <pathelement location="${scenario.bin.dir}"/>
+                <pathelement location="${ext.junit-3.8.2.location}"/>
+                <fileset dir="${ext.htmlunit-1.11.location}">
+                    <include name="lib${ps}*.jar"/>
+                </fileset>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="update">
+        <log message="============= Adaptor for ${suite.name}: Update .."/>
+        <exec executable="svn" dir="${trunk.dir}" failonerror="true">
+            <arg line="update"/>
+        </exec>
+    </target>
+
+    <target name="run">
+        <log message="============= Adaptor for ${suite.name}: Run .."/>
+        <condition property="exe.ext" value=".exe" else="">
+            <os family="Windows"/>
+        </condition>
+        <condition property="ps" value="\" else="/">
+            <os family="Windows"/>
+        </condition>
+
+        <!--
+            Performing scenario run in the following order:
+
+            1. Create directory for scenario results
+            2. Start Jetty server
+            3. Run the scenario by 'junit' task
+            4. Stop Jetty server
+            5. Collect logs and results in results directory
+        -->
+
+        <mkdir dir="${scenario.results.dir}"/>
+
+        <parallel>
+            <sequential>
+                <log message="Starting Jetty server"/>
+                <java jvm="${JettyScenario.parameters.required.jetty.server.jre}${ps}bin${ps}java${exe.ext}"
+                      dir="${ext.jetty-6.1.2rc1.location}"
+                      classname="start.jar"
+                      fork="true"
+                      spawn="false"
+                      output="${scenario.results.dir}${ps}jetty.log">
+                    <jvmarg value="-Djetty.port=7070"/>
+                    <jvmarg value="-DSTOP.PORT=4444"/>
+                    <jvmarg value="-DSTOP.KEY=kill"/>
+                    <jvmarg value="-jar"/>
+                </java>
+            </sequential>
+
+            <sequential>
+                <sleep milliseconds="${JettyScenario.parameters.optional.jetty.server.timeout}"/>
+
+                <junit jvm="${JettyScenario.parameters.required.scenario.framework.jre}${ps}bin${ps}java${exe.ext}"
+                       dir="${scenario.dir}"
+                       fork="true"
+                       forkmode="once"
+                       haltonerror="false"
+                       haltonfailure="false"
+                       printsummary="on"
+                       failureproperty="scenario.failed">
+                    <jvmarg value="-Djetty.scenario.resources.path=${scenario.dir}${ps}resources"/>
+                    <jvmarg value="-Djetty.scenario.results.path=${scenario.results.dir}"/>
+                    <jvmarg value="-Djetty.scenario.savepages=${JettyScenario.parameters.optional.do.save.pages}"/>
+                    <jvmarg value="-Djetty.server.startup.timeout=${JettyScenario.parameters.optional.jetty.server.timeout}"/>
+                    <jvmarg value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"/>
+                    <jvmarg value="-Dorg.apache.commons.logging.simplelog.defaultlog=error"/>
+                    <classpath >
+                        <pathelement location="${scenario.bin.dir}"/>
+                        <pathelement location="${ext.junit-3.8.2.location}"/>
+                        <fileset dir="${ext.htmlunit-1.11.location}">
+                            <include name="lib${ps}*.jar"/>
+                        </fileset>
+                    </classpath>
+                    <formatter type="plain" />
+                    <test name="JettyScenario" todir="${scenario.results.dir}"/>
+                </junit>
+
+                <echo file="${scenario.results.dir}${ps}result.property">JettyScenario.failed=${scenario.failed}</echo>
+
+                <log message="Stopping Jetty server"/>
+                <java jvm="${JettyScenario.parameters.required.jetty.server.jre}${ps}bin${ps}java${exe.ext}"
+                      dir="${ext.jetty-6.1.2rc1.location}"
+                      classname="start.jar"
+                      fork="true"
+                      spawn="false"
+                      failonerror="false">
+                    <jvmarg value="-Djetty.port=7070"/>
+                    <jvmarg value="-DSTOP.PORT=4444"/>
+                    <jvmarg value="-DSTOP.KEY=kill"/>
+                    <jvmarg value="-jar"/>
+                    <arg value="--stop"/>
+                </java>
+                <fail message="Jetty scenario failed" if="scenario.failed"/>
+            </sequential>
+        </parallel>
+
+    </target>
+
+    <target name="publish">
+        <condition property="exe.ext" value=".exe" else="">
+            <os family="Windows"/>
+        </condition>
+        <condition property="ps" value="\" else="/">
+            <os family="Windows"/>
+        </condition>
+        <condition property="use.mail.publisher">
+            <equals arg1="${sendmail}" arg2="yes" casesensitive="false" trim="true"/>
+        </condition>
+        <property file="${resultfile}"/>
+        <condition property="build.failed">
+            <equals arg1="${JettyScenario.failed}" arg2="true" casesensitive="false"/>
+        </condition>
+        <property name="buildname" value="${os.name} ${os.version} ${os.arch}"/>
+        <antcall target="-build-failed-subject"/>
+        <antcall target="-build-passed-subject"/>
+    </target>
+
+    <target name="-mail-publish" if="use.mail.publisher">
+        <echo file="${resultdir}${ps}notification.txt">Jetty server JRE:${line.separator}${line.separator}</echo>
+        <exec executable="${serverjre}${ps}bin${ps}java${exe.ext}"
+              spawn="false"
+              failonerror="false"
+              output="${resultdir}${ps}notification.txt"
+              append="true">
+            <arg value="-version"/>
+        </exec>
+        <echo file="${resultdir}${ps}notification.txt" append="true">Scenario framework JRE:${line.separator}${line.separator}</echo>
+        <exec executable="${fwjre}${ps}bin${ps}java${exe.ext}"
+              spawn="false"
+              failonerror="false"
+              output="${resultdir}${ps}notification.txt"
+              append="true">
+            <arg value="-version"/>
+        </exec>
+        <echo file="${resultdir}${ps}notification.txt" append="true">${line.separator}================================================================================</echo>
+        <echo file="${resultdir}${ps}notification.txt" append="true">${line.separator}Scenario results:${line.separator}${line.separator}</echo>
+        <concat destfile="${resultdir}${ps}notification.txt" append="true">
+            <filelist dir="${resultdir}" files="${file}"/>
+        </concat>
+        <echo file="${resultdir}${ps}notification.txt" append="true">${line.separator}================================================================================</echo>
+        <echo file="${resultdir}${ps}notification.txt" append="true">${line.separator}Jetty server output:${line.separator}${line.separator}</echo>
+        <concat destfile="${resultdir}${ps}notification.txt" append="true">
+            <filelist dir="${resultdir}" files="jetty.log"/>
+        </concat>
+
+        <mail mailhost="${mailhost}"
+              mailport="${mailport}"
+              user="${username}"
+              password="${password}"
+              from="${fromaddress}"
+              tolist="${toaddress}"
+              subject="${subject}"
+              messagefile="${resultdir}${ps}notification.txt"
+              messagemimetype="text/plain"
+              failonerror="false"/>
+    </target>
+
+    <target name="-build-failed-subject" if="build.failed">
+        <property name="subject" value="[build-test alert] BUILD FAILED ${buildname}: Jetty scenario on drlvm"/>
+        <antcall target="-mail-publish"/>
+    </target>
+
+    <target name="-build-passed-subject" unless="build.failed">
+        <property name="subject" value="[build-test alert] BUILD SUCCEEDED ${buildname}: Jetty scenario on drlvm"/>
+        <antcall target="-mail-publish"/>
+    </target>
+
+    <target name="clean">
+        <log message="============= Adaptor for ${suite.name}: Clean .."/>
+        <log message="Removing all from working directory"/>
+        <delete dir="${scenario.dir}"/>
+    </target>
+
+</project>

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/adaptor.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/cc-config.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/cc-config.xml?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/cc-config.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/cc-config.xml Tue Apr 24 00:21:40 2007
@@ -0,0 +1,86 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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. -->
+
+<cruisecontrol>
+
+    <!-- Keep this tag if you want to see any parameter value accessible 
+         from adaptor.xml here -->
+    <!-- @BT.PARAMETERS.INCLUDE@ -->
+    
+    <!-- Tag resolved to the name of 
+         the test suite this config is related to. -->
+    <project name="@BT.PROJECT@">
+
+        <listeners>
+            <!-- Resolved to <currentbuildstatuslistener file="${logs.dir}/...">
+                 Should be here if there are any suites depending
+                 on run status of this suite -->
+            <!-- @BT.LISTENER@ -->
+        </listeners>
+
+        <bootstrappers>
+            <!-- Resolved to 
+                    <svnbootstrapper> 
+                 if we use SVN for sources, i.e. 
+                    ${suite.name}.parameters.cc.usesvn="${sources.location}"
+                 is set -->
+            <!-- @BT.BOOTSTRAPPER@ -->
+        </bootstrappers>
+
+        <modificationset quietperiod="60">
+            <!-- Tag Resolution Rules: 
+                - in case of defined SVN (@{suite.name}.parameters.cc.usesvn),
+                  resolved to
+                    <svn LocalWorkingCopy="${path.to.local.svn.repository}"/>
+                - in case of defined trigger (@{suite.name}.parameters.cc.trigger),
+                  resolved to
+                    <filesystem folder="${path.to.trigger.file}"
+                - for any dependency it is resolved to
+                    <buildstatus logdir='${path.to.log.for.some.suite}'/>
+                - in any case it is additionally resolved to
+                    <forceonly/>
+            -->
+            <!-- @BT.MODIFICATIONSET@ -->
+        </modificationset>
+
+        <schedule interval="180">
+            <!-- This tag MUST be present!
+                 It makes correct call to adaptor's run target -->
+            <!-- @BT.ADAPTORCALL@ -->
+        </schedule>
+
+        <publishers>
+            <antpublisher antworkingdir="${adaptors.dir}/@BT.PROJECT@"
+                          buildfile="adaptor.xml"
+                          target="publish"
+                          anthome="${@BT.PROJECT@.parameters.optional.ant.home.dir}">
+                <property name="sendmail"    value="${@BT.PROJECT@.parameters.required.use.mail.notifications}"/>
+                <property name="mailhost"    value="${@BT.PROJECT@.parameters.required.mail.notification.mailhost}"/>
+                <property name="mailport"    value="${@BT.PROJECT@.parameters.optional.mail.notification.mailhost.port}"/>
+                <property name="username"    value="${@BT.PROJECT@.parameters.optional.mail.notification.mailhost.username}"/>
+                <property name="password"    value="${@BT.PROJECT@.parameters.optional.mail.notification.mailhost.password}"/>
+                <property name="fromaddress" value="${@BT.PROJECT@.parameters.required.mail.notification.from}"/>
+                <property name="toaddress"   value="${@BT.PROJECT@.parameters.required.mail.notification.to}"/>
+                <property name="file"        value="TEST-JettyScenario.txt"/>
+                <property name="resultfile"  value="${checkouts.dir}/@BT.PROJECT@/results/result.property"/>
+                <property name="resultdir"   value="${checkouts.dir}/@BT.PROJECT@/results"/>
+                <property name="serverjre"   value="${@BT.PROJECT@.parameters.required.jetty.server.jre}"/>
+                <property name="fwjre"       value="${@BT.PROJECT@.parameters.required.scenario.framework.jre}"/>
+            </antpublisher>
+        </publishers>
+
+    </project>
+</cruisecontrol>

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/cc-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/parameters.xml?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/parameters.xml Tue Apr 24 00:21:40 2007
@@ -0,0 +1,97 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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. -->
+
+<parameters depends="classlib,drlvm">
+
+    <!-- Required parameters -->
+    <required>
+        <jetty.server.jre
+            description="Path to JRE on which Jetty server will be started (current build of drlvm+classlib by default)."
+            value="${drlvm.parameters.shared.jre.dir}"/>
+        <scenario.framework.jre
+            description="Path to JRE on which the scenario framework will be started (current build of drlvm+classlib by default)."
+            value="${drlvm.parameters.shared.jre.dir}"/>
+        <use.mail.notifications
+            description="Tells Cruise Control whether it should send email notifications or not (default is yes)."
+            value="yes"/>
+        <mail.notification.from
+            description="Email address of notification sender (e.g. somebody@mail.server)."
+            value=""/>
+        <mail.notification.to
+            description="A comma-separated list of email addresses where to send notifications."
+            value=""/>
+        <mail.notification.mailhost
+            description="Name of SMTP server to use for sending notifications (default is localhost)."
+            value="localhost"/>
+    </required>
+
+    <!-- Optional parameters -->
+    <optional>
+        <jetty.server.timeout
+            description="Timeout for waiting Jetty server loaded."
+            value="30000"/>
+        <do.save.pages
+            description="Tells scenario whether it should store downloaded pages or not."
+            value="yes"/>
+        <ant.home.dir
+            description="Home directory of the ant (this is workaround for stupid CC configs)."
+            value="${ant.home}"/>
+        <mail.notification.mailhost.port
+            description="Port of SMTP server (default is 25)."
+            value="25"/>
+        <mail.notification.mailhost.username
+            description="User name for accessing SMTP server (if required)."
+            value=""/>
+        <mail.notification.mailhost.password
+            description="User password for accessing SMTP server (if required)."
+            value=""/>
+    </optional>
+
+    <!-- External dependencies -->
+    <external>
+        <jetty-6.1.2rc1
+            url="http://dist.codehaus.org/jetty/jetty-6.1.2rc1.zip"
+            md5="b35a6c1767c116999a1f3d205174429c"
+            dir="jetty-6.1.2rc1"
+        />
+        <htmlunit-1.11
+            url="http://downloads.sourceforge.net/htmlunit/htmlunit-1.11.zip"
+            md5="829ff23c7d921b6cb04df2b6fdcd4672"
+            dir="htmlunit-1.11"
+            inc="*/lib/**,*/*.txt"
+        />
+        <junit-3.8.2
+            url="http://mirrors.ibiblio.org/pub/mirrors/maven2/junit/junit/3.8.2/junit-3.8.2.jar"
+            md5="28e7eb9eeefe31a657c68755bfccc541"
+        />
+    </external>
+
+    <!-- Shared parameters -->
+    <shared>
+        <!-- define the place where drlvm workspace will be placed -->
+        <trunk.dir value="${scenario.dir}" id="trunk.dir.id"/>
+        <!-- the trunk url for svn -->
+        <svn.url value="http://svn.apache.org/repos/asf/harmony/enhanced/buildtest/trunk/tests/JettyScenario"/>
+    </shared>
+
+    <!-- CC specific configuration -->
+    <cc config="${adaptors.dir}/${suite.name}/cc-config.xml">
+        <!-- Re-run if changes in SVN -->
+        <!-- HINT: Uncomment this if you want to re-run if changes in scenario repository.
+        <usesvn refid="trunk.dir.id"/>
+        -->
+    </cc>
+</parameters>

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/JettyScenario/parameters.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,62 @@
+<HTML>
+  <HEAD>
+    <TITLE>Powered By Jetty</TITLE>
+    <META http-equiv="Pragma" content="no-cache">
+    <META http-equiv="Cache-Control" content="no-cache,no-store">
+  </HEAD>
+<BODY>
+<A HREF="http://jetty.mortbay.org"><IMG SRC="jetty_banner.gif"></A>
+<P>
+<h1>Welcome to Jetty 6</h1>
+This is the Test webapp for the Jetty 6 HTTP Server and Servlet Container.  
+For more information about Jetty, please visit our
+<a href="http://jetty.mortbay.org">website</a>
+or <a href="http://docs.codehaus.org/display/JETTY/Jetty+Wiki">wiki</a>. 
+Commercial support for Jetty is available via <a href="http://www.webtide.com">webtide</a>.
+</p>
+<p>
+This is a test context that serves:
+<ul>
+<li>static content (
+<a href="d.txt">tiny</a>,
+<a href="da.txt">small</a>,
+<a href="dat.txt">medium</a>,
+<a href="data.txt">large</a>,
+<a href="data.txt.gz">large gziped</a>)</li>
+<li>a <a href="hello/">Hello World Servlet</a></li>
+<li>a <a href="dump/info">Request Dump Servlet</a></li>
+<li>a <a href="session/">Session Dump Servlet</a></li>
+<li>a <a href="snoop.jsp">Request Dump JSP</a></li>
+<li>a <a href="jsp/">Other JSP Tests</a></li>
+<li>a <a href="dispatch">Dispatcher Servlet</a></li>
+<li>a <a href="cgi-bin/hello.sh">CGI script</a>(unix only)</li>
+<li>a <a href="chat/chat.html">AJAX Chat with continuations</a></li>
+</ul>
+
+<p>
+Other contexts:
+<ul>
+<li> the <a href="/javadoc/">javadoc</a> </li>
+<li> a demo of the <a href="/test-jndi">JNDI features</a> <i>(Note: you must also run etc/jetty-plus.xml in order for this link to work)</i></li>
+</p>
+
+The features of Jetty 6 are:
+<ul>
+<li>Totally rearchitected and rebuild, so 10 years of cruft could be removed!</li>
+<li>Improved "dependancy injection" and "inversion of control" design of components</li>
+<li>Improved "interceptor" design of handlers</li>
+<li>Smart split buffer design allows large buffers to only be allocated to active connections.
+The resulting memory savings allow very large buffers to be used, which increases the chance of 
+efficient asynchronous flushing and of avoiding chunking.</li>
+<li>Optional use of NIO Buffering so that efficient direct buffers and memory mapped files can be used.</li> 
+<li>Optional use of NIO non-blocking scheduling so that threads are not allocated per connection.</li> 
+<li>Optional use of NIO gather writes, so that for example a HTTP header and a memory mapped file may be
+sent as sent is a single operation.</li> 
+<li>Continuations for efficient AJAX polling</li>
+<li>java:comp/env naming lookups</li>
+<li>pluggable JTA transaction managers</li>
+</ul>
+
+
+</BODY>
+</HTML>

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/initial_page.html
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,165 @@
+<HTML>
+<HEAD>
+	<TITLE>JSP snoop page</TITLE>
+	
+</HEAD>
+<BODY>
+
+<H1>WebApp JSP Snoop page</H1>
+
+<H2>Request information</H2>
+
+<TABLE>
+<TR>
+	<TH align=right>Requested URL:</TH>
+	<TD>http://localhost:7070/test/snoop.jsp</TD>
+</TR>
+<TR>
+	<TH align=right>Request method:</TH>
+	<TD>GET</TD>
+</TR>
+<TR>
+	<TH align=right>Request URI:</TH>
+	<TD>/test/snoop.jsp</TD>
+</TR>
+<TR>
+	<TH align=right>Request protocol:</TH>
+	<TD>HTTP/1.1</TD>
+</TR>
+<TR>
+	<TH align=right>Servlet path:</TH>
+	<TD>/snoop.jsp</TD>
+</TR>
+<TR>
+	<TH align=right>Path info:</TH>
+	<TD>null</TD>
+</TR>
+<TR>
+	<TH align=right>Path translated:</TH>
+	<TD>null</TD>
+</TR>
+<TR>
+	<TH align=right>Query string:</TH>
+	<TD>null</TD>
+</TR>
+<TR>
+	<TH align=right>Content length:</TH>
+	<TD>-1</TD>
+</TR>
+<TR>
+	<TH align=right>Content type:</TH>
+	<TD>null</TD>
+<TR>
+<TR>
+	<TH align=right>Server name:</TH>
+	<TD>localhost</TD>
+<TR>
+<TR>
+	<TH align=right>Server port:</TH>
+	<TD>7070</TD>
+<TR>
+<TR>
+	<TH align=right>Remote user:</TH>
+	<TD>null</TD>
+<TR>
+<TR>
+	<TH align=right>Remote address:</TH>
+	<TD>127.0.0.1</TD>
+<TR>
+<TR>
+	<TH align=right>Remote host:</TH>
+	<TD>127.0.0.1</TD>
+<TR>
+<TR>
+	<TH align=right>Authorization scheme:</TH>
+	<TD>null</TD>
+<TR>
+</TABLE>
+
+
+<H2>Request headers</H2>
+
+<TABLE>
+<TR>
+	<TH align=left>Header:</TH>
+	<TH align=left>Value:</TH>
+</TR>
+
+<TR>
+	<TD>User-Agent</TD>
+$$$	<TD>.*</TD>
+</TR>
+
+<TR>
+	<TD>Host</TD>
+	<TD>localhost:7070</TD>
+</TR>
+
+<TR>
+	<TD>Cookie</TD>
+$$$	<TD>\$Version=0; JSESSIONID=.*; \$Path=/test</TD>
+</TR>
+
+</TABLE>
+
+
+
+
+
+
+
+<H2>Request Attributes</H2>
+<TABLE>
+<TR valign=top>
+	<TH align=left>Attribute:</TH>
+	<TH align=left>Value:</TH>
+</TR>
+
+<TR valign=top>
+	<TD>org.mortbay.jetty.newSessionId</TD>
+$$$	<TD>.*</TD>
+</TR>
+
+<TR valign=top>
+	<TD>testFilter</TD>
+	<TD>1</TD>
+</TR>
+
+</TABLE>
+
+
+
+
+<H2>Init parameters</H2>
+<TABLE>
+<TR valign=top>
+	<TH align=left>Parameter:</TH>
+	<TH align=left>Value:</TH>
+</TR>
+
+<TR valign=top>
+$$$	<TD>.*</TD>
+	<TD>false</TD>
+</TR>
+
+<TR valign=top>
+$$$	<TD>.*</TD>
+	<TD>false</TD>
+</TR>
+
+<TR valign=top>
+$$$	<TD>.*</TD>
+$$$	<TD>.*</TD>
+</TR>
+
+<TR valign=top>
+$$$	<TD>.*</TD>
+$$$	<TD>.*</TD>
+</TR>
+
+</TABLE>
+
+
+</BODY>
+</HTML>
+

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/request_dump_JSP.html
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,4 @@
+<h1>Session Dump Servlet:</h1>
+<form action="/test/session/" method="post">
+<H3>No Session</H3>
+<input type="submit" name="Action" value="New Session"/>

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump.html
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,4 @@
+<h1>Session Dump Servlet:</h1>
+$$$<form action="/test/session/;jsessionid=.*" method="post">
+<H3>No Session</H3>
+<input type="submit" name="Action" value="New Session"/>

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_invalidate.html
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,17 @@
+<h1>Session Dump Servlet:</h1>
+$$$<form action="/test/session/;jsessionid=.*" method="post">
+$$$<b>ID:</b> .*<br/>
+$$$<b>New:</b> .*<br/>
+$$$<b>Created:</b> .*<br/>
+$$$<b>Last:</b> .*<br/>
+$$$<b>Max Inactive:</b> .*<br/>
+$$$<b>Context:</b> ServletContext@.*<br/>
+<b>test:</b> value<br/>
+<b>Name:</b><input type="text" name="Name" /><br/>
+<b>Value:</b><input type="text" name="Value" /><br/>
+<input type="submit" name="Action" value="Set"/>
+<input type="submit" name="Action" value="Remove"/>
+<input type="submit" name="Action" value="Invalidate"/><br/>
+</form><br/>
+<P>Turn off cookies in your browser to try url encoding<BR>
+$$$<a href="/test/session/;jsessionid=.*">Encoded Link</a><BR>

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_new.html
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,17 @@
+<h1>Session Dump Servlet:</h1>
+$$$<form action="/test/session/;jsessionid=.*" method="post">
+$$$<b>ID:</b> .*<br/>
+$$$<b>New:</b> .*<br/>
+$$$<b>Created:</b> .*<br/>
+$$$<b>Last:</b> .*<br/>
+$$$<b>Max Inactive:</b> .*<br/>
+$$$<b>Context:</b> ServletContext@.*<br/>
+<b>test:</b> value<br/>
+<b>Name:</b><input type="text" name="Name" /><br/>
+<b>Value:</b><input type="text" name="Value" /><br/>
+<input type="submit" name="Action" value="Set"/>
+<input type="submit" name="Action" value="Remove"/>
+<input type="submit" name="Action" value="Invalidate"/><br/>
+</form><br/>
+<P>Turn off cookies in your browser to try url encoding<BR>
+$$$<a href="/test/session/;jsessionid=.*">Encoded Link</a><BR>

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_remove.html
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html?view=auto&rev=531796
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html (added)
+++ harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html Tue Apr 24 00:21:40 2007
@@ -0,0 +1,18 @@
+<h1>Session Dump Servlet:</h1>
+$$$<form action="/test/session/;jsessionid=.*" method="post">
+$$$<b>ID:</b> .*<br/>
+$$$<b>New:</b> .*<br/>
+$$$<b>Created:</b> .*<br/>
+$$$<b>Last:</b> .*<br/>
+$$$<b>Max Inactive:</b> .*<br/>
+$$$<b>Context:</b> ServletContext@.*<br/>
+<b>somename:</b> somevalue<br/>
+<b>test:</b> value<br/>
+<b>Name:</b><input type="text" name="Name" /><br/>
+<b>Value:</b><input type="text" name="Value" /><br/>
+<input type="submit" name="Action" value="Set"/>
+<input type="submit" name="Action" value="Remove"/>
+<input type="submit" name="Action" value="Invalidate"/><br/>
+</form><br/>
+<P>Turn off cookies in your browser to try url encoding<BR>
+$$$<a href="/test/session/;jsessionid=.*">Encoded Link</a><BR>

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: harmony/enhanced/buildtest/branches/2.0/tests/JettyScenario/resources/JettyScenario/session_dump_set.html
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message