7
votes

I am using Jmeter to stress test my website.

Each user needs to make two requests consecutively:

  1. First request to a auto-login page.
  2. Second request to an internal page.

How can I tell Jmeter to make these two requests in that order for each thread?

1
I meant I need first to login to get authenticated session and later go to target page. If two requests are executed separately it is not possible to get the authorized session. - jmeter_test

1 Answers

10
votes

Take a look at order execution in the User Manual

Jmeter will run the requests in the order you place them. So your structure would look like this:

Test Plan
 + ThreadGroup
   + HTTP Request - LOGIN
   + HTTP Request - 2nd Page

In addition to reading the usermanual, also check out the official step-by-step guide on how to record