Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do two consequent HTTP requests in JMeter?

Tags:

jmeter

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?

like image 640
jmeter_test Avatar asked Jul 08 '11 13:07

jmeter_test


People also ask

How do I add a delay between requests in JMeter?

Adding Timers To add a timer element, we need to right-click on the Thread Group element and select Add, Timer, Constant Timer. Here, we've added a Constant Timer with a Thread Delay of three seconds to our thread group. This timer adds a delay between each request.

How do I create a HTTP request in JMeter?

Create a Test Plan First For JMeter Post Requests Just right click on Test Plan and then click on the element by following this path: Threads (Users) -> Thread Group. Your Thread Group should be added now. And you can keep values in Thread Properties as they are.


1 Answers

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

like image 137
BlackGaff Avatar answered Sep 19 '22 14:09

BlackGaff