You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jatin Davey <ja...@cisco.com> on 2009/10/13 15:57:20 UTC

Different threads with different users

Hi All

I have a requirement where in each thread requires to use a seperate 
username and password to log into the server and execute the samples.
Say i have 50 users who can log into the server and perform the 
operations then i want JMeter to launch 50 threads with each thread 
logging into the server with 50 different username and passwords.

Currently i am working with just one user name and password launching 
all the 50 threads using the user name and password.

Any help in this regard would be helpful.

Thanks
Jatin

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Different threads with different users

Posted by Nikolay_Miroshnichenko <ni...@gmail.com>.
sebb wrote:
> On 13/10/2009, Jatin Davey <ja...@cisco.com> wrote:
>> Hi All
>>
>>  I have a requirement where in each thread requires to use a seperate
>> username and password to log into the server and execute the samples.
>>  Say i have 50 users who can log into the server and perform the operations
>> then i want JMeter to launch 50 threads with each thread logging into the
>> server with 50 different username and passwords.
>>
>>  Currently i am working with just one user name and password launching all
>> the 50 threads using the user name and password.
>>
>>  Any help in this regard would be helpful.
> 
> Are there any restrictions on the usernames and passwords?
> E.g. could these be something like
> 
> user1/pass1...user50/pass50?
> 
> In which case you could use the __threadNum() function.
> 
> Otherwise, create a file with the users and passwords and use CSV Dataset.
> Search the mailing list archives for additional info.
> 
>>  Thanks
>>  Jatin
>>
>> ---------------------------------------------------------------------
>>  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 

There is an example in a bundle: jakarta-jmeter-2.3.4/bin/examples
It's an easy thing to do.

-- 
Best Regards
Nikolay Miroshnichenko



Re: Different threads with different users

Posted by sebb <se...@gmail.com>.
On 13/10/2009, Jatin Davey <ja...@cisco.com> wrote:
> Hi All
>
>  I have a requirement where in each thread requires to use a seperate
> username and password to log into the server and execute the samples.
>  Say i have 50 users who can log into the server and perform the operations
> then i want JMeter to launch 50 threads with each thread logging into the
> server with 50 different username and passwords.
>
>  Currently i am working with just one user name and password launching all
> the 50 threads using the user name and password.
>
>  Any help in this regard would be helpful.

Are there any restrictions on the usernames and passwords?
E.g. could these be something like

user1/pass1...user50/pass50?

In which case you could use the __threadNum() function.

Otherwise, create a file with the users and passwords and use CSV Dataset.
Search the mailing list archives for additional info.

>  Thanks
>  Jatin
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org