Re: Branching in tests

2008-07-08 Thread sebb
On 08/07/2008, Andrey Beznogov <[EMAIL PROTECTED]> wrote: > Hi, > > So as I understand, the script will be something like > > > Random generator = new Random(); > double myRandom = generator.nextDouble(); > if (myRandom < 0.9) { > > return 0; > > } else if (myRandom < 0.95) { > >

Re: Branching in tests

2008-07-08 Thread Andrey Beznogov
Hi, So as I understand, the script will be something like Random generator = new Random(); double myRandom = generator.nextDouble(); if (myRandom < 0.9) { return 0; } else if (myRandom < 0.95) { return 1; } else { return 2; } instead. But where should I put

Re: Branching in tests

2008-07-07 Thread sebb
On 07/07/2008, Andrey Beznogov <[EMAIL PROTECTED]> wrote: > Hi, > > that worked for sure - thanks for your advice! I guess Ill be using > BeanShellSampler and Processors a lot in my tests. > > In my case (3 options in the Switch Controller) I just had to add a > simple BeanShell Sampler just be

Re: Branching in tests

2008-07-07 Thread Andrey Beznogov
Hi, that worked for sure - thanks for your advice! I guess Ill be using BeanShellSampler and Processors a lot in my tests. In my case (3 options in the Switch Controller) I just had to add a simple BeanShell Sampler just before the Switch Controller with some very simple Java code Random generat

Re: Branching in tests

2008-07-07 Thread kirk
Hi all, I just received my copy of Apache JMeter from Packt Publishing. I'll be reviewing it for our website, www.javaperformancetuning.com and www.theserverside.com. At 108 pages I expect I'll be finished the book in a very short, single sitting. Not that I have anything against short books,

Re: Branching in tests

2008-07-07 Thread Ronan Klyne
Andrey Beznogov wrote: Hello. I was trying to prepare some tests using JMeter, and its seems that existing logic controllers are just not enough. In my test plan, I wanted to have some branching - i.e. I wanted to group together some test "branches" (Simple Controllers with some HTTP Requests i

Branching in tests

2008-07-07 Thread Andrey Beznogov
Hello. I was trying to prepare some tests using JMeter, and its seems that existing logic controllers are just not enough. In my test plan, I wanted to have some branching - i.e. I wanted to group together some test "branches" (Simple Controllers with some HTTP Requests inside) under some Control