You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sharmadha <ss...@hortonworks.com> on 2016/05/11 05:42:10 UTC

Re: Adding samplers to thread group

Stuck with same problem ! Can someone explain about indexing samplers or xml
node model ? Or any other solution ?

Thanks in advance.



--
View this message in context: http://jmeter.512774.n5.nabble.com/Adding-samplers-to-thread-group-tp5724140p5724172.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


Re: Adding samplers to thread group

Posted by Sharmadha <ss...@hortonworks.com>.
So , finally ListedHashTree worked !

"ListedHashTree is a different implementation of the HashTree collection
class. In the ListedHashTree, the order in which values are added is
preserved (not to be confused with SortedHashTree, which sorts the order of
the values using the compare() function). Any listing of nodes or iteration
through the list of nodes of a ListedHashTree will be given in the order in
which the nodes were added to the tree." as given in documentation ! :)



Thanks Sebb and Prakash :)



--
View this message in context: http://jmeter.512774.n5.nabble.com/Adding-samplers-to-thread-group-tp5724140p5724177.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


Re: Adding samplers to thread group

Posted by sebb <se...@gmail.com>.
On 11 May 2016 at 14:46, Sharmadha <ss...@hortonworks.com> wrote:
> Hi,
> Thanks for the response.
> in jmx file that is created from UI, hashtree class is hashTree
>
> whereas in jmx file created from java code, it is
> <org.apache.jorphan.collections.HashTree>
> if i change <org.apache.jorphan.collections.HashTree> to hashTree everything
> works perfect.
>
> how to use hashTree instead of org.apache.jorphan.collections.HashTree ?
>
> Basically , hashTree is object of which class ?
>

See bin/saveservice.properties

But note that this is internal code and may change.

It would be better to create a JMX file.

>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Adding-samplers-to-thread-group-tp5724140p5724175.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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Adding samplers to thread group

Posted by Sharmadha <ss...@hortonworks.com>.
Hi,
Thanks for the response.
in jmx file that is created from UI, hashtree class is hashTree

whereas in jmx file created from java code, it is
<org.apache.jorphan.collections.HashTree>
if i change <org.apache.jorphan.collections.HashTree> to hashTree everything
works perfect.

how to use hashTree instead of org.apache.jorphan.collections.HashTree ?

Basically , hashTree is object of which class ?



--
View this message in context: http://jmeter.512774.n5.nabble.com/Adding-samplers-to-thread-group-tp5724140p5724175.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


Re: Adding samplers to thread group

Posted by sebb <se...@gmail.com>.
There are some guides to writing plugin code which are linked from the website.

JMeter is open source, so the code is available online.
Again this is linked from the website.

Unlike the plugin test elements, note that the underlying JMeter
engine was not  specifically designed to be extended.
So such internals may change between releases.
That's not to say that they will change, but equally the JMeter
project cannot guarantee stability of internals.

The basic JMX file format however will not change without warning.

If you want to generate a JMeter test plan from Java code, then
generate it as a JMX file.
Otherwise you must prepared to update your code as necessary for new
JMeter releases.

On 11 May 2016 at 06:42, Sharmadha <ss...@hortonworks.com> wrote:
> Stuck with same problem ! Can someone explain about indexing samplers or xml
> node model ? Or any other solution ?
>
> Thanks in advance.
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Adding-samplers-to-thread-group-tp5724140p5724172.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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org