1
votes

I wonder if someone can provide some guidance on why I am not getting a response in a timely manner for a HTTP Request I am running, details are below:

I am a complete beginner with JMeter, trying to learn as I use it.

I ran a couple of smoke tests on my first project, I setup a HTTP GET Request Sampler to url asda.com 1

and another sampler to url tesco.com 2

I get a response returned for asda.com within a second or two but I do not get any response from tesco.com 3

The timer in top right keeps counting up until I actually stop the test manually 4

Once I manually stop the test, naturally there is a result in the Listener for tesco.com5

Note: this is what my Test Plan looks like 6

Things I have tried on the tesco.com Sampler: Adding HTTPS in the Protocol field Running with 'Redirect Automatically' ticked/unticked

I can navigate to url www.tesco.com via browser so I know the site is up and running.

1

1 Answers

1
votes
  1. tesco.com and www.tesco.com are different servers

  2. Your browser doesn't execute simple plain HTTP GET request, it adds some headers like:

    so given you add a HTTP Header Manager and configure it to send the same headers your browser sends - you should get the same response.

Demo:

enter image description here

More information: How to make JMeter behave more like a real browser