Skip to end of metadata
Go to start of metadata

Plugin Information

No information for the plugin 'measurement-plots' is available. It may have been removed from distribution.

Plot measurements embedded into the standard output and error streams of tests.

General

Searches standard output and standard error of test reports for measurements of the form:

<measurement><name>My Measurement</name><value>42.0</value></measurement>

These measurements will be associated with the test objects they are found within.

Measurement Format Requirements

The <measurement> must be:

  • on one line
  • within the standard-output or standard-error tags in the JUnit output
  • escaped (they're essentially a nested mini-document)

e.g.,

<standard-error>
&lt;measurement&gt;&lt;name&gt;hi&lt;/name&gt;&lt;value&gt;16&lt;/value&gt;&lt;/measurement&gt;
</standard-error> 

Example of a Complete Input JUnit File

Notice that the XML-like syntax for the measurement has to be escaped in the <system-out> element.

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
    <testsuite name="package">
       <testcase name="case" time="0"/>
       <system-out>
&lt;measurement&gt;&lt;name&gt;Length (m)&lt;/name&gt;&lt;value&gt;0.5&lt;/value&gt;&lt;/measurement&gt;
&lt;measurement&gt;&lt;name&gt;Time (s)&lt;/name&gt;&lt;value&gt;0.2&lt;/value&gt;&lt;/measurement&gt;</system-out>
    </testsuite>
</testsuites>

Example of Multiple Measurements on a Test Object

Example of a Measurement Graph

Configuration

Global Configuration

None.

Project Configuration

For a project to use the Measurement Plots plugin, you need to enable it in the project configuration page:

Post-build actions > Publish JUnit test result report > Additional test report features > Measurement Plots

Version History

0.1 (Apr 7, 2010)

  • Initial public release

0.0 (Apr 3, 2010, Unreleased)

7 Comments

  1. Unknown User (danil)

    Set up measurement plugin and configured in project but can't find any plot on test page. Data are placed into file target/surefire-reports/com.xxxxxxxx.stress.StressTest-output.txt:

    2010-09-01 13:36:45.622/2.232 Oracle Coherence 3.5.3/465p6 <Info> (thread=pool-1-thread-1, member=n/a): Loaded operational overrides from resource "jar:file:/apps/grimis2/hudson/datafabric-hudson/repository/com/oracle/coherence/coherence/3.5.3.p6/coherence-3.5.3.p6.jar!/tangosol-coherence-override-dev.xml"
    2010-09-01 13:36:45.625/2.235 Oracle Coherence 3.5.3/465p6 <D5> (thread=pool-1-thread-1, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
    2010-09-01 13:36:45.634/2.244 Oracle Coherence 3.5.3/465p6 <D5> (thread=pool-1-thread-1, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified

    Oracle Coherence Version 3.5.3/465p6
    Grid Edition: Development mode
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

    2010-09-01 13:36:46.444/3.054 Oracle Coherence GE 3.5.3/465p6 <Info> (thread=pool-1-thread-1, member=n/a): Loaded cache configuration from "jar:file:/apps/grimis2/hudson/datafabric-hudson/repository/com/oracle/coherence/coherence/3.5.3.p6/coherence-3.5.3.p6.jar!/coherence-cache-config.xml"
    2010-09-01 13:36:47.402/4.012 Oracle Coherence GE 3.5.3/465p6 <Warning> (thread=pool-1-thread-1, member=n/a): Local address "127.0.0.1" is a loopback address; this cluster node will not connect to nodes located on different machines
    2010-09-01 13:36:47.616/4.226 Oracle Coherence GE 3.5.3/465p6 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2010-09-01 13:36:50.864/7.474 Oracle Coherence GE 3.5.3/465p6 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xDDF1" with Member(Id=1, Timestamp=2010-09-01 13:36:47.421, Address=127.0.0.1:8088, MachineId=33343, Location=machine:localhost,process:24189, Role=ApacheMavenSurefireBooter, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4, PublisherSuccessRate=1.0, ReceiverSuccessRate=1.0, LastIn=n/a, LastOut=n/a, LastSlow=n/a) UID=0x7F0000010000012ACD4CA8BD823F1F98
    2010-09-01 13:36:50.915/7.526 Oracle Coherence GE 3.5.3/465p6 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2010-09-01 13:36:51.473/8.083 Oracle Coherence GE 3.5.3/465p6 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    <measurement><name>SimpleSnapshotReader</name><value>115</value></measurement>
    <measurement><name>TemporalDataLoader [generator=SimpleDataGenerator [], putDelay=1, numberOfRecords=1000]</name><value>17905</value></measurement>
    task:TemporalDataLoader [generator=SimpleDataGenerator [], putDelay=1, numberOfRecords=1000] duration:17905
    task:SimpleSnapshotReader duration:115

    1. Same problem here. Can't find no diagram.

    2. The suggested configuration goes under the option "Publish JUnit test result report"; the location of test reports to load is specified under "Test report XMLs". Hence I guess that test logs must be in the JUnit XML format, unlike the log fragment you show.
      However, I can't make the plugin work for me either.

  2. I don't think I understand how this plug in should work. I tried writing a line like:<measurement><name>name</name><value>1</value></measurement>

    to the console output, but there is no report in Jenkins.
    Where/how/when should the <measurement> information be written?

  3. I just talked wiht the author and he helped me out.  I wrote a StackOverflow article about it here:

    http://stackoverflow.com/a/13941849/598374

  4. Hi everyone,

    I have a JS file that looks to see how long it takes to load a webpage. Once the page loads it saves the result (time in ms) to a file. After looking at the Measurements Plugin I see its a extension to the Junit Test result post build.
    currently my script writes to a file "time_load.xml" and writes the following for example: <measurement><name>Time (ms)</name><value>11352</value></measurement>

    When my build finishes it fails and this is the console output:

    Loading time 11352 msec
    Recording test results
    None of the test reports contained any result
    Build step 'Publish JUnit test result report' changed build result to FAILURE
    Finished: FAILURE

    Anyone have experience with this plugin or understand how to get this to work?

  5. I've beefed up the documentation using content I've sent to various people via email. I hope this helps.