How to pass generated random number into 2 JMS Point to Point samplers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to pass generated random number into 2 JMS Point to Point samplers

Anil Venkatappagari
Hi All,

I have generated a random number by writing a piece of code in JSR223 PreProcessor. I am able to pass this into one Sampler of JMS Point to Point. It's all good until here.

I have added second Sampler of JMS Point to Point under the 1st one. I would like to pass on the same random number into these 2 samplers. I tried as shown in the attachment....but different random numbers are being passed into these 2 different JMS Point to Point samplers.

Can someone please help me on this?

Thank you very much with best regards,
Anil


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to pass generated random number into 2 JMS Point to Point samplers

shettyd
Hi
attachments dont make it to the mailing list - in general if you need to
reuse some value that is regenerated then you need to store it the first
time into some memory
For e.g. if you used
https://jmeter.apache.org/usermanual/functions.html#__Random then you would
use variable name to store it and use ${variableName}
I also sometimes use UserParameters (With the update every iteration) for
the same purpose

On Wed, Oct 16, 2019 at 4:31 AM Anil Venkatappagari <[hidden email]>
wrote:

> Hi All,
>
> I have generated a random number by writing a piece of code in JSR223
> PreProcessor. I am able to pass this into one Sampler of JMS Point to
> Point. It's all good until here.
>
> I have added second Sampler of JMS Point to Point under the 1st one. I
> would like to pass on the same random number into these 2 samplers. I tried
> as shown in the attachment....but different random numbers are being passed
> into these 2 different JMS Point to Point samplers.
>
> Can someone please help me on this?
>
> Thank you very much with best regards,
> Anil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to pass generated random number into 2 JMS Point to Point samplers

Anil Venkatappagari
Thank you Deepak for the response and working solution. This solution
worked when I used it on the same day after posting this question. And then
I did not know how to delete or revert my post. And I even don't know where
I could go to delete the post.

Thank you very much again!

On Mon, Oct 21, 2019 at 9:45 AM Deepak Shetty <[hidden email]> wrote:

> Hi
> attachments dont make it to the mailing list - in general if you need to
> reuse some value that is regenerated then you need to store it the first
> time into some memory
> For e.g. if you used
> https://jmeter.apache.org/usermanual/functions.html#__Random then you
> would
> use variable name to store it and use ${variableName}
> I also sometimes use UserParameters (With the update every iteration) for
> the same purpose
>
> On Wed, Oct 16, 2019 at 4:31 AM Anil Venkatappagari <[hidden email]>
> wrote:
>
> > Hi All,
> >
> > I have generated a random number by writing a piece of code in JSR223
> > PreProcessor. I am able to pass this into one Sampler of JMS Point to
> > Point. It's all good until here.
> >
> > I have added second Sampler of JMS Point to Point under the 1st one. I
> > would like to pass on the same random number into these 2 samplers. I
> tried
> > as shown in the attachment....but different random numbers are being
> passed
> > into these 2 different JMS Point to Point samplers.
> >
> > Can someone please help me on this?
> >
> > Thank you very much with best regards,
> > Anil
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
>
Reply | Threaded
Open this post in threaded view
|

Re: How to pass generated random number into 2 JMS Point to Point samplers

Felix Schumacher


Am 21. Oktober 2019 17:19:52 MESZ schrieb Anil Venkatappagari <[hidden email]>:
>Thank you Deepak for the response and working solution. This solution
>worked when I used it on the same day after posting this question. And
>then
>I did not know how to delete or revert my post. And I even don't know
>where
>I could go to delete the post.

This is a mailing list. You can't delete posts when they got send.

But even if you have figured out a solution, this thread might be helpful to others. So there really is no need to delete this.

Felix

>
>Thank you very much again!
>
>On Mon, Oct 21, 2019 at 9:45 AM Deepak Shetty <[hidden email]>
>wrote:
>
>> Hi
>> attachments dont make it to the mailing list - in general if you need
>to
>> reuse some value that is regenerated then you need to store it the
>first
>> time into some memory
>> For e.g. if you used
>> https://jmeter.apache.org/usermanual/functions.html#__Random then you
>> would
>> use variable name to store it and use ${variableName}
>> I also sometimes use UserParameters (With the update every iteration)
>for
>> the same purpose
>>
>> On Wed, Oct 16, 2019 at 4:31 AM Anil Venkatappagari
><[hidden email]>
>> wrote:
>>
>> > Hi All,
>> >
>> > I have generated a random number by writing a piece of code in
>JSR223
>> > PreProcessor. I am able to pass this into one Sampler of JMS Point
>to
>> > Point. It's all good until here.
>> >
>> > I have added second Sampler of JMS Point to Point under the 1st
>one. I
>> > would like to pass on the same random number into these 2 samplers.
>I
>> tried
>> > as shown in the attachment....but different random numbers are
>being
>> passed
>> > into these 2 different JMS Point to Point samplers.
>> >
>> > Can someone please help me on this?
>> >
>> > Thank you very much with best regards,
>> > Anil
>> >
>> >
>---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [hidden email]
>> > For additional commands, e-mail: [hidden email]
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to pass generated random number into 2 JMS Point to Point samplers

Anil Venkatappagari
Understood. Thank you!

On Mon, Oct 21, 2019 at 11:58 PM Felix Schumacher <
[hidden email]> wrote:

>
>
> Am 21. Oktober 2019 17:19:52 MESZ schrieb Anil Venkatappagari <
> [hidden email]>:
> >Thank you Deepak for the response and working solution. This solution
> >worked when I used it on the same day after posting this question. And
> >then
> >I did not know how to delete or revert my post. And I even don't know
> >where
> >I could go to delete the post.
>
> This is a mailing list. You can't delete posts when they got send.
>
> But even if you have figured out a solution, this thread might be helpful
> to others. So there really is no need to delete this.
>
> Felix
>
> >
> >Thank you very much again!
> >
> >On Mon, Oct 21, 2019 at 9:45 AM Deepak Shetty <[hidden email]>
> >wrote:
> >
> >> Hi
> >> attachments dont make it to the mailing list - in general if you need
> >to
> >> reuse some value that is regenerated then you need to store it the
> >first
> >> time into some memory
> >> For e.g. if you used
> >> https://jmeter.apache.org/usermanual/functions.html#__Random then you
> >> would
> >> use variable name to store it and use ${variableName}
> >> I also sometimes use UserParameters (With the update every iteration)
> >for
> >> the same purpose
> >>
> >> On Wed, Oct 16, 2019 at 4:31 AM Anil Venkatappagari
> ><[hidden email]>
> >> wrote:
> >>
> >> > Hi All,
> >> >
> >> > I have generated a random number by writing a piece of code in
> >JSR223
> >> > PreProcessor. I am able to pass this into one Sampler of JMS Point
> >to
> >> > Point. It's all good until here.
> >> >
> >> > I have added second Sampler of JMS Point to Point under the 1st
> >one. I
> >> > would like to pass on the same random number into these 2 samplers.
> >I
> >> tried
> >> > as shown in the attachment....but different random numbers are
> >being
> >> passed
> >> > into these 2 different JMS Point to Point samplers.
> >> >
> >> > Can someone please help me on this?
> >> >
> >> > Thank you very much with best regards,
> >> > Anil
> >> >
> >> >
> >---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [hidden email]
> >> > For additional commands, e-mail: [hidden email]
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>