Mihai Raulea
Mihai Raulea

Reputation: 438

JMeter bugs when trying to stress test localhost server

I am trying to do a stress test to a localhost server. i have configured the HTTP Request Defaults correctly, image attached. The View Results tree panel shows that JMeter is trying to send the request to ${host}. I am using v 3, the current latest release. Please help.

enter image description here enter image description here

Upvotes: 0

Views: 612

Answers (2)

Dmitri T
Dmitri T

Reputation: 167992

HTTP Request Defaults are really defaults.

  • If you leave Server Name or IP input for you "Home Page" request blank - the value will be picked up from the HTTP Request Defaults
  • If you override Server Name of IP with something else - in your case with ${host} - default value will be discarded.

So all you need to do is go to your "Home Page" HTTP Request Sampler and delete ${host} from the Server Name or IP input.

Detailed information: Why It's SO Important To Use JMeter's HTTP Request Defaults

Upvotes: 1

Guru
Guru

Reputation: 443

Try replacing "${host} " with actual hostname.

If you are using ${host} then you have to provide the values to it using CSV Config File or some other means.

Go through the link http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config

Upvotes: 0

Related Questions