You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by stii <an...@hotmail.com> on 2006/05/18 15:31:45 UTC

XML taqs inside resultlog from ant script!?

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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: XML taqs inside resultlog from ant script!?

Posted by stii <an...@hotmail.com>.
I dont know what a bugzilla issue is :/..

I am runnning my ant script from Eclipse by "right - click" on build.xml and
choose "run" -> "Ant Build"!

>From the Console: 

Buildfile: Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\build1.xml
runtest:
   [jmeter] Executing test plan:
Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\loadtests\XXX.jmx
   [jmeter] Created the tree successfully
   [jmeter] Starting the test
   [jmeter] Tidying up ...
   [jmeter] ... end of run
testresults:
   [delete] Deleting directory
Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\report
    [mkdir] Created dir:
Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\report
     [xslt] Processing
Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\loadtests\XXX.jtl to
Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\report\JMeterResults1.html
     [xslt] Loading stylesheet
Z:\fb-ms_shared\SharedNodeSrc\NodeWebApp\project\jmeter-results-detail-report.xsl
dist:
BUILD SUCCESSFUL
Total time: 14 seconds

Here it goes well because the XXX.jtl is JTL file withe out the XML taqs
between the sampleResult..

So when yo run it without eny problems, maybe it is a Eclipse problem?
--
View this message in context: http://www.nabble.com/XML+taqs+inside+resultlog+from+ant+script%21--t1643191.html#a4503348
Sent from the JMeter - User forum at Nabble.com.


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


RE: Difference between Test result version 1.1 and 1.2

Posted by Manjula Priyantha <ma...@parcelhouse.com>.
Thanks sebb,

I have changed my previous xsl files wasting few hours before your reply.
Anyway thank you very much for your kind response. Now I know xsl as well :D

BR 
Manjula
 
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, July 19, 2006 10:00 PM
To: JMeter Users List
Subject: Re: Difference between Test result version 1.1 and 1.2

Try using the update xsl stylesheets - these have the suffix _21 and
can be found in the extras directory.

On 14/07/06, Manjula Priyantha <ma...@parcelhouse.com> wrote:
>
> Thx andy,
>
> Yes I changed jmeter.save.saveservice.output_format=xml in
jmeter.properties
> file. So my out put is xml, but my concern is the resulted xml is not
> transforming well with existing xsl files (eg:
> jmeter-results-detail-report.xsl). That's why I was thinking, it's due to
> change of xml schema with version 1.2. What I want to know is the existing
> xsl files can use as it is or I have to change them?
>
> BR
> manjula
>
> -----Original Message-----
> From: Layton, Andrew [mailto:andrew.layton@atosorigin.com]
> Sent: Thursday, July 13, 2006 6:49 PM
> To: JMeter Users List
> Subject: RE: Difference between Test result version 1.1 and 1.2
>
> Version 2.2 now includes an option to save results as CSV not XML -
> check that your results JTL files are XML and if not, use the Configure
> butten in the Listener to "Save as XML"
>
> HtH
> Andy Layton
> Performance Test Consultant
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjulap@parcelhouse.com]
> Sent: 13 July 2006 13:09
> To: 'JMeter Users List'
> Subject: Difference between Test result version 1.1 and 1.2
>
> Hi,
>
> I was using the jmeter-results-detail-report.xsl and
> jmeter-results-report.xsl files to transform the results (version 1.1)
> and succeeded.
> With the new setup (version 2.2), it's not working.
>
> What I want to know is, is there any difference between earlier jtl
> file(v 1.1)and the current (v 2.2)? If it is so, can't I use the
> existing xsl files?
>
> BR,
> Manjula
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> _______________________________________________________
>
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos Origin group
> liability cannot be triggered for the message content. Although the
> sender endeavours to maintain a computer virus-free network, the
> sender does not warrant that this transmission is virus-free and will
> not be liable for any damages resulting from any virus transmitted.
> _______________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


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


Re: Difference between Test result version 1.1 and 1.2

Posted by sebb <se...@gmail.com>.
Try using the update xsl stylesheets - these have the suffix _21 and
can be found in the extras directory.

