jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Kiss <ak...@kheops-tech.com>
Subject saving a custom sampler?
Date Fri, 11 Apr 2003 15:06:08 GMT
 
Hi,
 
So I'm trying to develop a custom sampler to test one of our products,
Its not going too bad, I've got the sampler to do what I want, but I
have a problem saving and opening the sampler.  
 
So I've created a new JMeter project which contains 1) Thread group and
2) my custom sampler.   Saving seems to work well (below is the saved
file contents), but when I try to open my save, I get a popup entitled
Error which doesn't have any message, here's nothing in JMeter's log and
nothing is opened in JMeter.   If I remove the third node (my custom
sampler), it loads without a problem (Without my custom sampler of
course).
 
I've checked the WIKI as suggested earlier by Wolfram, thanks btw :-),
but there doesn't seem to be anything on the subject.
 
            Any suggestions?  
 
            Thanks!
 
 
Alexandre Kiss


 
 
<?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"
name="TestElement.gui_class">org.apache.jmeter.config.gui.ArgumentsPanel
</property>
      <property xml:space="preserve"
name="TestElement.test_class">org.apache.jmeter.config.Arguments</proper
ty>
      <collection class="java.util.ArrayList"
name="Arguments.arguments"/>
      <property xml:space="preserve" name="TestElement.name">Argument
List</property>
    </testelement>
    <property xml:space="preserve"
name="TestElement.gui_class">org.apache.jmeter.control.gui.TestPlanGui</
property>
    <collection class="java.util.LinkedList"
name="TestPlan.thread_groups"/>
    <property xml:space="preserve"
name="TestElement.test_class">org.apache.jmeter.testelement.TestPlan</pr
operty>
    <property xml:space="preserve" name="TestElement.name">Test
Plan</property>
    <property xml:space="preserve"
name="TestPlan.functional_mode">false</property>
  </testelement>
  <node>
    <testelement class="org.apache.jmeter.threads.ThreadGroup">
      <property xml:space="preserve"
name="TestElement.gui_class">org.apache.jmeter.threads.gui.ThreadGroupGu
i</property>
      <property xml:space="preserve"
name="TestElement.test_class">org.apache.jmeter.threads.ThreadGroup</pro
perty>
      <testelement class="org.apache.jmeter.control.LoopController"
name="ThreadGroup.main_controller">
        <property xml:space="preserve"
name="TestElement.gui_class">org.apache.jmeter.control.gui.LoopControlPa
nel</property>
        <property xml:space="preserve"
name="LoopController.loops">1</property>
        <property xml:space="preserve"
name="TestElement.test_class">org.apache.jmeter.control.LoopController</
property>
        <property xml:space="preserve" name="TestElement.name">Loop
Controller</property>
        <property xml:space="preserve"
name="LoopController.continue_forever">false</property>
      </testelement>
      <property xml:space="preserve" name="TestElement.name">Thread
Group</property>
      <property xml:space="preserve"
name="ThreadGroup.num_threads">1</property>
      <property xml:space="preserve"
name="ThreadGroup.ramp_time">1</property>
    </testelement>
    <node>
      <testelement class="jmap.test.sampler.JMapConnectionSampler">
        <property xml:space="preserve"
name="TestElement.gui_class">jmap.test.control.gui.JMapConnectionSampler
Gui</property>
        <collection class="java.util.ArrayList"
name="AbstractSampler.assertions"/>
        <property xml:space="preserve"
name="TestElement.test_class">jmap.test.sampler.JMapConnectionSampler</p
roperty>
        <property xml:space="preserve"
name="TestElement.name">InitJMapConnection</property>
        <property xml:space="preserve"
name="JMapConnectionSampler.directPort">7003</property>
        <property xml:space="preserve"
name="JMapConnectionSampler.host">horus</property>
      </testelement>
    </node>
  </node>
</node>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message