Dear JMeter Users and Zdxu:

Here is more than a hint. Here are excruciatingly detailed instruction copied 
from my company's internal documentation for working with JMeter. 

Sincerely yours,

Kyle

Saving Listener results

Applies To

JMeter 2.0.1
JMeter 2.0.2

Problem

You want to save Listener results from running a test plan and look at them 
later. Also, you want to remove Listener elements that display results in the 
GUI, because they make the test plan run slower.

Solution

JMeter uses different Listener elements to display different kinds of results, 
but can record results for all Listener elements in one file. Specifying a file 
name in any one Listener saves all data for all Listener types. JMeter uses a 
file extension of .jtl for result files, regardless of whether the internal 
file format is CSV or XML.

1.      Set JMeter to record results in XML format:

a.      In the C:\jakarta-jmeter-2.0.2\bin directory, open the 
jmeter.properties file.
b.      Change the value of the output format to XML:

jmeter.save.saveservice.output_format=xml

Warning   If the output format is "csv", the solution will not work.
        Note   Output format is different than output file extension. You can 
save results in either CSV or XML output format in a file with the standard 
".jtl" extension. This is useful because JMeter uses ".jtl" as the default 
extension for result files.
2.      In the test plan, add a Listener of type Simple Data Writer and specify 
a file name. A Simple Data Writer records results only to a file. It does not 
display data in the GUI.

Example 1: Results.jtl
        Example 2: C:\MyResults\Results.jtl
        Note   By default, results are saved in the C:\jakarta-jmeter-2.0.2\bin 
directory. Specify a fully qualified path if you want to save the results file 
in another directory.
3.      Remove Listeners that display data in the GUI from the test plan.
4.      Run the test plan.
5.      To display recorded results in a Listener:

a.      Add the Listener to the test plan, such as Aggregate Report.
b.      In the Filename text box, specify the file.
        Example: Results.jtl
c.      Press Enter.
        The Listener displays results recorded in the file.

Note   The results file does not save the Request tab page and Response data 
tab page information in the View Results Tree listener.


-----Original Message-----
From: zdxu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 10:52 PM
To: JMeter Users List
Subject: How to store the result into a file and re-open it?


Anyone give me some hint?
Some listener could store the result, text and graphics into a file, but how
to open it if I send these files to another JMeter user?



---------------------------------------------------------------------
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