jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: How to vary HttpClient Sampler user names
Date Tue, 02 Nov 2010 16:17:33 GMT
On 2 November 2010 15:19,  <cur.m.geon@gmail.com> wrote:
> I have a REST application that requires user authentication. I have setup
> the required accounts on my server (user_1..user_n)
>
> The application provides to the client, via http response header, a security
> token that must be returned with each subsequent request.
>
> I have a thread group that produces n threads. The group contains a Http
> Authorization Manager, Http Header Manager (to apply tokens), XML Extractor
> (extracts token from response) and Http Client Sampler to exercise the REST
> interface.
>
> I have verified that the thread group functions properly by hard coding the
> credentials in the authorization manager (user_1).
>
> I am having difficulty when trying to get each thread to use a different
> account. The method I am using is via a Counter that bumps the count by for
> each thread. I have modified the Username field in the authorization manager
> to user_${counterRef}.
>
> When the test is run now the http client sampler fails due to authentication
> errors.
>
> Is the approach I am taking to vary across a set of user correct?
>

Have you checked the request and response details in the Tree View Listener?

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


Mime
View raw message