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/docs/latka/dtds tests.ent suite.ent suite.dtd standardValidations.ent report.dtd
Date Sun, 27 Jan 2002 23:09:44 GMT
dion        02/01/27 15:09:44

  Added:       docs/latka/dtds tests.ent suite.ent suite.dtd
                        standardValidations.ent report.dtd
  Log:
  Making DTDs public
  
  Revision  Changes    Path
  1.1                  jakarta-commons/docs/latka/dtds/tests.ent
  
  Index: tests.ent
  ===================================================================
  <!-- validations and custom tests
       alter this file to add new custom tests -->
  
  <!-- add new tests to this array (add top-level element only) -->
  <!ENTITY % tests "statusCode | regexp | byteLength |
                    maxRequestTime | cookie | goldenFile | responseHeader | xpath">
  
  <!-- 
  
  add definition of custom test elements here
  
  ###example only
  ###actual definitions of built-in tasks are located in the 
  ###main suite.dtd file
  <!ELEMENT cookie EMPTY>
  <!ATTLIST cookie name  CDATA #REQUIRED
                   value CDATA #IMPLIED
                   label CDATA #IMPLIED>
  -->
  
  
  
  1.1                  jakarta-commons/docs/latka/dtds/suite.ent
  
  Index: suite.ent
  ===================================================================
  <!-- entities -->
  <!ENTITY % standardValidations.ent SYSTEM "standardValidations.ent">
  %standardValidations.ent;
  
  <!-- validations and custom tests
       alter this file to add new custom tests -->
  <!ENTITY % tests.ent SYSTEM "tests.ent">
  %tests.ent;
  
  <!ELEMENT suite ( (session | request)+ )>
  <!ATTLIST suite defaultHost  CDATA #IMPLIED
                  defaultPort  CDATA #IMPLIED
                  label        CDATA #IMPLIED>
  
  <!ELEMENT session (request+)>
  <!-- tests that use the same session_id share the same environment -->
  <!ATTLIST session sessionId CDATA #IMPLIED
                    label      CDATA #IMPLIED>
  
  <!ELEMENT request (credentials?, requestHeader*, param*, validate?)>
  <!ATTLIST request path   CDATA           #REQUIRED
                    method (post | get | head)   "get"
                    secure (true | false) "false"
                    host   CDATA           #IMPLIED
                    port   CDATA           #IMPLIED
                    label  CDATA           #IMPLIED
                    followRedirects (true | false) "true">
  
  <!ELEMENT credentials EMPTY>
  <!ATTLIST credentials userName CDATA #REQUIRED
                        password CDATA #REQUIRED>
  
  <!ELEMENT requestHeader EMPTY>
  <!ATTLIST requestHeader headerName  CDATA #REQUIRED
                          headerValue CDATA #IMPLIED>
  
  <!ELEMENT param (paramName, paramValue)>
  
  <!ELEMENT paramName (#PCDATA)>
  
  <!ELEMENT paramValue (#PCDATA)>
  
  <!ELEMENT validate ( (%tests;)+ )>
  
  <!ELEMENT statusCode EMPTY>
  <!ATTLIST statusCode code  CDATA "200"
                        label CDATA #IMPLIED>
  
  <!ELEMENT regexp EMPTY>
  <!ATTLIST regexp pattern    CDATA          #REQUIRED
                   cond       (true | false) "true"
                   ignoreCase (true | false) "false"
                   label      CDATA          #IMPLIED>
  
  <!ELEMENT xpath EMPTY>
  <!ATTLIST xpath select    CDATA          #REQUIRED
                  cond       (true | false) "true"
                  value     CDATA          #IMPLIED  
                  label     CDATA          #IMPLIED>
  
  <!ELEMENT goldenFile EMPTY>
  <!ATTLIST goldenFile fileName         CDATA          #REQUIRED
                        ignoreWhitespace (true | false) "false"
                        label            CDATA          #IMPLIED>
  
  <!ELEMENT byteLength EMPTY>
  <!ATTLIST byteLength min   CDATA "0"
                        max   CDATA #IMPLIED
                        label CDATA #IMPLIED>
  
  <!ELEMENT maxRequestTime EMPTY>
  <!-- defaults to 30 seconds -->
  <!ATTLIST maxRequestTime millis CDATA "30000"
                             label  CDATA #IMPLIED>
  
  <!-- start cookie validator-->
  <!ELEMENT cookie EMPTY>
  <!ATTLIST cookie name  CDATA #REQUIRED
                   value CDATA #IMPLIED
                   label CDATA #IMPLIED>
  <!-- end cookie validator -->
  
  <!-- 
    if you omit the headerValue, Latka assumes that you
    simply want to make sure the header exists 
  -->
  <!ELEMENT responseHeader EMPTY>
  <!ATTLIST responseHeader headerName  CDATA #REQUIRED
                           headerValue CDATA #IMPLIED
                           label       CDATA #IMPLIED>
  
  
  
  1.1                  jakarta-commons/docs/latka/dtds/suite.dtd
  
  Index: suite.dtd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- standard wrapper for the main DTD elements -->
  <!ENTITY % suite.ent SYSTEM "suite.ent">
  %suite.ent;
  
  
  
  1.1                  jakarta-commons/docs/latka/dtds/standardValidations.ent
  
  Index: standardValidations.ent
  ===================================================================
  <!-- This module contains a set of standard validation entities for Latka tests. -->
  
  <!-- standard set -->
  <!ENTITY commonValidations "<statusCode/>">
  
  <!-- response time -->
  <!ENTITY fast "<maxRequestTime millis='2500' label='Response in at most 2.5 seconds.'/>">
  <!ENTITY slow "<maxRequestTime millis='5000' label='Response in at most 5 seconds.'/>">
  
  <!-- byte size -->
  <!ENTITY tiny   "<byteLength min=    '1' max= '1000' label='Less than 1 KB long.'/>">
  <!ENTITY small  "<byteLength min= '1000' max='10000' label='Between 1 and 10 KB long.'/>">
  <!ENTITY medium "<byteLength min='8000' max='22000' label='Between 8 and 22 KB long.'/>">
  <!ENTITY large  "<byteLength min='18000' max='32000' label='Between 18 and 32 KB long.'/>">
  <!ENTITY huge   "<byteLength min='30000' label='More than 30 KB long.'/>">
  
  <!-- regexp -->
  
  
  
  
  
  
  1.1                  jakarta-commons/docs/latka/dtds/report.dtd
  
  Index: report.dtd
  ===================================================================
  <?xml encoding="UTF-8" ?>
  
  <!ELEMENT report (request+)>
  <!ATTLIST report suiteSuccess (true|false) #REQUIRED
                   label         CDATA        #IMPLIED>
  
  <!ELEMENT request (requestSuccess | requestFailure |
                     requestSkipped | requestError)>
  <!ATTLIST request requestTime CDATA #REQUIRED
                    label        CDATA #IMPLIED
                    url          CDATA #REQUIRED>
  
  <!ELEMENT requestSuccess EMPTY>
  
  <!ELEMENT requestFailure (label)>
  <!ATTLIST requestFailure responseId CDATA #REQUIRED>
  
  <!ELEMENT requestSkipped EMPTY>
  
  <!ELEMENT requestError (label)>
  
  <!ELEMENT label (#PCDATA)>
  
  
  
  

--
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