On 14/07/06, Manjula Priyantha <ma...@parcelhouse.com> wrote:
>
> Thx andy,
>
> Yes I changed jmeter.save.saveservice.output_format=xml in jmeter.properties
> file. So my out put is xml, but my concern is the resulted xml is not
> transforming well with existing xsl files (eg:
> jmeter-results-detail-report.xsl). That's why I was thinking, it's due to
> change of xml schema with version 1.2. What I want to know is the existing
> xsl files can use as it is or I have to change them?
>
> BR
> manjula
>
> -----Original Message-----
> From: Layton, Andrew [mailto:andrew.layton@atosorigin.com]
> Sent: Thursday, July 13, 2006 6:49 PM
> To: JMeter Users List
> Subject: RE: Difference between Test result version 1.1 and 1.2
>
> Version 2.2 now includes an option to save results as CSV not XML -
> check that your results JTL files are XML and if not, use the Configure
> butten in the Listener to "Save as XML"
>
> HtH
> Andy Layton
> Performance Test Consultant
>
> -----Original Message-----
> From: Manjula Priyantha [mailto:manjulap@parcelhouse.com]
> Sent: 13 July 2006 13:09
> To: 'JMeter Users List'
> Subject: Difference between Test result version 1.1 and 1.2
>
> Hi,
>
> I was using the jmeter-results-detail-report.xsl and
> jmeter-results-report.xsl files to transform the results (version 1.1)
> and succeeded.
> With the new setup (version 2.2), it's not working.
>
> What I want to know is, is there any difference between earlier jtl
> file(v 1.1)and the current (v 2.2)? If it is so, can't I use the
> existing xsl files?
>
> BR,
> Manjula
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> _______________________________________________________
>
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos Origin group
> liability cannot be triggered for the message content. Although the
> sender endeavours to maintain a computer virus-free network, the
> sender does not warrant that this transmission is virus-free and will
> not be liable for any damages resulting from any virus transmitted.
> _______________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


what kinds of tests can JMeter be used for?

Posted by Jaw Dat <id...@gmail.com>.
Sometimes the subject just says all that needs to be said. Tia.

Dat.


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


Re: a different thread group for login?

Posted by Marc Anthony Winoto <ma...@netregistry.com.au>.
Easy.

All you do is have each thread in your thread group login, then test the functionality you want. 
So something like:

Thread Group
- HTTP Cookie Manager (this handles all the cookie stuff)
- Sampler 1 - Login
- Sampler 2 - Test function A
- Sampler 3 - Test function B


Jaw Dat wrote:
> I was wondering how to load-test applications which require login at
> first? Where can I find resources that address this?
> 
> At first I thought I'd use two scheduled thread groups, such that the
> second thread group starts only after the first one finishes, where the
> first thread group simulates a number of users logging in , and the
> second thread group simulates their interaction with the tested
> application after succesful logins. But on second thought, this is
> rather naive. How would I account for each simulated user's session
> (cookies, sess_id, etc) ?
> Any ideas resources, on how the community does this? 
> 
> Thanks in advance, 
> 
> Dat.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 


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


a different thread group for login?

Posted by Jaw Dat <id...@gmail.com>.
I was wondering how to load-test applications which require login at
first? Where can I find resources that address this?

At first I thought I'd use two scheduled thread groups, such that the
second thread group starts only after the first one finishes, where the
first thread group simulates a number of users logging in , and the
second thread group simulates their interaction with the tested
application after succesful logins. But on second thought, this is
rather naive. How would I account for each simulated user's session
(cookies, sess_id, etc) ?
Any ideas resources, on how the community does this? 

Thanks in advance, 

Dat.


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


Listener "graph results" question

Posted by Jaw Dat <id...@gmail.com>.
Hi, 

In the "graph results" results listener view, 
what are the yellow markers for? The other colors seem to correspond to
the quantities shown above and below the graph box. But what data does
the yellow graph represent?

TIA

Dat.


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


RE: Difference between Test result version 1.1 and 1.2

Posted by Manjula Priyantha <ma...@parcelhouse.com>.
Thx andy,

Yes I changed jmeter.save.saveservice.output_format=xml in jmeter.properties
file. So my out put is xml, but my concern is the resulted xml is not
transforming well with existing xsl files (eg:
jmeter-results-detail-report.xsl). That's why I was thinking, it's due to
change of xml schema with version 1.2. What I want to know is the existing
xsl files can use as it is or I have to change them?

BR 
manjula
 
-----Original Message-----
From: Layton, Andrew [mailto:andrew.layton@atosorigin.com] 
Sent: Thursday, July 13, 2006 6:49 PM
To: JMeter Users List
Subject: RE: Difference between Test result version 1.1 and 1.2

Version 2.2 now includes an option to save results as CSV not XML -
check that your results JTL files are XML and if not, use the Configure
butten in the Listener to "Save as XML"

HtH
Andy Layton
Performance Test Consultant 

-----Original Message-----
From: Manjula Priyantha [mailto:manjulap@parcelhouse.com] 
Sent: 13 July 2006 13:09
To: 'JMeter Users List'
Subject: Difference between Test result version 1.1 and 1.2

