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 Sun, 07 Jul 2002 13:59:18 GMT
dion        2002/07/07 06:59:18

  Modified:    latka/src/jelly latka.jelly
  Log:
  post tests
  
  Revision  Changes    Path
  1.6       +13 -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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- latka.jelly	6 Jul 2002 17:11:21 -0000	1.5
  +++ latka.jelly	7 Jul 2002 13:59:18 -0000	1.6
  @@ -5,7 +5,7 @@
   
     <suite>
       <session>
  -        <get id="mtc" url="http://www.multitask.com.au/"/>
  +        <get id="mtc" uri="http://www.multitask.com.au/"/>
           <j:if test="${mtc.statusCode == 200}">
               request ok
           </j:if>
  @@ -15,7 +15,7 @@
               header[${i}] = ${header}
           </j:forEach>
   
  -        <get id="mtc2" url="http://www.multitask.com.au/default.html">
  +        <get id="mtc2" uri="http://www.multitask.com.au/default.html">
               <parameter name="page" value="mt @News"/>
               <parameter name="page2" value="junk"/>
               <header name="Content-Type" value="text/plain"/>
  @@ -25,8 +25,18 @@
               reqHeader[${i}] = ${rHeader}
           </j:forEach>
           
  -        <get id="badurl" url="http://www.multitask.com.au/snafu.html"/>
  +        <get id="badurl" uri="http://www.multitask.com.au/snafu.html"/>
           http return code = ${badurl.statusCode}
  +        
  +        <post id="jdc" uri="http://developer.java.sun.com/servlet/SessionServlet">
  +            <parameter name="action" value="login" />
  +            <parameter name="url" value="/developer/index.jshtml" />
  +            <parameter name="UserId" value="XXX" />
  +            <parameter name="Password" value="XXX" />
  +        </post>
  +        search = ${jdc.statusCode}
  +        good = ${jdc.responseBodyAsString.indexOf("Sorry!") == "-1"}
  +        
       </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