Hi Deepak,
What I meant is that in your test plan example there wasn't a Random
Controller anymore.
I've tested like this and it works for me too:
Thread Group 1 (1 thread 1 Loop)
Loop Controller ( 5)
Module Controller --- Thread Group 2 --Recording -- Simple
Thread Group 2 (Disabled)
Hi
you could do this with BSH, You'd have to write some java code that can get
6 strings from 250 randomly from a file and set those as variables that can
be iterated over(using forEach , your variables would have the names like
url_1 , url_2 and the foreach would iterate over url , you'd just
You should check out the switch controller too. You can add random weighted
choice of children by putting the following snippet into the switch value
field:
${__BeanShell(random = new Random();int[] values =
{0\,0\,0\,0\,0\,0\,0\,0\,0\,0\,0\,0\,1\,1\,1\,1\,1\,2\,2\,3};return
Hi guys, I was experimenting with an idea that doesn't require coding
and found a little bug:
Make a test plan like this
thread group (threads = 1, ramp = 1, loops = 1)
+loop controller (5 times)
\- module controller that refferences to the random controller bellow
+recording controller
\-
Can you retest with ading a simple controller as the parent of the random
and point your module controller to it? im not sure if the module controller
includes all the children under it or includes the parent as well..
+loop controller (5 times)
\- module controller that refferences to the
Still not working right, however I got it a little wrong about the
number of results:
case 1:
- random controller is directly in the recording controller: for 5
loops, I get 15 results (not 10 as mentioned in previous mail).
case 2
- deepak's recommendation, random controller in simple
One last thing , move the recording controller to its own disabled Thread
Group
Thread Group 1 (1 thread 1 loop)
+loop controller (5 times)
\- module controller that refferences to the group2/simple controller
bellow
Thread Group 2 (Disabled)
+recording controller
simple Controller
\-
True, that works for me as well.
But the point was to select random actions each loop, so it's the
random controller at stake here.
On Thu, Aug 27, 2009 at 8:48 PM, Deepak Shettyshet...@gmail.com wrote:
Hi
this works as expected for me
Thread Group 1 (1 thread 1 Loop)
Loop Controller ( 5)
Hi
Im not sure what you mean? Random actions do get selected (under simple
controller). if your simple controller had 250 requests then you would get 5
at random (though the original posted stated that he didnt want those 250
requests as samples)
regards
deepak
On Thu, Aug 27, 2009 at 10:54 AM,
The only other thing I can think of other than BSH would be to write a pre
process step (perhaps in ANT or somewhere) which reads the file and
dynamically creates a Jmeter test file (its pretty straight forward to do
this) with 250 samples which then is included into your main test ..
regards
10 matches
Mail list logo