Most websites have a means of authenticating users, thereby enabling them to gain access to protected data or content that only pertains to them. Also, it is very common for websites to give users different roles based on what the user will be doing. For instance, a user called
Joe could be given admin privileges while
Susan is only given user privileges. Whatever the case, JMeter has a way to maintain HTTP user sessions for your test scripts.
In this recipe, we will detail how to accomplish this with JMeter. Perform the following steps: