{"id":4998,"date":"2018-07-17T09:34:53","date_gmt":"2018-07-17T13:34:53","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=4998"},"modified":"2018-07-17T09:34:53","modified_gmt":"2018-07-17T13:34:53","slug":"jmeter-mobile-performance-testing","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/","title":{"rendered":"JMeter Mobile Performance Testing"},"content":{"rendered":"<p>Mobile app users are demanding high performance at all times and they rarely give a second chance to an app that performs poorly. For this reason, you have to make sure to prepare your app in advance by executing a proper load testing process. JMeter can be used for mobile performance testing. To start with, we will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device. However, you need to first prepare JMeter to record your scripts and then we\u2019ll be able to do JMeter Mobile Performance Testing.<\/p>\n<h3><strong>Prerequisites:<\/strong><\/h3>\n<p>Both Mobile device and JMeter installed on a computer should be on the same network. This enables your computer to be a proxy for your mobile device.<\/p>\n<h3><strong>Configure JMeter:<\/strong><\/h3>\n<p>Open JMeter and create a recording template. Click on File \u2192 Template and select Recording template.<\/p>\n<p>This will create a template with the required elements like Thread Group, Recording Controller, and HTTP(S) Test Script Recorder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4999\" src=\"https:\/\/d1u7j79bg1ays7.cloudfront.net\/blog\/wp-content\/uploads\/2018\/07\/word-image-10.png\" alt=\"JMeter setup\" width=\"521\" height=\"279\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-10.png 1076w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-10-300x161.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-10-1024x548.png 1024w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-10-768x411.png 768w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/p>\n<p>This is the configuration we need to make in JMeter in order to record the scripts. Now, we need to set up the JMeter proxy in mobile devices so that all mobile requests will be recorded in JMeter. Follow the steps below to set up the proxy in Android and iOS platforms.<\/p>\n<h3><strong>Configure iOS Mobile Devices:<\/strong><\/h3>\n<p>To set up a mobile proxy on iOS devices, follow these steps:<\/p>\n<ol>\n<li>Open Settings \u2192 Wi-Fi \u2192 Your connected network<\/li>\n<li>Choose Manual from HTTP Proxy section<\/li>\n<li>Set Server = Computer\u2019s IP address<\/li>\n<li>Set Port field = JMeter\u2019s port value<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5000\" src=\"https:\/\/d1u7j79bg1ays7.cloudfront.net\/blog\/wp-content\/uploads\/2018\/07\/word-image-11.png\" alt=\"IOS Proxy Settings\" width=\"292\" height=\"520\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-11.png 750w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-11-169x300.png 169w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-11-576x1024.png 576w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/p>\n<p><strong>Configure Android Mobile Devices:<\/strong><\/p>\n<p>To set up a mobile proxy, on Android devices, follow these steps:<\/p>\n<ol>\n<li>Settings \u2192 Wi-Fi \u2192 Your connected network<\/li>\n<li>Press and hold on connected network and Click \u201cModify Network\u201d option.<\/li>\n<li>Choose Show advanced options<\/li>\n<li>Choose Manual from HTTP Proxy section<\/li>\n<li>Set Proxy hostname field = your computer\u2019s IP address<\/li>\n<li>Set Proxy Port field = JMeter\u2019s port value<\/li>\n<\/ol>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5001\" src=\"https:\/\/d1u7j79bg1ays7.cloudfront.net\/blog\/wp-content\/uploads\/2018\/07\/word-image.jpeg\" alt=\"Android Proxy Settings\" width=\"285\" height=\"507\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image.jpeg 720w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-169x300.jpeg 169w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-576x1024.jpeg 576w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/strong><\/p>\n<p>Save the configuration. Now your device will use your computer as a proxy with the defined port and IP address.<\/p>\n<h3><strong>Start Recording:<\/strong><\/h3>\n<p>Open HTTP(S) Test Script Recorder in JMeter and click the Start button to start the proxy. JMeter is running as a proxy and able to capture any request coming from the device that\u2019s connected to its IP.<\/p>\n<p>When you click on the Start button, you\u2019ll receive a message \u201cRoot CA certificate ApacheJMeterTemporaryRootCA created bin directory\u201d. Just click the OK button. If you don\u2019t add this certificate to your device, you will not be able to capture HTTPS traffic. You\u2019ll only capture HTTP requests.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5002\" src=\"https:\/\/d1u7j79bg1ays7.cloudfront.net\/blog\/wp-content\/uploads\/2018\/07\/word-image-12.png\" alt=\"Root CA warning\" width=\"347\" height=\"233\" \/><\/p>\n<h3><strong>Install the Certificate:<\/strong><\/h3>\n<p>Copy the Certificate file \u201cApacheJMeterTemporaryRootCA.crt\u201d located in the bin folder of JMeter to your mobile device and install it.<\/p>\n<p>Record your scenario and perform correlations. Upload your JMX file to RedLine13 to run the tests for JMeter Mobile Performance Testing. To run a JMeter tests on RedLine13, follow this link <a href=\"https:\/\/www.redline13.com\/blog\/2017\/02\/jmeter\/\">Running a JMeter Load Test<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mobile app users are demanding high performance at all times and they rarely give a second chance to an app that performs poorly. For this reason, you have to make sure to prepare your app in advance by executing a proper load testing process. JMeter can be used for mobile performance testing. To start with, we will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4999,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7,38,1],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-user","4":"post-4998","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-jmeter","10":"category-mobile","11":"category-uncategorized"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RedLine13 JMeter Mobile Performance Testing<\/title>\n<meta name=\"description\" content=\"JMeter can be used for mobile performance testing. We will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RedLine13 JMeter Mobile Performance Testing\" \/>\n<meta property=\"og:description\" content=\"JMeter can be used for mobile performance testing. We will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-17T13:34:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-10.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1076\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"RedLine13\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"RedLine13\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\"},\"author\":{\"name\":\"RedLine13\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\"},\"headline\":\"JMeter Mobile Performance Testing\",\"datePublished\":\"2018-07-17T13:34:53+00:00\",\"dateModified\":\"2018-07-17T13:34:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\"},\"wordCount\":512,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"articleSection\":[\"Blog\",\"JMeter\",\"Mobile\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\",\"name\":\"RedLine13 JMeter Mobile Performance Testing\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2018-07-17T13:34:53+00:00\",\"dateModified\":\"2018-07-17T13:34:53+00:00\",\"description\":\"JMeter can be used for mobile performance testing. We will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JMeter Mobile Performance Testing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"name\":\"RedLine13\",\"description\":\"(Almost) Free Load Testing in the Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redline13.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\",\"name\":\"RedLine13\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"contentUrl\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"width\":300,\"height\":68,\"caption\":\"RedLine13\"},\"image\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\",\"name\":\"RedLine13\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"caption\":\"RedLine13\"},\"sameAs\":[\"http:\/\/127.0.0.1\"],\"url\":\"https:\/\/www.redline13.com\/blog\/author\/user\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RedLine13 JMeter Mobile Performance Testing","description":"JMeter can be used for mobile performance testing. We will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device.","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:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/","og_locale":"en_US","og_type":"article","og_title":"RedLine13 JMeter Mobile Performance Testing","og_description":"JMeter can be used for mobile performance testing. We will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device.","og_url":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/","og_site_name":"RedLine13","article_published_time":"2018-07-17T13:34:53+00:00","og_image":[{"width":1076,"height":576,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/07\/word-image-10.png","type":"image\/png"}],"author":"RedLine13","twitter_card":"summary_large_image","twitter_misc":{"Written by":"RedLine13","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/"},"author":{"name":"RedLine13","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28"},"headline":"JMeter Mobile Performance Testing","datePublished":"2018-07-17T13:34:53+00:00","dateModified":"2018-07-17T13:34:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/"},"wordCount":512,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"articleSection":["Blog","JMeter","Mobile"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/","url":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/","name":"RedLine13 JMeter Mobile Performance Testing","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2018-07-17T13:34:53+00:00","dateModified":"2018-07-17T13:34:53+00:00","description":"JMeter can be used for mobile performance testing. We will show you the steps you can take to record the scenario in a mobile app with JMeter. It\u2019s similar to recording scripts for web applications. All we have to do is set the correct proxy in place for the mobile device.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2018\/07\/jmeter-mobile-performance-testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JMeter Mobile Performance Testing"}]},{"@type":"WebSite","@id":"https:\/\/www.redline13.com\/blog\/#website","url":"https:\/\/www.redline13.com\/blog\/","name":"RedLine13","description":"(Almost) Free Load Testing in the Cloud","publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redline13.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redline13.com\/blog\/#organization","name":"RedLine13","url":"https:\/\/www.redline13.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","contentUrl":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","width":300,"height":68,"caption":"RedLine13"},"image":{"@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28","name":"RedLine13","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","caption":"RedLine13"},"sameAs":["http:\/\/127.0.0.1"],"url":"https:\/\/www.redline13.com\/blog\/author\/user\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/4998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=4998"}],"version-history":[{"count":0,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/4998\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/4999"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=4998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=4998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=4998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}