commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/jelly latka.jelly
Date Fri, 12 Jul 2002 04:25:51 GMT
dion        2002/07/11 21:25:51

  Modified:    latka/src/jelly latka.jelly
  Log:
  Tests for  maxresponse time and regexp tag
  
  Revision  Changes    Path
  1.15      +25 -3     jakarta-commons/latka/src/jelly/latka.jelly
  
  Index: latka.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/jelly/latka.jelly,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- latka.jelly	9 Jul 2002 17:28:00 -0000	1.14
  +++ latka.jelly	12 Jul 2002 04:25:51 -0000	1.15
  @@ -5,9 +5,9 @@
       trim="false">
     <!-- a latka suite - not really sure if we need this anymore -->
     <suite>
  -    <!-- a session holds shared http state info -->
  +    <!-- a session holds shared http state info 
  +    <session> -->
       <session>
  -    <!--<session proxyHost="1.1.1.205" proxyPort="8080">-->
   Tests for Get tag
   -----------------
           <get id="mtc" uri="http://www.multitask.com.au/"/>
  @@ -17,11 +17,17 @@
           Results for mtc url are: http return code = ${mtc.statusCode}
           size of result = ${mtc.responseBodyAsString.length()}
           response time = ${mtc.responseTime}
  +        
  +        <!-- test response time <= 5s -->
  +        <maxresponsetime limit="5000" requestId="mtc">over 5s</maxresponsetime>
  +        
           <!-- bytelength validation on the request/response -->
           <bytelength requestId="mtc" max="2400">MTC URL too big</bytelength>
  +        
           <j:forEach items="${mtc.responseHeaders}" var="header" indexVar="i">
               header[${i}] = ${header}
           </j:forEach>
  +        
           <!-- test parameters and headers -->
           <get id="mtc2" uri="http://www.multitask.com.au/default.html">
               <parameter name="page" value="mt @News"/>
  @@ -47,6 +53,22 @@
           </post>
           jdc login result = ${jdc.statusCode}
           good login = ${jdc.responseBodyAsString.indexOf("Sorry!") == "-1"}
  +        <regexp pattern="Sox.y!" requestId="jdc">
  +            <request-failed id="jdc">
  +            bad pattern 1
  +            </request-failed>
  +        </regexp>
  +        <regexp pattern="Sox.y!" requestId="jdc" ignoreCase="true">
  +            <request-failed id="jdc">
  +            bad pattern 2
  +            </request-failed>
  +        </regexp>
  +        <regexp pattern="so..y!" requestId="jdc" ignoreCase="true">
  +            <request-failed id="jdc">
  +            bad pattern 3
  +            </request-failed>
  +        </regexp>
  +
           jdc response time = ${jdc.responseTime} in msec
           <j:forEach items="${jdc.responseHeaders}" var="header" indexVar="i">
               jdc.header[${i}] = ${header}
  @@ -115,7 +137,7 @@
               var="element" indexVar="i">
               element[${i}] = ${element}
           </j:forEach>
  -
  +        
       </session>
     </suite>
     
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message