JMeter - HTTP Request Defaults Config Element

HTTP Request Defaults is i of the jmeter configuration element. You tin laid default values for HTTP Request controllers using HTTP Request Defaults inwards your software charge attempt out plan. Let's say, You convey software charge attempt out excogitation amongst ten HTTP requests together with all requests are beingness sent to same server. In this case, You tin add together HTTP Request Defaults together with laid server get upward in Server Name or IP plain of HTTP Request Defaults. Then you lot practise non require to laid Server Name or IP inwards all ten HTTP requests. HTTP requests volition inherit Server Name or IP field's value from HTTP Request Defaults. Let's come across how it industrial plant amongst practical example.

Add HTTP Request Defaults In Software Load Test Plan
You tin add HTTP Request Defaults parallel to asking or controller. For adding HTTP Request Defaults nether Thread group,
  • Right click on Thread Group -> Add -> Select Config Element -> HTTP Request Defaults. See bellow given image.

It volition add HTTP Request Defaults nether Thread Group.

Example : Using HTTP Request Defaults In Jmeter Software Load Test Plan
I convey prepared sample jmeter software charge attempt out excogitation to exhibit you lot how HTTP Request Defaults truly industrial plant together with when to purpose it.

I convey attempt out excogitation amongst 3 HTTP requests(/index.html, /site/contact.html together with /site/guidelines.html) together with all 3 requests are beingness sent to same server jakarta.apache.org. So i volition add HTTP Request Defaults inwards my attempt out excogitation together with laid Server Name or IP = jakarta.apache.org every bit shown inwards bellow image.


Now inwards all iii HTTP requests, I require to laid alone remaining path. Server get upward volition hold upward automatically inherited from HTTP Request Defaults inwards all iii HTTP requests every bit shown inwards bellow image.


You tin come across that i convey non laid server get upward inwards whatever of the request. So server get upward volition hold upward inherited automatically from HTTP Request Defaults when you lot run attempt out together with practise amount URL of page. See number bellow.


All iii requests are pass. Also you lot tin come across that it hahs created amount URL(Server get upward + Path) of index page.

This agency you lot tin use HTTP Request Defaults inwards your software charge attempt out plan.
<< PREVIOUS || NEXT >>

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post