There are of course other ways to solve the problem ...

For example, use a variable to hold the host name.
The variable can be set in various ways.

Use a Javascript or BeanShell function to generate a random value of
either 0 or 1 and then use that to select between the addresses.

or

Create a file containing a random assortment of addresses, and read
that into a variable using CSV Data Set or the StringFromFile
function.

S.
On 06/03/07, Bernhard Wellhöfer <[EMAIL PROTECTED]> wrote:
Hello Sebb,

In that case I have to duplicate big parts of my test plan... Not a good idea.

Regards,

Bernd

> -----Ursprüngliche Nachricht-----
> Von: sebb [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 6. März 2007 16:57
> An: JMeter Users List
> Betreff: Re: Random "Server name or IP"
>
> On 06/03/07, Bernhard Wellhöfer
> <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I want to test a cluster system with two web frontend server (each
> > with it's own IP). How to I randomly set the IP number?
> What I want is
> > a test plan like
> >
> > Test Plan
> >    HTTP Defaults for port, protocol and path
> >    Randomly a HTTP Defaults to select one of two possible IPs
> >    HTTP Request
> >    HTTP Request
> >
> > I already tried a Random Controller with two HTTP Defaults
> (one for each IP), but had no sucess.
> >
>
> Only samplers are executed by Controllers; if a sample is
> executed then the associated defaults are applied, so unless
> you added the samplers to the random controller then I am not
> surprised it did not work.
>
> Try adding the HTTP Requests as children of the Random Controller.
>
> S.
>
> ---------------------------------------------------------------------
> 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