You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The JMeter Jmx Test Plan Format

TableOfContents

JMX Format

JMX are save using [http://xstream.codehaus.org/ 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

TODO.

How to save in 2.0 Format

Set properties in jmeter.properties. See [:JMeterFAQ: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