Uncheck the forever
in your loop count for starters. If your first loop loops forever and test it executed sequentially within a thread group then the second won't kick off until the first is done.
EDIT:
One way to go about this is :
- Create 2 thread groups (1 for positive and 1 for negative)
So you would have some kind of input file where your links would be stored(each line containing one link) which you want to visit both as authorized(logged in) or unauthorized(not logged in).
I'd do this if I were you :
Create one thread group and login inside
Create second thread group. In the second thread group (positive), when user is logged create CSV Data Set Config
. Important points Recycle on EOF
-> True
and Stop thread on EOF
-> False
. Set the loopcount to Forever as you did in your loopcontroller in the screenshot and it will quit after it completes all the wesites. These should return 200
OK status code.
Logout in the third thread group
Create another thread group (negative), use the same file (which containts ulrs to visit). And create another CSV Data Set Config
under this thread group as well. And do the rest as you did in step two. These should return response code 401
unauthorized or 403
Forbidden, depending on your service implementation.
There is always more than one solution to a problem. This is just one of those, pick one which you like the most.