Blog Post URL - https://www.qaautomated.com/2020/01/c...
In this post we will learn about few of the most commonly used configuration elements.
HTTP Request Defaults -
For each HTTP request samplers which we mention in the test script there are chances that some fields like protocol and server IP is common for all the requests. In this case instead of mentioning the same in all HTTP Requests we can define this in HTTP Request Default.
HTTP Header Manager -
This element lets you add or override HTTP Request header. The headers specified here will be added for all samplers under its scope.Add the header as given below and this header is applicable for all the samplers under its scope.
HTTP Cache Manager -
Web driver uses caching to reduce traffic over internet by storing the resources for subsequent runs.To mimic this behavior we can use HTTP cache manager .First time when we hit the url jmeter script store the resource file. The file contains last modified date and time information on the basis of which cache manager checks weather the resources are updated or not and if the resources are updated then it downloads the updated resource file.
If Clear cache option is checked then after each iteration cache will be cleared. By default 5000 elements are stored in cache. If Use Cache control option is checked and if the request is GET request and timestamp is in future, then the sampler returns response from the cache.
HTTP Cookie Manager -
Many web applications store some information as cookie and this jmeter element is used to store the cookies and use the information later during test runs. Each jmeter thread contains cookie storage space, if we are testing application where cookie is sued for storing information for perticular sessions then each jmeter thread will have its own session.
Cookies can be added manually as shown in below figure which are called as user defined cookies. If clear cookies on each iteration option is checked then for each iteration cookies will be removed.
Please subscribe my youtube channel and click on bell icon for notifications.
Github Link -https://github.com/qaautomated/Jmeter
For More Free Tutorials Visit - https://www.qaautomated.com/
For Jmeter Step by Step tutorial from beginner to advance - • Jmeter Step by Step Tutorial
Subscribe
Jmeter Step By Step Tutorial from beginner to advance level. Learn jmeter for performance testing as well as Jmeter For API testing.
Playlist Content -
1.Jmeter Installation for Windows - • JMeter Tutorial | Jmeter Installation...
2.Jmater Basic Building Blocks -Thread Group,Assertions, Controllers etc - • JMeter Tutorial | JMeter Basic Buildi...
3. JMeter Thread Groups - • JMeter Tutorial | Jmeter Thread Group
4.Jmeter Configuration Elements - • JMeter Tutorial | JMeter Configuratio...
5.JMeter Listeners - • JMeter Tutorial | JMeter Listeners
6.Jmeter Simple Controller and Transaction Controller - • JMeter Tutorial | JMeter Simple Contr...
7.Jmeter If controller and While Controller - • JMeter Tutorial | JMeter If controlle...
8.Jmeter Runtime Random Order and interleave Controller - • JMeter Tutorial | JMeter Runtime Rand...
9.Jmeter Pacing and Timers - • JMeter Tutorial | JMeter Pacing and T...
10.Jmeter Execution Order and Scoping Rule - • JMeter Tutorial | Jmeter Execution or...
11.Jmeter Utilizing Data Sets - • JMeter Tutorial | Jmeter Utilizing Da...
12.Jmeter Logging - • Jmeter Tutorial | Jmeter Logging | Ho...
13.Jmeter Post Processors - • JMeter Tutorial | Jmeter Post Processors
14.Jmeter Concurrency Thread Group - • Jmeter Concurreny Thread Group
15.Jmeter Set up and Tear Down Thread Group - • Jmeter Tutorial | Jmeter Set up and T...
16. Jmeter Ultimate Thread Group - • JMeter Tutorial | Jmeter Ultimate Thr...
17.Jmeter Functions with Examples - • JMeter Tutorial | Jmeter Functions wi...
18.Jmeter Throughput Controller and Weighted Switch Controller - • JMeter Tutorial | Jmeter Throughput C...
19.Jmeter Beanshell Sampler Vs JDR223 Sampler - • JMeter Tutorial | Jmeter Beanshell Sa...
20.How to Debug Jmeter Script? - • JMeter Tutorial | How to Debug Jmeter...
21. How to Reuse Code in Jmeter - • JMeter Tutorial | How to Reuse Code i...