Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Original edit by JMeterAdmin] JMeter timestamps are Java, not Unix

...

The above settings can also be defined as global properties in the JMeterjmeter.properties configuration file, or in the user.properties file.

The JMeter Log Format

...

XML Element

Explanation

{{/testResults }}

Root element for XML test log

No Format
    @version    	

Version of test results. Currently (JMeter 2.1.1), set to "1.1" irrespective of testlog format flag.

No Format
    /sampleResult/...

All log data is stored under an array of 'sampleResult' elements.

No Format
        @timeStamp	

Timestamp - See Java method System.currentTimeMillis()

No Format
        @dataType	

Datatype - typically "text"

No Format
        @threadName	

Name set for the thread group, with affixed at the end " <iteration>-<thread_id>". For eg "Integration Tests Thread Group 1-1"

No Format
        @label		

Label set for the sampler. For eg "Login to Custom URL using test account credentials"

No Format
        @time		

Time in milliseconds for request to complete. Eg "2515"

No Format
        @responseMessage	

Response message. Eg "OK"

No Format
        @responseCode	

Response code. Eg "200"

No Format
        @success		

String indicating status of the request. Can be "true" or "false"

No Format
        /sampleResult/...	

HTTP Redirects are represented as an array of nested 'sampleResult' elements. Only 1 level of nesting occurs (i.e. the nested subresults do not nest further).

No Format
        /property		

A string containing POST Data, Query Data and Cookie Data

No Format
            @xml:space	

XML attribute indicating whether that white space is significant. Set to "preserve"

No Format
            @name		

Set to "samplerData"

No Format
        /assertionResult/...	

Assertion information are stored in an array of assertionResult

No Format
            @failureMessage	

The failure message when the assertion fails

No Format
            @error		

Set to "true" or "false" to indicate error in assertion (stays "false" on assertion failure)

No Format
            @failure		

Set to "true" or "false" to indicate whether assertion failed or not

No Format
        /binary		

Data returned in response

...

Once the data is in Excel, I convert the timestamp column from Jmeter's Unix Java timestamp format (base year 1970) to the Excel format (base year 1900 or 1904 depending on the Excel version and underlying OS) using this following formula. This formula is applied to the entire timestamp column.

...

The script uses a few neat awk tricks, such as:

  • Rounding unix Java timestamps to nearest minute
  • Collect timestamps grouped by minute
  • Convert unix Java timestamp to YYYY-MM-dd etc.
  • Print Throughput for a minute increment
  • Print Average response time for a minute increment
  • Do all of the above in an efficient single pass through awk (this was the hardest bit!)

...

NB, here's a script to convert JMeter's Unix Java timestamps:
Script: utime2ymd.txt

...