Are you using the same name for the JTL file in a Listener as in the Ant script?

Indeed, are you leaving any Listeners in the JMX script?
They are not needed in non-GUI mode (unless you want to duplicate some
output - in which case be sure to use a different file name).

S.
On 18/05/06, stii <[EMAIL PROTECTED]> wrote:

I have mayed an ant script to run a test plant (.jmx) fra my eclipse program,
and then make a .html page out of that.
(http://www.programmerplanet.org/ant-jmeter/)..


When I am makeing an log file fra the GUI mode JMeter or a Batch file my log
file look likes this:

<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.1">
<sampleResult timeStamp="1147868591278" dataType="text" threadName="Thread
Group 1-1" label="VLAN and IP" time="15" responseMessage="OK"
responseCode="200" success="true"/>
<sampleResult timeStamp="1147868593279" dataType="text" threadName="Thread
Group 1-1" label="Switch Configuration" time="0" responseMessage="OK"
responseCode="200" success="false"><assertionResult failureMessage="Test
failed, text expected to contain /105.1.1/" error="false"
failure="true"/></sampleResult>
</testResults>

This is verry good and thsi woorks with the jmeter-results-report.xsl from
the URL in the top!

My problem:

My problem is that when I use my ant build file to make the log file (.jtl)
xml taqs i coming between all sampleResult. And then the
jmeter-results-report.xsl cant undestand the log file.

it look likes this:

<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.1">
<?xml version="1.0" encoding="UTF-8"?><sampleResult dataType="text"
threadName="Thread Group 1-1" label="Software Upgrade" time="16"
responseMessage="File+%22%2FWEB%2DINF%2Ffmt%2Etld%22+not+found"
responseCode="500" success="false"/>
<?xml version="1.0" encoding="UTF-8"?><sampleResult dataType="text"
threadName="Thread Group 1-1" label="Backup" time="16"
responseMessage="File+%22%2FWEB%2DINF%2Ffmt%2Etld%22+not+found"
responseCode="500" success="false"/>
</testResults>


My build.xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="NodeWebApp" default="dist" basedir=".">
        <property name="base.dir" value="."/>
        <property name="report.dir" value="report"/>
        <property name="loadtests.dir" value="loadtests"/>

        <taskdef name="jmeter"
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>

        <target name="dist" depends="runtest, testresults" />

        <target name="runtest" description="Run jmeter tests">

                <jmeter jmeterhome="C:/java/jakarta-jmeter-2.1.1"
                        testplan="${loadtests.dir}/XXX.jmx"
                        resultlog="${loadtests.dir}/XXX_log.jtl" />
        </target>
<target name="testresults" description="Report Test Results"
depends="runtest">

        <delete dir="${report.dir}" quiet="true"/>
        <mkdir dir="${report.dir}" />

        <xslt
                force="true"
                in="${loadtests.dir}/XXX_log.jtl"
                out="${report.dir}/JMeterResults.html"
                style="${base.dir}/jmeter-results-detail-report.xsl"/>

</target>
</project>

Any one who have an explanation fore this?

//Anders

--
View this message in context: 
http://www.nabble.com/XML-taqs-inside-resultlog-from-ant-script%21--t1643191.html#a4450616
Sent from the JMeter - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to