jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/latka custom-tests.ent standardValidations.ent suite.ent tests.ent
Date Tue, 23 Jul 2002 21:17:50 GMT
morgand     2002/07/23 14:17:50

  Modified:    latka-scratch/src/distribution/tests/dtds watchdog.dtd
  Added:       latka-scratch/src/distribution/tests/dtds/latka
                        custom-tests.ent standardValidations.ent suite.ent
  temporarily copied Latka DTD here, until it has a home on the web
  Revision  Changes    Path
  1.3       +2 -0      jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/watchdog.dtd
  Index: watchdog.dtd
  RCS file: /home/cvs/jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/watchdog.dtd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- watchdog.dtd	23 Jul 2002 20:14:09 -0000	1.2
  +++ watchdog.dtd	23 Jul 2002 21:17:50 -0000	1.3
  @@ -1,4 +1,6 @@
   <!ENTITY % jsp-tests.ent SYSTEM "jsp-tests.ent">
   <!ENTITY % servlet-tests.ent SYSTEM "servlet-tests.ent">
  +<!ENTITY % latka.ent SYSTEM "latka/suite.ent">
  1.1                  jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/latka/custom-tests.ent
  Index: custom-tests.ent
      Author:  dIon Gillard (dion@apache.org)
      Version: $Id: custom-tests.ent,v 1.1 2002/07/23 21:17:50 morgand Exp $
      alter this file to add new custom tests 
      There is an entity defined here called 'custom-tests' which has a list of
      top-level elements for the tests. These top-level elements will be defined
      in the resulting DTD to appear as children of the <validate> element in 
      a Latka Suite
      Each custom test top-level element should be entered, with a vertical
      bar ( '|' ) separating each.
  <!--top level element only, e.g.
      the vertical bar is VERY important
  ### example only
      custom-tests " | myvalidator" >
      default is no custom tests i.e. blank
  <!ENTITY % custom-tests "" >
  now for custom test element and attribute definitions, e.g.
  ### example only
  <!ELEMENT myvalidator EMPTY>
  <!ATTLIST myvalidator name  CDATA #REQUIRED
                        value CDATA #IMPLIED
                        label CDATA #IMPLIED>
  1.1                  jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/latka/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-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/latka/suite.ent
  Index: suite.ent
  <!-- entities -->
  <!ENTITY % standardValidations.ent SYSTEM "standardValidations.ent">
  <!-- validations and custom tests
       alter this file to add new custom tests -->
  <!ENTITY % tests.ent SYSTEM "tests.ent">
  <!ELEMENT suite ( (session | request | reportMessage)+ )>
  <!ATTLIST suite defaultHost  CDATA #IMPLIED
                  defaultPort  CDATA #IMPLIED
                  defaultProxyHost    CDATA #IMPLIED
                  defaultProxyPort    CDATA #IMPLIED
                  label        CDATA #IMPLIED>
  <!-- prints out a message to the log generated by the test -->
  <!ELEMENT reportMessage EMPTY>
  <!ATTLIST reportMessage message CDATA #REQUIRED>
  <!ELEMENT session ( (request | reportMessage)+)>
  <!-- tests that use the same session_id share the same environment -->
  <!ATTLIST session sessionId CDATA #IMPLIED
                    label      CDATA #IMPLIED>
  <!-- request bodies are ONLY legal for the post method -->
  <!ELEMENT request (credentials?, requestHeader*, (param* | requestBody), validate?)>
  <!ATTLIST request path   CDATA          #REQUIRED
                    method (post | get | head)   "get"
                    secure (true | false) "false"
                    host   CDATA          #IMPLIED
                    port   CDATA          #IMPLIED
                    proxyHost CDATA       #IMPLIED
                    proxyPort CDATA       #IMPLIED
                    label  CDATA          #IMPLIED
                    followRedirects (true | false) "true"
                    version (1.1 | 1.0) "1.1">
  <!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)>
     manually construct a text body for the request
     request bodies are ONLY legal for the post method 
  <!ELEMENT requestBody (#PCDATA)>
  <!ELEMENT validate ( (%tests; %custom-tests;)+ )>
  1.1                  jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/dtds/latka/tests.ent
  Index: tests.ent
  <!ENTITY % custom-tests.ent SYSTEM "custom-tests.ent">
  <!-- all Latka test top level elements are here -->
  <!ENTITY % tests "byteLength | cookie | goldenFile | maxRequestTime | regexp | 
                    responseHeader | statusCode | statusText | xpath">
  <!-- null HTTP response bodies will have a byteLength of -1 -->
  <!ELEMENT byteLength EMPTY>
  <!ATTLIST byteLength min   CDATA "0"
                        max   CDATA #IMPLIED
                        label CDATA #IMPLIED>
  <!-- start cookie validator-->
  <!ELEMENT cookie EMPTY>
  <!ATTLIST cookie name  CDATA #REQUIRED
                   value CDATA #IMPLIED
                   cond       (true | false) "true"
                   label CDATA #IMPLIED>
  <!-- end cookie validator -->
  <!ELEMENT goldenFile EMPTY>
  <!ATTLIST goldenFile fileName         CDATA          #REQUIRED
                        ignoreWhitespace (true | false) "false"
                        label            CDATA          #IMPLIED>
  <!ELEMENT maxRequestTime EMPTY>
  <!-- defaults to 30 seconds -->
  <!ATTLIST maxRequestTime millis CDATA "30000"
                             label  CDATA #IMPLIED>
  <!ELEMENT regexp EMPTY>
  <!ATTLIST regexp pattern    CDATA          #REQUIRED
                   cond       (true | false) "true"
                   ignoreCase (true | false) "false"
                   label      CDATA          #IMPLIED>
    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
                           cond       (true | false) "true"
                           label       CDATA #IMPLIED>
  <!ELEMENT statusCode EMPTY>
  <!ATTLIST statusCode code  CDATA "200"
                        label CDATA #IMPLIED>
  <!ELEMENT statusText EMPTY>
  <!ATTLIST statusText text  CDATA #REQUIRED
                       label CDATA #IMPLIED>
  <!ELEMENT xpath EMPTY>
  <!ATTLIST xpath select    CDATA          #REQUIRED
                  cond       (true | false) "true"
                  value     CDATA          #IMPLIED  
                  label     CDATA          #IMPLIED>

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

View raw message