The JMeter Jmx Test Plan Format

JMX Format

JMX are save using xtream.

Differences between 2.0 and 2.1 Format

The 2.0 format always saved the full class names.

upgrade.properties was used purely to allow class name changes. renamed elements mapping can also be found in upgrade.properties.

Jmx Test Plan 2.1 Format

Mapping between node name (example: <hashTree> or <TestPlan>) and the real package.classname is done using saveservice.properties.

2.1 Format Example

Here's what a 2.1 jmx format would look like:

<jmeterTestPlan version="1.2" properties="1.8">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
    ...
    </TestPlan>
    <hashTree>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
      ...
      </ThreadGroup>
      <hashTree>
        <RecordingController guiclass="RecordController" testclass="RecordingController" testname="Recording Controller" enabled="true"/>
        <hashTree>
          <HTTPSampler guiclass="HttpTestSampleGui" testclass="HTTPSampler" testname="/my_webapp/root/page" enabled="true">
          ...
          </HTTPSampler>
          <hashTree>
            <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="Browser-derived headers" enabled="true">
            ...
            </HeaderManager>
            ...
            <hashTree/>
          </hashTree>
      <hashTree/>
    </hashTree>
  </hashTree>

Jmx Test Plan 2.0 Format

How to save in 2.0 Format

Set properties in jmeter.properties. See JMeter FAQ.

2.0 Format Example

Here's what a 2.0 jmx format would look like:

<?xml version="1.0" encoding="UTF-8"?>
<node>
  <testelement class="org.apache.jmeter.testelement.TestPlan">
    <testelement class="org.apache.jmeter.config.Arguments" name="TestPlan.user_defined_variables">
      <property xml:space="preserve" propType="org.apache.jmeter.testelement.property.StringProperty" name="TestElement.gui_class">org.apache.jmeter.config.gui.ArgumentsPanel</property>
      <collection class="java.util.ArrayList" propType="org.apache.jmeter.testelement.property.CollectionProperty" name="Arguments.arguments"/>
      ...
    </testelement>
    <property xml:space="preserve" propType="org.apache.jmeter.testelement.property.StringProperty" name="TestElement.gui_class">org.apache.jmeter.control.gui.TestPlanGui</property>
    ...
  </testelement>
  <node>
  ...
  </node>
  ...
</node>
  • No labels