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?