jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prakash Palnati <prakash.paln...@snapwiz.com>
Subject Re: Adding samplers to thread group
Date Wed, 20 Apr 2016 05:26:57 GMT
Because hashtree is not sorted collection.

Try giving index to the sampler or follow xml node model.
On 20-Apr-2016 10:26 am, "Sharmadha" <ssainath@hortonworks.com> wrote:

> I want to add 3 samplers to thread group via java code.
>
> this is my java code
>
> HashTree threadGroupTree=testPlanTree.add(testPlan,threadGroup);
> threadGroupTree.add(sampler1);
> threadGroupTree.add(sampler2);
> threadGroupTree.add(sampler3);
>
> compiles and runs.
>
> When I open the corresponding .jmx file, it is added as
>
> sampler 2
> sampler 1
> sampler 3
>
>
> and the next time order changes.
>
> How to make samplers add in order into the Threadgroup ? Please help
>
>
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Adding-samplers-to-thread-group-tp5724140.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

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