{"id":1985,"date":"2012-09-24T12:12:23","date_gmt":"2012-09-24T12:12:23","guid":{"rendered":"http:\/\/www.mobisoftinfotech.com\/blog\/?p=1985"},"modified":"2024-10-30T11:41:27","modified_gmt":"2024-10-30T06:11:27","slug":"web-api-performance-testing-using-apache-jmeter","status":"publish","type":"post","link":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter","title":{"rendered":"Web API Performance Testing Using Apache JMeter"},"content":{"rendered":"<h2 class=\"wp-block-heading\"><b>What is JMeter<\/b><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JMeter is an open source tool design by Apache to test the applications Performance and Robustness.<\/li>\n\n\n\n<li>JMeter can be used for web application testing and various server testing like Database using<br><div style=\"display: none;\"><a title=\"buy viagra online pharmacy\" href=\"http:\/\/buyviagracanadianpharmacy.com\/\">buy viagra online pharmacy<\/a><\/div><br><p>JDBC, Mail, JMS, LDAP etc.<\/p><br><\/li>\n\n\n\n<li>It is developed in Java by Stefano Mazzocchi, initially developed to test Apache JServer (now Known as Apache Tomcat Server).<\/li>\n\n\n\n<li>JMeter is developed in such a way that we can write our own plugins to extend the capabilities of JMeter.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Why performance testing is necessary for application<\/b><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To identify the maximum operating capacity of a system.<\/li>\n\n\n\n<li>To identify any bottleneck which may occur in system operation and not in development.<\/li>\n\n\n\n<li>To determine the speed or performance of application or system on heavy load.<\/li>\n\n\n\n<li>To test robustness, availability and reliability under extreme condition.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Requirement<\/b><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JVM 1.5 or later<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><b>JMeter<\/b><\/h2>\n\n\n\n<p class=\"has-text-align-left\">You can download latest JMeter from<\/p>\n\n\n\n<p><a href=\"https:\/\/jmeter.apache.org\/download_jmeter.cgi\">https:\/\/jmeter.apache.org\/download_jmeter.cgi<\/a><\/p>\n\n\n\n<p>Extract the zip and start the jmeter, it will look like this<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png\" alt=\"JMeter Window\" class=\"wp-image-1987\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-300x168.png 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"JMeter Window\" class=\"wp-image-1987 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-300x168.png 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png\"><\/a><figcaption class=\"wp-element-caption\">JMeter Window<\/figcaption><\/figure>\n<\/div>\n\n\n<p>You can rename the test plan name and set to your choice. Also we can add user defined variables to out test plan for further use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Starting with simple Login API Test<\/b><\/h2>\n\n\n\n<p>I have started with simple API that is Login API where we need to provide user name and password in request body.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Thread Group<\/b><\/h2>\n\n\n\n<p>So First we need to add Thread Group to our test plan. Thread group means basically number of users we want to test with.<\/p>\n\n\n\n<p>To add thread group right click on test plan go to Add &#8211;&gt; Threads (Users) &#8211;&gt; Thread Group, shown in below screenshot.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup-1024x575.jpg\" alt=\"Add thread group in your test plan\" class=\"wp-image-1988\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Add thread group in your test plan\" class=\"wp-image-1988 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AddThreadGroup-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Add thread group in your test plan<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Thread Group window will look like this<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup.png\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup-1024x575.png\" alt=\"Thread Group Window\" class=\"wp-image-1990\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup-1024x575.png 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup-300x168.png 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup.png 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Thread Group Window\" class=\"wp-image-1990 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup-1024x575.png 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup-300x168.png 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup.png 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/2-ThreadGroup-1024x575.png\"><\/a><figcaption class=\"wp-element-caption\">Thread Group Window<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Here you can name your thread group, Number of threads means no. of concurrent users. Secondly ramp-up period is the time interval in seconds to start the next thread after first thread (simply time intervals in threads), and finally loop count is the number of times this group thread will execute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Http Request Sampler<\/b><\/h2>\n\n\n\n<p>Now we need to add Http Request to out thread group. For that right click on Thread Group go to Add &#8211;&gt; Sampler &#8211;&gt; Http Request<\/p>\n\n\n\n<p>Show in Below Screen shot.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler-1024x575.jpg\" alt=\"Add Http Request Sampler\" class=\"wp-image-1992\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Add Http Request Sampler\" class=\"wp-image-1992 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/3.-AddHttpSampler-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">How to add http request sampler to thread group<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Http request sampler window will look like this<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2-1024x575.jpg\" alt=\"Http Request Sampler Window\" class=\"wp-image-1993\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Http Request Sampler Window\" class=\"wp-image-1993 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpSampler2-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Http Request Sampler Window<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Here also you can name to your request, I have given \u201cLogin API\u201d, then we have to provide our web server details. Server name Or IP of our server for my example it is localhost and server port no.<\/p>\n\n\n\n<p>In Http Request Section you can specify protocol by default it is &#8216;http&#8217; if you want to use &#8216;https&#8217; then write there. Select your request type Post, Get, Put, etc. Then provide you API path for my example it is &#8216;\/jmetertest\/api\/login.do&#8217;. If you want to add parameters for API then add it to &#8216;Parameter&#8217; section and if your API has post body write in &#8216;Post Body&#8217; section. Now you are done with your Http request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Request Headers<\/b><\/h2>\n\n\n\n<p>If your API need Headers then we can configure those headers in JMeter for that we need to add config element \u201cHttp Header Manager\u201d. To add Http Header Manager config element to our Thread group, right click on thread group go to Add &#8211;&gt; Config Element &#8211;&gt; Http Header Manager. As shown in below screen shot.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1-1024x575.jpg\" alt=\"Add Http Header Manager in your thread group\" class=\"wp-image-1994\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Add Http Header Manager in your thread group\" class=\"wp-image-1994 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager1-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Add Http Header Manager in your thread group<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The Http Header Manager window will look like this<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2-1024x575.jpg\" alt=\"Http Header Manager Window\" class=\"wp-image-1999\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Http Header Manager Window\" class=\"wp-image-1999 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/HttpHeaderManager2-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Http Header Manager Window<\/figcaption><\/figure>\n<\/div>\n\n\n<p>To add new header click on Add and provide header name and value. These headers will be added to your all http request during execution of threads.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>CSV Config Element<\/b><\/h2>\n\n\n\n<p>In API&#8217;s we need to give inputs, there is a way in JMeter to provide inputs from csv file. You can create csv file of your inputs and provide this file to JMeter. JMeter will read your csv file line by line and provide this data to your http request. So how to provide inputs from csv file, it&#8217;s pretty simple. Create your csv file, I have created logindetails.csv file (Attached below). Now right click on thread group and go to Add &#8211;&gt; Config Element &#8211;&gt; CSV data set Config, as shown below<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT-1024x578.jpg\" alt=\"Add CSV File Config Element\" class=\"wp-image-2000\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT-1024x578.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT-300x169.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT.jpg 1317w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"578\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20578%22%3E%3C%2Fsvg%3E\" alt=\"Add CSV File Config Element\" class=\"wp-image-2000 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20578%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT-1024x578.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT-300x169.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT.jpg 1317w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVFileINPUT-1024x578.jpg\"><\/a><figcaption class=\"wp-element-caption\">Add CSV File Config Element<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Csv data set config window will look like this<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile-1024x575.jpg\" alt=\"CSV Config File Element Window\" class=\"wp-image-2001\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"CSV Config File Element Window\" class=\"wp-image-2001 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVConfigFile-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">CSV Config File Element Window<\/figcaption><\/figure>\n<\/div>\n\n\n<p>So first name your csv config data set, then provide file name or path, but it is recommended that you place your csv file in directory where your jmx file is present. Encoding of file, and the most important are your variables. Name the variables in sequence as they are in csv files. I have taken only two variables username and password and my csv file data is also in same sequence.<\/p>\n\n\n\n<p>If you want to use more than 1 csv data set config element in your thread group then it is possible but you need to make sure that the variable names should not repeat in your thread group.<\/p>\n\n\n\n<p>Now to access the variable in your Http Request, you can simply access these variable using syntax: ${Variable_Name}.<\/p>\n\n\n\n<p>Have a look how I have modified my post body in http request sampler to access input from csv file.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest-1024x575.jpg\" alt=\"Http Request post body using csv file input\" class=\"wp-image-2003\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Http Request post body using csv file input\" class=\"wp-image-2003 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/CSVInputToHttpRequest-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Http Request post body using csv file input<\/figcaption><\/figure>\n<\/div>\n\n\n<p>I have replaced the values of username and password with ${USERNAME} and ${PASSWORD}.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Listeners<\/b><\/h2>\n\n\n\n<p>Listeners are the elements where you actually see the results of your test. There are various listeners available with JMeter. But for API we actually need View Result Tree Listener, Graph Result, Aggregate Graph, Aggregate Result. To add listener right click on thread group go to Add &#8211;&gt; Listener<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><b><span>1<\/span> View Result Tree Listener<\/b><\/h5>\n\n\n\n<p>If you are interested to see the input provided and output of each request sent to server then View Result In Tree Listener is best.<\/p>\n\n\n\n<p>Have a look at View Result In Tree Window. In left side of window you will see the APIs executed if they are in green color then API executed successfully and if they are in red color then API execution had some problem, you can see the reason in the right frame of window.<\/p>\n\n\n\n<p>In Sampler result tab you can see all the details of http response by server. In Request tab you can see http url hit and data posted with the request, and in response tab you can see the response data of request. All these are shown in below screen shots.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br><p><strong> Sampler Tab<\/strong><\/p><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult-1024x575.jpg\" alt=\"View Result Tree Listener Sampler Tab\" class=\"wp-image-2004\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"View Result Tree Listener Sampler Tab\" class=\"wp-image-2004 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResult-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">View Result Tree Listener Sampler Tab<\/figcaption><\/figure>\n<\/div>\n\n\n<li>\n<p><strong> Request tab<\/strong><\/p><\/li>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest-1024x575.jpg\" alt=\"View Result Tree Listener Request Tab\" class=\"wp-image-2005\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"View Result Tree Listener Request Tab\" class=\"wp-image-2005 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultRequest-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">View Result Tree Listener Request Tab<\/figcaption><\/figure>\n<\/div>\n\n\n<ul>\n<li>\n<p><strong> Response Tab<\/strong><\/p>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce-1024x575.jpg\" alt=\"View Result Tree Listener Response Tab\" class=\"wp-image-2006\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"View Result Tree Listener Response Tab\" class=\"wp-image-2006 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/SamplerResultResponce-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">View Result Tree Listener Response Tab<\/figcaption><\/figure>\n<\/div>\n\n\n<h5 class=\"wp-block-heading\"><b><span>2<\/span>Graph Result Listener<\/b><\/h5>\n\n\n\n<p>You can see your result in graph result listener, sample screen shot shown below<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult-1024x575.jpg\" alt=\"Graph Result Listener\" class=\"wp-image-2008\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Graph Result Listener\" class=\"wp-image-2008 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/GraphResult-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Graph Result Listener<\/figcaption><\/figure>\n<\/div>\n\n\n<h5 class=\"wp-block-heading\"><b><span>3<\/span> Aggregate Result Listener<\/b><\/h5>\n\n\n\n<p>This listener will show you the results in table format where you can see various parameters of the result. First is samples means number of request execute on server, second is Average that is average time of request executed for all samples, then median is average time in middle of a set of result, then min is shortest time of this sample to execute and max is maximun time taken by any sample to execute, then error % is percentage of errors, throughput is requests per second and KB\/sec is throughput measured in kilobytes per sec.<\/p>\n\n\n\n<p>Sample Aggregate report<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport.jpg\"><noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport-1024x575.jpg\" alt=\"Aggregate Result Listener\" class=\"wp-image-2009\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/noscript><img decoding=\"async\" width=\"1024\" height=\"575\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E\" alt=\"Aggregate Result Listener\" class=\"wp-image-2009 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%20575%22%3E%3C%2Fsvg%3E 1024w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport-1024x575.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport-300x168.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport.jpg 1366w\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/AggregateReport-1024x575.jpg\"><\/a><figcaption class=\"wp-element-caption\">Aggregate Result Listener<\/figcaption><\/figure>\n<\/div>\n\n\n<p>You can download sample jmx file and csv file of my loginApi from here <a href=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/Sample_Example.zip\">Sample_Example<\/a>.<\/p>\n\n\n\n<p>References:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/jmeter.apache.org\/usermanual\/index.html\">https:\/\/jmeter.apache.org\/usermanual\/index.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/cwiki.apache.org\/confluence\/display\/jmeter\/\">https:\/\/cwiki.apache.org\/confluence\/display\/jmeter\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Aggregate_Report\">https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Aggregate_Report<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What is JMeter Why performance testing is necessary for application Requirement JMeter You can download latest JMeter from https:\/\/jmeter.apache.org\/download_jmeter.cgi Extract the zip and start the jmeter, it will look like this You can rename the test plan name and set to your choice. Also we can add user defined variables to out test plan for [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[223],"tags":[242,244,243,247,245,246],"class_list":["post-1985","post","type-post","status-publish","format-standard","hentry","category-quality-assurance","tag-apache-jmeter","tag-api-performance-testing","tag-api-testing","tag-application-programming-interface-testing","tag-what-is-jmeter","tag-why-performance-testing-is-necessary-for-application"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Web API Performance Testing Using Apache JMeter - Mobisoft Infotech<\/title>\n<meta name=\"description\" content=\"JMeter is an open source tool design by Apache to test the applications Performance and Robustness.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web API Performance Testing Using Apache JMeter - Mobisoft Infotech\" \/>\n<meta property=\"og:description\" content=\"JMeter is an open source tool design by Apache to test the applications Performance and Robustness.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\" \/>\n<meta property=\"og:site_name\" content=\"Mobisoft Infotech\" \/>\n<meta property=\"article:published_time\" content=\"2012-09-24T12:12:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-30T06:11:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png\" \/>\n<meta name=\"author\" content=\"Pratik Kale\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pratik Kale\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#article\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\"},\"author\":{\"name\":\"Pratik Kale\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/2f899ff1e21eb491a5f00b67729a2e79\"},\"headline\":\"Web API Performance Testing Using Apache JMeter\",\"datePublished\":\"2012-09-24T12:12:23+00:00\",\"dateModified\":\"2024-10-30T06:11:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\"},\"wordCount\":1291,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png\",\"keywords\":[\"Apache JMeter\",\"API Performance Testing\",\"API Testing\",\"Application programming interface testing\",\"What is JMeter\",\"Why performance testing is necessary for application\"],\"articleSection\":[\"Quality Assurance\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\",\"name\":\"Web API Performance Testing Using Apache JMeter - Mobisoft Infotech\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png\",\"datePublished\":\"2012-09-24T12:12:23+00:00\",\"dateModified\":\"2024-10-30T06:11:27+00:00\",\"author\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/2f899ff1e21eb491a5f00b67729a2e79\"},\"description\":\"JMeter is an open source tool design by Apache to test the applications Performance and Robustness.\",\"breadcrumb\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png\",\"contentUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png\",\"width\":1366,\"height\":768,\"caption\":\"JMeter Window\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mobisoftinfotech.com\/resources\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web API Performance Testing Using Apache JMeter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/\",\"name\":\"Mobisoft Infotech\",\"description\":\"Discover Mobility\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/2f899ff1e21eb491a5f00b67729a2e79\",\"name\":\"Pratik Kale\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/4ab83fc5d7dba2e33a8a8363a9c6c833ab3199784b38145b54cd434d49c2092d?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4ab83fc5d7dba2e33a8a8363a9c6c833ab3199784b38145b54cd434d49c2092d?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4ab83fc5d7dba2e33a8a8363a9c6c833ab3199784b38145b54cd434d49c2092d?s=96&r=g\",\"caption\":\"Pratik Kale\"},\"sameAs\":[\"http:\/\/www.mobisoftinfotech.com\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Web API Performance Testing Using Apache JMeter - Mobisoft Infotech","description":"JMeter is an open source tool design by Apache to test the applications Performance and Robustness.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter","og_locale":"en_US","og_type":"article","og_title":"Web API Performance Testing Using Apache JMeter - Mobisoft Infotech","og_description":"JMeter is an open source tool design by Apache to test the applications Performance and Robustness.","og_url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter","og_site_name":"Mobisoft Infotech","article_published_time":"2012-09-24T12:12:23+00:00","article_modified_time":"2024-10-30T06:11:27+00:00","og_image":[{"url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png","type":"","width":"","height":""}],"author":"Pratik Kale","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pratik Kale","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#article","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter"},"author":{"name":"Pratik Kale","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/2f899ff1e21eb491a5f00b67729a2e79"},"headline":"Web API Performance Testing Using Apache JMeter","datePublished":"2012-09-24T12:12:23+00:00","dateModified":"2024-10-30T06:11:27+00:00","mainEntityOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter"},"wordCount":1291,"commentCount":0,"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png","keywords":["Apache JMeter","API Performance Testing","API Testing","Application programming interface testing","What is JMeter","Why performance testing is necessary for application"],"articleSection":["Quality Assurance"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter","url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter","name":"Web API Performance Testing Using Apache JMeter - Mobisoft Infotech","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage"},"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1-1024x575.png","datePublished":"2012-09-24T12:12:23+00:00","dateModified":"2024-10-30T06:11:27+00:00","author":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/2f899ff1e21eb491a5f00b67729a2e79"},"description":"JMeter is an open source tool design by Apache to test the applications Performance and Robustness.","breadcrumb":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#primaryimage","url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png","contentUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/09\/1.png","width":1366,"height":768,"caption":"JMeter Window"},{"@type":"BreadcrumbList","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/quality-assurance\/web-api-performance-testing-using-apache-jmeter#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mobisoftinfotech.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Web API Performance Testing Using Apache JMeter"}]},{"@type":"WebSite","@id":"https:\/\/mobisoftinfotech.com\/resources\/#website","url":"https:\/\/mobisoftinfotech.com\/resources\/","name":"Mobisoft Infotech","description":"Discover Mobility","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/2f899ff1e21eb491a5f00b67729a2e79","name":"Pratik Kale","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4ab83fc5d7dba2e33a8a8363a9c6c833ab3199784b38145b54cd434d49c2092d?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4ab83fc5d7dba2e33a8a8363a9c6c833ab3199784b38145b54cd434d49c2092d?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4ab83fc5d7dba2e33a8a8363a9c6c833ab3199784b38145b54cd434d49c2092d?s=96&r=g","caption":"Pratik Kale"},"sameAs":["http:\/\/www.mobisoftinfotech.com\/"]}]}},"_links":{"self":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/comments?post=1985"}],"version-history":[{"count":40,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1985\/revisions"}],"predecessor-version":[{"id":31513,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1985\/revisions\/31513"}],"wp:attachment":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media?parent=1985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/categories?post=1985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/tags?post=1985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}