Hi,

I was using the jmeter-results-detail-report.xsl and
jmeter-results-report.xsl files to transform the results (version 1.1)
and succeeded.
With the new setup (version 2.2), it's not working. 

What I want to know is, is there any difference between earlier jtl
file(v 1.1)and the current (v 2.2)? If it is so, can't I use the
existing xsl files?

BR,
Manjula


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



_______________________________________________________

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted. 
_______________________________________________________

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


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


RE: Difference between Test result version 1.1 and 1.2

Posted by "Layton, Andrew" <an...@atosorigin.com>.
Version 2.2 now includes an option to save results as CSV not XML -
check that your results JTL files are XML and if not, use the Configure
butten in the Listener to "Save as XML"

HtH
Andy Layton
Performance Test Consultant 

-----Original Message-----
From: Manjula Priyantha [mailto:manjulap@parcelhouse.com] 
Sent: 13 July 2006 13:09
To: 'JMeter Users List'
Subject: Difference between Test result version 1.1 and 1.2

Hi,

I was using the jmeter-results-detail-report.xsl and
jmeter-results-report.xsl files to transform the results (version 1.1)
and succeeded.
With the new setup (version 2.2), it's not working. 

What I want to know is, is there any difference between earlier jtl
file(v 1.1)and the current (v 2.2)? If it is so, can't I use the
existing xsl files?

BR,
Manjula


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



_______________________________________________________

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted. 
_______________________________________________________

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


Difference between Test result version 1.1 and 1.2

Posted by Manjula Priyantha <ma...@parcelhouse.com>.
Hi,

I was using the jmeter-results-detail-report.xsl and
jmeter-results-report.xsl files to transform the results (version 1.1) and
succeeded.
With the new setup (version 2.2), it's not working. 

What I want to know is, is there any difference between earlier jtl file(v
1.1)and the current (v 2.2)? If it is so, can't I use the existing xsl
files?

BR,
Manjula


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


Re: XML taqs inside resultlog from ant script!?

Posted by stii <an...@hotmail.com>.
> So do you get the bad JTL file if you don't have any Listeners in the JMX
file?

Yes when I run it from from Eclipse (Rational Software Development Platform)
with my ant script, I get the bad JTL file. (Both with or with out the
Listeners).

> I tried your build file with a simple testscript and the JTL file is
> fine, whether or not I use a listener (with a different filename)

> However, the resulting HTML file was empty, because the default 2.1.1
> JTL format is different, and your XML file does not set the
> appropriate properties. Perhaps you have set this in your
> jmeter.properties.

I am not sure what your are telling me to do? My JTL file that is mayed fra
the GUI mode, I successfully convert to HTML.!

> I suggest you try using the build.xml file and ant-jmeter.jar from the
> extras/ directory, and see if you still get the same problem.

I will try this! And report back! :)

//Stii


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


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


Re: XML taqs inside resultlog from ant script!?

Posted by sebb <se...@gmail.com>.
On 19/05/06, stii <an...@hotmail.com> wrote:
>
> No I have no listeners in my JMX script.

OK

> I have only testet in GUI mode to see how the JTL file is looking.. (as
> explained in first post!)
> But if i have a listeners(simple data writer) in my JMX file (with a
> different name, in a different folder), and I run it from my ant script; I
> get the bad JTL file with the XML taqs!

So do you get the bad JTL file if you don't have any Listeners in the JMX file?

I tried your build file with a simple testscript and the JTL file is
fine, whether or not I use a listener (with a different filename)

However, the resulting HTML file was empty, because the default 2.1.1
JTL format is different, and your XML file does not set the
appropriate properties. Perhaps you have set this in your
jmeter.properties.

I suggest you try using the build.xml file and ant-jmeter.jar from the
extras/ directory, and see if you still get the same problem.

If so, please raise a bugzilla issue, describe how you are running
Ant, and attach:
- jmeter.properties
- jmeter.log
- JMX file
- JTL file
- build.xml

S.

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


Re: XML taqs inside resultlog from ant script!?

Posted by stii <an...@hotmail.com>.
No I have no listeners in my JMX script. 

I have only testet in GUI mode to see how the JTL file is looking.. (as
explained in first post!)
But if i have a listeners(simple data writer) in my JMX file (with a
different name, in a different folder), and I run it from my ant script; I
get the bad JTL file with the XML taqs!

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


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


Re: XML taqs inside resultlog from ant script!?

Posted by sebb <se...@gmail.com>.
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 <an...@hotmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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