Hi Mike
I'm trying this out as follows:
I create user defined values USER1, USER2, USER3 etc
Then I reference them in a Http Sampler. I'm trying to pass the values of
USER1 to a login page as a parameter called username.
So I in the HttpSampler I have a Parameter:
username ${USER$__{threadNum}}
but it passes this as
username=%7BUSER1%7D
i.e. in other words it evaluates the inner built in function call to
threadNum but not the outer user-defined variable $USER1. %7B is the
encoding for a {
What am I doing wrong? I don't see an example anywhere?
Thanks in advance
Andy
-----Original Message-----
From: Mike Stover [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 6:28 PM
To: JMeter Users List
Subject: Re: How have each thread use a unique User-Id
You can do this with the new User Parameters config element. It's available
in the
nightlies. It lets you specify thread-specific values and use them as
user-defined
values.
Documentation about user-defined values is availabe at:
http://jakarta.apache.org/jmeter/usermanual/functions.html
and from there, the User Parameters config element should be fairly self-
explanatory from the GUI.
-Mike
On 20 Sep 2002 at 16:51, Sosnowski, Andrew P [IT] wrote:
> I've been wondering about something like this.
> I feel like there needs to be a Interleave Controller that works within
the
> Thread group rather than just within a Loop.
>
> An example of why this is necessary:
>
> I would like Thread 1 to login as User 1, thread 2 to login as user2 etc.
> This is what I thought the Interleave controller did but it doesn't;
Thread
> one log's in as User one, thread2 logs in as User 1, etc.
>
> The reason I need this is that our App stores individual user info in a
> Session that gets changed as they progress through our website. If 2
threads
> are using the same User-id they will be affecting each other's Session
> values with unpredictable results. I want each thread to use a distinct
user
> id.
>
> I want the several threads to be hitting the server at the same time but
as
> distinct users. The only way I can see of doing this now is writing
several
> almost identical scripts except for the login and running them
> simultaneously as several jMeter runs.
>
> I believe I saw this come up before and I'm sorry if I'm asking a question
> that has already been hashed over but I am unable to view my jMeter mail
> archive today. If there is an answer already can someone forward it to me?
>
>
> Thanks in advance
> Andy
>
> -----Original Message-----
> From: Rohit Peyyeti
> To: 'JMeter Users List'
> Sent: 9/20/02 1:49 PM
> Subject: Random Controller question
>
> Hello All:
>
> Does anybody know if Random Controller works the way it was supposed to
> work
> according to the documentation?
>
> I was trying to achive this using Random Controller, but looks like it
> refuses to work. I have installed 19th Nightly build but the problem
> still
> persists.
>
> Thread Group
> - HTTP Requests defaults (A)
> - HTTP Cookie Manager
> - Only Once Controller (B)
> - HTTP request to login
> - Loop Controller (C)
> - Random Controller (D)
> - Simple Controller (E)
> - HTTP Request 1
> - HTTP Request 2
> - HTTP Request 3
> - HTTP Request 4
> - HTTP Request 5
> - Simple Controller (F)
> - HTTP Request 1
> - HTTP Request 2
> - HTTP Request 3
> - HTTP Request 4
> - HTTP Request 5
>
>
> The problem which I'm facing here was that JMeter stops executing
> whatever
> requests under Label (E) & (F) after initially executing two or three
> requests under both of each controllers. What I expected was that JMeter
> would excute all the requests under Label (E) or (F) randomly. Is't it
> the
> way Random Controller supposed work? Or I'm I doing something wrong?
>
> To zero it on Random Controller for the fault, I also moved (E) & (F)
> controller directly under Loop Controller. Everything worked fine then.
>
> Regards,
> Rohit Peyyeti
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>