You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/04/22 17:49:41 UTC

cvs commit: jakarta-commons/latka/src/resources org.apache.commons.latka.report.xsl org.apache.commons.latka.identityTransform.xsl log4j.properties latka.properties.internal latka.properties

dion        02/04/22 08:49:41

  Added:       latka/src/resources org.apache.commons.latka.report.xsl
                        org.apache.commons.latka.identityTransform.xsl
                        log4j.properties latka.properties.internal
                        latka.properties
  Log:
  Moved from top level into src
  
  Revision  Changes    Path
  1.1                  jakarta-commons/latka/src/resources/org.apache.commons.latka.report.xsl
  
  Index: org.apache.commons.latka.report.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text" indent="no"/>
     <xsl:strip-space elements="*"/>
  
     <xsl:template match="/">
       <xsl:apply-templates/>
       <xsl:text>&#x0A;</xsl:text>
       Thank you very much.
       <xsl:text>&#x0A;</xsl:text>
     </xsl:template>     
  
     <xsl:template match="report">
        <xsl:text>&#x0A;</xsl:text>
        <xsl:apply-templates select="//request[not(requestSuccess)]"/>
        <!-- <xsl:apply-templates select="//request"/> -->
        <xsl:call-template name="summary"/>
        <xsl:text>&#x0A;</xsl:text>
     </xsl:template>
  
     <xsl:template name="summary">
        <xsl:choose>
           <xsl:when test="/report/@suiteSuccess = 'true'">SUITE SUCCEEDED</xsl:when>
           <xsl:otherwise>SUITE FAILED</xsl:otherwise>
        </xsl:choose>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:value-of select="count(//request)"/><xsl:text> requests.</xsl:text>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:value-of select="count(//request/requestSuccess)"/><xsl:text> passed.</xsl:text>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:value-of select="count(//request/requestFailure)"/><xsl:text> failed.</xsl:text>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:value-of select="count(//request/requestSkipped)"/><xsl:text> skipped.</xsl:text>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:value-of select="count(//request/requestError)"/><xsl:text> errors.</xsl:text>
     </xsl:template>
  
     <xsl:template match="request">
        <xsl:value-of select="@url"/> <xsl:call-template name="label"/>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:apply-templates>
          <xsl:with-param name="timing">
           <xsl:text>(</xsl:text><xsl:value-of select="@requestTime"/><xsl:text> millis)</xsl:text>
          </xsl:with-param>
        </xsl:apply-templates>
        <xsl:text>&#x0A;</xsl:text>
        <xsl:text>&#x0A;</xsl:text>
     </xsl:template>
  
     <xsl:template match="requestSuccess">
        <xsl:param name="timing"/>
        <xsl:text>  REQUEST SUCCEEDED </xsl:text>
        <xsl:value-of select="$timing"/>
     </xsl:template>
  
     <xsl:template match="requestFailure">
        <xsl:param name="timing"/>
        <xsl:text>  REQUEST FAILED </xsl:text>
        <xsl:value-of select="$timing"/>
        <xsl:text>&#x0A;    </xsl:text>
        <xsl:apply-templates/>
     </xsl:template>
  
     <xsl:template match="requestSkipped">
        <xsl:param name="timing"/>
        <xsl:text>  REQUEST SKIPPED </xsl:text>
        <xsl:value-of select="$timing"/>
     </xsl:template>
  
     <xsl:template match="requestError">
        <xsl:param name="timing"/>
        <xsl:text>  REQUEST ERROR </xsl:text>
        <xsl:value-of select="$timing"/>
        <xsl:text>&#x0A;    </xsl:text>
        <xsl:apply-templates/>
     </xsl:template>
  
     <xsl:template name="label">
        <xsl:if test="@label">
           <xsl:text> (</xsl:text><xsl:value-of select="@label"/><xsl:text>)</xsl:text>
        </xsl:if>
     </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  jakarta-commons/latka/src/resources/org.apache.commons.latka.identityTransform.xsl
  
  Index: org.apache.commons.latka.identityTransform.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
    <xsl:template match="*|@*|comment()|processing-instruction()|text()"> 
      <xsl:copy> 
        <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
      </xsl:copy> 
    </xsl:template> 
  
  </xsl:stylesheet>
  
  
  1.1                  jakarta-commons/latka/src/resources/log4j.properties
  
  Index: log4j.properties
  ===================================================================
  ######################################
  # Configure the log4j logging system
  ######################################
  
  # Set the root output level and appenders
  log4j.rootCategory=WARN,consoleAppender
  
  # Create an appender that prints to the console
  log4j.appender.consoleAppender=org.apache.log4j.ConsoleAppender
  log4j.appender.consoleAppender.layout=org.apache.log4j.PatternLayout
  log4j.appender.consoleAppender.layout.ConversionPattern=%-5p [%t] %c - %m: %d{DATE}\n
  
  
  
  1.1                  jakarta-commons/latka/src/resources/latka.properties.internal
  
  Index: latka.properties.internal
  ===================================================================
  latka.validator.byteLength=org.apache.commons.latka.validators.ByteLengthHandler
  latka.validator.regexp=org.apache.commons.latka.validators.RegexpHandler
  latka.validator.statusCode=org.apache.commons.latka.validators.StatusCodeHandler
  latka.validator.maxRequestTime=org.apache.commons.latka.validators.MaxRequestTimeHandler
  latka.validator.cookie=org.apache.commons.latka.validators.CookieHandler
  latka.validator.responseHeader=org.apache.commons.latka.validators.ResponseHeaderHandler
  latka.validator.goldenFile=org.apache.commons.latka.validators.GoldenFileHandler
  latka.validator.xpath=org.apache.commons.latka.validators.XPathHandler
  
  latka.writeLog=true
  
  
  
  
  1.1                  jakarta-commons/latka/src/resources/latka.properties
  
  Index: latka.properties
  ===================================================================
  # User defined default properties for each test.  
  # These properties can be overridden on the command line. 
  # Some example properties:
  # defaultHost=localhost
  # defaultPort=8080
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>