You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by is_maximum <mn...@gmail.com> on 2009/01/22 15:41:34 UTC

How to set the SamplerResult

Hi 
I am new to JMeter and want to create a Java request, a customized sampler.
my question is which properties of the SamplerResult should be set in order
to get correct result from JMeter?

I want to create a JMS sampler in which a message will be sent but to create
such message we have a bunch of code to create the request and then create
the message, that is why we are creating a customized sampler.

thank you 

-----
--
Regards

Mohammad Norouzi

Help each other to reach the future faster

http://pixelshot.wordpress.com Pixelshot Photoblog 

http://brainable.blogspot.com Brainable Blog 


-- 
View this message in context: http://www.nabble.com/How-to-set-the-SamplerResult-tp21605420p21605420.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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


Re: How to set the SamplerResult

Posted by sebb <se...@gmail.com>.
On 22/01/2009, is_maximum <mn...@gmail.com> wrote:
>
>
>  How can I find an existing sampler?

Look in the source archive.

>  the content of a message should be a xml file that is created from an object
>  with JAXB, so I am planning to build a bunch of random data and then create
>  a XML file for each. Then in my sampler I want to read the files randomly
>  and set the message content.
>
>  How to pass these data to an existing sampler?
>

See:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#JMS_Publisher

Configuration: from file

>
>
>
>  -----
>  --
>  Regards
>
>  Mohammad Norouzi
>
>  Help each other to reach the future faster
>
>  http://pixelshot.wordpress.com Pixelshot Photoblog
>
>  http://brainable.blogspot.com Brainable Blog
>
>
>  --
>
> View this message in context: http://www.nabble.com/How-to-set-the-SamplerResult-tp21605420p21612134.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: How to set the SamplerResult

Posted by is_maximum <mn...@gmail.com>.

How can I find an existing sampler?

the content of a message should be a xml file that is created from an object
with JAXB, so I am planning to build a bunch of random data and then create
a XML file for each. Then in my sampler I want to read the files randomly
and set the message content. 

How to pass these data to an existing sampler?




-----
--
Regards

Mohammad Norouzi

Help each other to reach the future faster

http://pixelshot.wordpress.com Pixelshot Photoblog 

http://brainable.blogspot.com Brainable Blog 


-- 
View this message in context: http://www.nabble.com/How-to-set-the-SamplerResult-tp21605420p21612134.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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


Re: How to set the SamplerResult

Posted by sebb <se...@gmail.com>.
On 22/01/2009, is_maximum <mn...@gmail.com> wrote:
>
>  Hi
>  I am new to JMeter and want to create a Java request, a customized sampler.
>  my question is which properties of the SamplerResult should be set in order
>  to get correct result from JMeter?

I suggest you look at one of the existing samplers and copy that.

>  I want to create a JMS sampler in which a message will be sent but to create
>  such message we have a bunch of code to create the request and then create
>  the message, that is why we are creating a customized sampler.

Unless the content varies dynamically during the test, it would be
better to read it from files that are pre-created.

Even if it does vary, why not create the data in a variable and pass
the variable to the existing sampler?

>  thank you
>
>  -----
>  --
>  Regards
>
>  Mohammad Norouzi
>
>  Help each other to reach the future faster
>
>  http://pixelshot.wordpress.com Pixelshot Photoblog
>
>  http://brainable.blogspot.com Brainable Blog
>
>
>
>  --
>  View this message in context: http://www.nabble.com/How-to-set-the-SamplerResult-tp21605420p21605420.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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