Articles → JMeter → Create your first get request in jMeterCreate your first get request in jMeterIn this article, we will create our first get request in jMeter.Example In this example, we will use following restful service - https://restcountries.eu/rest/v2/all. This is a free service at this point of time that returns the information about countries.To create a new get request, we will follow these steps 1. Open jMeter 2. On the test plan, add a thread group (Right click on Test Plan → Add → Thread (Users) → Thread Group). 3. In the thread group, add a sampler (Right click on Thread Group → Add → Sampler → HTTP Request). 4. A window will open on the right-hand side to enter the required information. Please fill the information highlighted in the screenshot belowClick to Enlarge 5. In the thread group, add a listener to display the response (Right click on Thread Group → Add → Listener → View Result Tree).Finally your, test plan explorer will be likeClick to EnlargeNow run the sampler by clicking on the run icon on the toolbar on the top of the screen.Click to EnlargeIf you have not saved the test plan, jMeter will ask you to save the plan. Once the request is completed, you can see the result by clicking on the View Result TreeThere are different parts of the result 1. Sampler result – This tab contains a. Response code b. Headers c. Cookie information d. Latency e. Response sizeClick to Enlarge 2. Request data – What is the data sent as request.Click to Enlarge 3. Response data – What is the response received once the request is processed.Click to EnlargeLatency 1. Latency is the time from just before sending the request to first response received. 2. Latency is measured in milliseconds. 3. More the latency, less is the performance.Posted By - Karan Gupta Posted On - Friday, November 29, 2019 Updated On - Thursday, January 16, 2020 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Query/Feedback