{"id":11128,"date":"2024-05-15T10:31:26","date_gmt":"2024-05-15T14:31:26","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=11128"},"modified":"2024-05-15T10:32:26","modified_gmt":"2024-05-15T14:32:26","slug":"using-the-http-form-manager-in-jmeter","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/","title":{"rendered":"Using the HTTP Form Manager in JMeter"},"content":{"rendered":"\n<p><\/p>\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11129\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-1.png\" alt=\"Using the HTTP Form Manager in JMeter\" width=\"400\" height=\"300\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-1-300x225.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>Form submissions represent a common use case for performance tests. If your <a href=\"https:\/\/jmeter.apache.org\/usermanual\/\" target=\"_blank\" rel=\"noopener\">JMeter<\/a> test needs to automatically fill out form fields from a data source, this is classically done with <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Regular_Expression_Extractor\">extractors<\/a> and variable substitution.\u00a0 Depending on the number of fields in your form and the structure of your web page, this can become complicated.\u00a0 To simplify this process, we will show you how to use the <a href=\"https:\/\/github.com\/tilln\/jmeter-formman\/blob\/master\/README.md\"><em>HTTP Form Manager<\/em><\/a> plugin.\u00a0 This component allows you to intuitively specify form data by automatically matching variables to named fields.<\/p>\n<h3><a id=\"post-11128-_h99nd4frdsu0\"><\/a>Configuring the HTTP Form Manager<\/h3>\n<p>To add the <em>HTTP Form Manager<\/em> to your test plan, right click on the test plan tree and find the component under \u201c<em>Preprocessors<\/em>\u201d:<\/p>\n<figure id=\"attachment_11130\" class=\"wp-caption aligncenter\" style=\"max-width: 458px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11130\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-2.png\" alt=\"The HTTP Form Manager can be added to your test plan as a preprocessor\" width=\"458\" height=\"266\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-2.png 458w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-2-300x174.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-2-425x247.png 425w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><figcaption class=\"wp-caption-text\">The HTTP Form Manager can be added to your test plan as a preprocessor.<\/figcaption><\/figure>\n<p>Configuration for the <em>HTTP Form Manager<\/em> is straight-forward and minimal.\u00a0 For most instances, the following default configuration options should suffice:<\/p>\n<figure id=\"attachment_11131\" class=\"wp-caption aligncenter\" style=\"max-width: 715px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11131\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-3.png\" alt=\"The HTTP Form Manager can be added to your test plan as a preprocessor\" width=\"715\" height=\"457\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-3.png 829w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-3-300x192.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-3-768x491.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-3-425x272.png 425w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><figcaption class=\"wp-caption-text\">The HTTP Form Manager can be added to your test plan as a preprocessor.<\/figcaption><\/figure>\n<h3><a id=\"post-11128-_m75azbo81kl1\"><\/a>Populating HTTP Requests with Form Data<\/h3>\n<p>The <em>HTTP Form Manager<\/em> will apply itself to any applicable <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#HTTP_Request\"><em>HTTP Request<\/em><\/a> instances that exist within the same scope.\u00a0 In the following example we are substituting a username and password for a login form, matching named fields with <a href=\"https:\/\/jmeter.apache.org\/usermanual\/functions.html\">variables<\/a> (<em>e.g.<\/em>, from an instance of a <a href=\"https:\/\/www.redline13.com\/blog\/2021\/12\/parameterizing-jmeter-tests-from-csv\/\"><em>CSV Data Set Config<\/em><\/a>).<\/p>\n<figure id=\"attachment_11132\" class=\"wp-caption aligncenter\" style=\"max-width: 735px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11132\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-4.png\" alt=\"Sample HTTP Request referencing form fields exposed by an HTTP Form Manager\" width=\"735\" height=\"477\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-4.png 985w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-4-300x195.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-4-768x498.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-4-425x276.png 425w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><figcaption class=\"wp-caption-text\">Sample HTTP Request referencing form fields exposed by an HTTP Form Manager.<\/figcaption><\/figure>\n<p>For the HTTP Request to correctly submit form values, you will need to ensure that the \u201c<code>multipart\/form-data<\/code>\u201d option is selected as shown above.\u00a0 The parameters in the table will be substituted into form fields by <em>name<\/em>, such that the \u201c<em>username<\/em>\u201d field will be matched to the following example HTML code in the target application page:<\/p>\n<pre><strong>&lt;input id=\"uid\" type=\"text\" name=\"username\" value=\"\" \/&gt;<\/strong><\/pre>\n<hr \/>\n<p>Did you know that RedLine13 offers a full-featured, time-limited free trial?\u00a0 <a href=\"https:\/\/www.redline13.com\/Service\">Sign up now<\/a>, and move your JMeter testing into the cloud today!<\/p>","protected":false},"excerpt":{"rendered":"<p>Form submissions represent a common use case for performance tests. If your JMeter test needs to automatically fill out form fields from a data source, this is classically done with extractors and variable substitution.\u00a0 Depending on the number of fields in your form and the structure of your web page, this can become complicated.\u00a0 To simplify this process, we will show you how to use the HTTP Form Manager plugin.\u00a0 This component allows you to intuitively<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":11129,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[128,712,283,713,299,318,424],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-11128","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-uncategorized","10":"post_tag-cloud-load-testing","11":"post_tag-form-submission","12":"post_tag-jmeter","13":"post_tag-jmeter-forms","14":"post_tag-jmeter-plugins","15":"post_tag-load-testing","16":"post_tag-redline13"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using the HTTP Form Manager in JMeter - RedLine13<\/title>\n<meta name=\"description\" content=\"In this brief post, we will show you how to test form submissions in JMeter using the HTTP Form Manager plugin.\" \/>\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\/2024\/05\/using-the-http-form-manager-in-jmeter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using the HTTP Form Manager in JMeter - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this brief post, we will show you how to test form submissions in JMeter using the HTTP Form Manager plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-15T14:31:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-15T14:32:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Koziel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Koziel\" \/>\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\/2024\/05\/using-the-http-form-manager-in-jmeter\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"Using the HTTP Form Manager in JMeter\",\"datePublished\":\"2024-05-15T14:31:26+00:00\",\"dateModified\":\"2024-05-15T14:32:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\"},\"wordCount\":335,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"Cloud Load Testing\",\"Form Submission\",\"JMeter\",\"JMeter forms\",\"jmeter-plugins\",\"Load Testing\",\"RedLine13\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\",\"name\":\"Using the HTTP Form Manager in JMeter - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2024-05-15T14:31:26+00:00\",\"dateModified\":\"2024-05-15T14:32:26+00:00\",\"description\":\"In this brief post, we will show you how to test form submissions in JMeter using the HTTP Form Manager plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using the HTTP Form Manager in JMeter\"}]},{\"@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\/51d282221e3230ab35f964f98ada9b20\",\"name\":\"David Koziel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g\",\"caption\":\"David Koziel\"},\"url\":\"https:\/\/www.redline13.com\/blog\/author\/dkoziel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using the HTTP Form Manager in JMeter - RedLine13","description":"In this brief post, we will show you how to test form submissions in JMeter using the HTTP Form Manager plugin.","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\/2024\/05\/using-the-http-form-manager-in-jmeter\/","og_locale":"en_US","og_type":"article","og_title":"Using the HTTP Form Manager in JMeter - RedLine13","og_description":"In this brief post, we will show you how to test form submissions in JMeter using the HTTP Form Manager plugin.","og_url":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/","og_site_name":"RedLine13","article_published_time":"2024-05-15T14:31:26+00:00","article_modified_time":"2024-05-15T14:32:26+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/05\/word-image-11128-1.png","type":"image\/png"}],"author":"David Koziel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Koziel","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"Using the HTTP Form Manager in JMeter","datePublished":"2024-05-15T14:31:26+00:00","dateModified":"2024-05-15T14:32:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/"},"wordCount":335,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["Cloud Load Testing","Form Submission","JMeter","JMeter forms","jmeter-plugins","Load Testing","RedLine13"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/","url":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/","name":"Using the HTTP Form Manager in JMeter - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2024-05-15T14:31:26+00:00","dateModified":"2024-05-15T14:32:26+00:00","description":"In this brief post, we will show you how to test form submissions in JMeter using the HTTP Form Manager plugin.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2024\/05\/using-the-http-form-manager-in-jmeter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using the HTTP Form Manager in JMeter"}]},{"@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\/51d282221e3230ab35f964f98ada9b20","name":"David Koziel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g","caption":"David Koziel"},"url":"https:\/\/www.redline13.com\/blog\/author\/dkoziel\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11128","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=11128"}],"version-history":[{"count":9,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11128\/revisions"}],"predecessor-version":[{"id":11141,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11128\/revisions\/11141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/11129"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=11128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=11128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=11128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}