You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2009/04/24 23:42:56 UTC

svn commit: r768422 - in /jakarta/jmeter/trunk/extras: schematic.cmd schematic.xml schematic.xsl

Author: sebb
Date: Fri Apr 24 21:42:56 2009
New Revision: 768422

URL: http://svn.apache.org/viewvc?rev=768422&view=rev
Log:
Updates to schematic stylesheet

Added:
    jakarta/jmeter/trunk/extras/schematic.cmd   (with props)
    jakarta/jmeter/trunk/extras/schematic.xml   (with props)
Modified:
    jakarta/jmeter/trunk/extras/schematic.xsl

Added: jakarta/jmeter/trunk/extras/schematic.cmd
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/extras/schematic.cmd?rev=768422&view=auto
==============================================================================
--- jakarta/jmeter/trunk/extras/schematic.cmd (added)
+++ jakarta/jmeter/trunk/extras/schematic.cmd Fri Apr 24 21:42:56 2009
@@ -0,0 +1,6 @@
+@echo off
+cd /d %~dp0
+set name=%~n1
+if .%1 ==. set name=Test
+call ant -f schematic.xml -Dtest=%name%
+pause
\ No newline at end of file

Propchange: jakarta/jmeter/trunk/extras/schematic.cmd
------------------------------------------------------------------------------
    svn:eol-style = CRLF

Added: jakarta/jmeter/trunk/extras/schematic.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/extras/schematic.xml?rev=768422&view=auto
==============================================================================
--- jakarta/jmeter/trunk/extras/schematic.xml (added)
+++ jakarta/jmeter/trunk/extras/schematic.xml Fri Apr 24 21:42:56 2009
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+ 
+       http://www.apache.org/licenses/LICENSE-2.0
+ 
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project name="schematic" default="all">
+	<description>
+	To create the schematic report:
+		ant -Dtest=script
+
+	</description>
+
+	<property name="testpath" value="${user.dir}"/>
+
+	<!-- Name of test (without .jmx) -->
+	<property name="test" value="Test"/>
+
+	<target name="all">
+		<xslt
+			force="true"
+		    in="${testpath}/${test}.jmx"
+		    out="${testpath}/${test}.html"
+		    style="${basedir}/schematic.xsl">
+		</xslt>
+	</target>
+
+</project>

Propchange: jakarta/jmeter/trunk/extras/schematic.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/jmeter/trunk/extras/schematic.xsl
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/extras/schematic.xsl?rev=768422&r1=768421&r2=768422&view=diff
==============================================================================
--- jakarta/jmeter/trunk/extras/schematic.xsl (original)
+++ jakarta/jmeter/trunk/extras/schematic.xsl Fri Apr 24 21:42:56 2009
@@ -37,9 +37,7 @@
 
 <xsl:template match="TestPlan">
     <xsl:call-template name="header"/>
-    <pre>
-    <xsl:value-of select='stringProp[@name="TestPlan.comments"]'/>
-    </pre>
+    <xsl:call-template name="comment"/>
     <xsl:for-each select='elementProp/collectionProp/elementProp'>
         <br/>
         <xsl:value-of select='stringProp[@name="Argument.name"]'/>
@@ -50,18 +48,20 @@
 
 <xsl:template match="ThreadGroup">
     <xsl:call-template name="header"/>
-    <xsl:text> threads: </xsl:text>
+    <xsl:call-template name="comment"/>
+    <br/>
+    <xsl:text>Threads: </xsl:text>
     <xsl:value-of select='stringProp[@name="ThreadGroup.num_threads"]'/>
-    <xsl:text> loops: </xsl:text>
+    <xsl:text> Loops: </xsl:text>
     <xsl:value-of select='elementProp/*[@name="LoopController.loops"]'/>
-    <xsl:text> ramp up: </xsl:text>
+    <xsl:text> Ramp up: </xsl:text>
     <xsl:value-of select='stringProp[@name="ThreadGroup.ramp_time"]'/>
-    <xsl:call-template name="comment"/>
 </xsl:template>
 
-<xsl:template match="HTTPSampler|HTTPSampler2">
+<xsl:template match="HTTPSampler|HTTPSampler2|ConfigTestElement[@guiclass='HttpDefaultsGui']">
     <xsl:call-template name="header"/>
-    <xsl:text> : </xsl:text>
+    <xsl:call-template name="comment"/>
+    <br/>
     <xsl:value-of select='stringProp[@name="HTTPSampler.method"]'/>
     <xsl:text> </xsl:text>
     <xsl:value-of select='stringProp[@name="HTTPSampler.protocol"]'/>
@@ -71,16 +71,16 @@
     <xsl:value-of select='stringProp[@name="HTTPSampler.port"]'/>
     <xsl:text>/</xsl:text>
     <xsl:value-of select='stringProp[@name="HTTPSampler.path"]'/>
-    <xsl:call-template name="comment"/>
 </xsl:template>
 
 <xsl:template match="ResultCollector">
     <xsl:call-template name="header"/>
+    <xsl:call-template name="comment"/>
     <xsl:if test='stringProp[@name="filename"]!=""'>
+        <br/>
         Output: <xsl:value-of select='stringProp[@name="filename"]'/>
         XML: <xsl:value-of select='objProp/value/xml'/>
     </xsl:if>
-    <xsl:call-template name="comment"/>
 </xsl:template>
 
 <xsl:template match="*">



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org