Tom,

If you don't want to use an int as an approximation, maybe you can find some way to use the __Random to generate a pseudo-random number in a large range, e.g. 0-1,000,000, then test the random number for the percentage that you want. E.g. in pseudocode

if ($__Random(1,1000000) < (1,000,000*0.83274/100)) ...

then figure out how to get conditional test execution based on that result. (I've only used a small subset of JMeter so far...not sure best way to do that.)

Steve

sebb wrote:
On 10/03/2008, Tom Fernandes <[EMAIL PROTECTED]> wrote:
Hello again,



 On Monday, 10. March 2008, Tom Fernandes wrote:
 > Hi,
 >
 > If I want to run a certain request with the probability of e.g. 12% I would
 > use the Troughput controller.
 >
 > Now I would like to run a request A with the probability of 1.2% and the
 > subsequent (child of) request B only with the probability of 0.8374%
 > occurrence. Request C is child of request B and occurs only with a
 > probability of 0.234456%.


It does look like that I can give percentage numbers <0 and / or floating
 points with the Throughput controller. So I could give 1.2% or 0.234456% in
 the percentage field?

 Is that correct?

No.

The docs say:

"A number. for percent execution mode, a number from 0-100"

and the code uses an int to hold the value.

 regards,



 Tom

 ---------------------------------------------------------------------
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to