{"id":11225,"date":"2024-10-10T15:09:05","date_gmt":"2024-10-10T19:09:05","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=11225"},"modified":"2024-10-10T15:09:06","modified_gmt":"2024-10-10T19:09:06","slug":"jmeter-page-data-extractor","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/","title":{"rendered":"JMeter Page Data Extractor"},"content":{"rendered":"\n<p><\/p>\n\n\n<p><a id=\"post-11225-_25k9vvy5n8iv\"><\/a> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11226\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-1.png\" alt=\"JMeter Page Data Extractor\" width=\"320\" height=\"240\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-1-300x225.png 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/p>\n<p>Data collection is a key aspect of any load test. For most tests this data comes from request metrics such as response time, error rate, throughput, <em>etc<\/em>. However it is sometimes useful to capture data that is returned on the requested page itself. With <a href=\"https:\/\/jmeter.apache.org\/usermanual\/index.html\" target=\"_blank\" rel=\"noopener\">JMeter<\/a>, this is possible using the <a href=\"https:\/\/jmeter-plugins.org\/wiki\/PageDataExtractor\/\" target=\"_blank\" rel=\"noopener\"><em>Page Data Extractor<\/em><\/a>. This plugin can be used to directly plot data metrics returned from requests. Use cases include status monitoring, health checks, and other important data.<\/p>\n<p>The <em>Page Data Extractor<\/em> plugin must be added to JMeter via the <a href=\"https:\/\/jmeter-plugins.org\/wiki\/PluginsManager\/\" target=\"_blank\" rel=\"noopener\"><em>Plugins Manager<\/em><\/a>, which can be found under the \u201c<em>Options<\/em>\u201d menu. Installing the plugin for the first time will require a restart of JMeter:<\/p>\n<figure id=\"attachment_11227\" class=\"wp-caption aligncenter\" style=\"max-width: 651px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11227\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-2.png\" alt=\"The Page Data Extractor can be installed from the JMeter Plugins Manager\" width=\"651\" height=\"457\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-2.png 1006w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-2-300x211.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-2-768x540.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-2-425x299.png 425w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><figcaption class=\"wp-caption-text\">The Page Data Extractor can be installed from the JMeter Plugins Manager.<\/figcaption><\/figure>\n<h3><a id=\"post-11225-_mcx50feg9kw2\"><\/a>Configuring the Page Data Extractor<\/h3>\n<p>To understand how the page data extractor works, it is best to illustrate by example. The scenario given in the <a href=\"https:\/\/jmeter-plugins.org\/wiki\/PageDataExtractor\/\" target=\"_blank\" rel=\"noopener\"><em>Page Data Extractor<\/em> documentation<\/a> has requests going to a page with the following data metrics returned in the HTML body:<\/p>\n<figure id=\"attachment_11228\" class=\"wp-caption aligncenter\" style=\"max-width: 440px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11228\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-3.png\" alt=\"Example data available for extraction using the Page Data Extractor\" width=\"440\" height=\"250\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-3.png 440w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-3-300x170.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-3-425x241.png 425w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><figcaption class=\"wp-caption-text\">Example data available for extraction using the Page Data Extractor.<\/figcaption><\/figure>\n<p>This plugin uses <a href=\"https:\/\/en.wikipedia.org\/wiki\/Regular_expression\" target=\"_blank\" rel=\"noopener\">regular expressions<\/a> to find and match elements within the page body. In his example, the expression <code><strong>(serv.*)=<\/strong><\/code> is used to extract a key, and the expression <code><strong>serv.*=(.*)&lt;BR&gt;<\/strong><\/code> extracts the corresponding value:<\/p>\n<figure id=\"attachment_11229\" class=\"wp-caption aligncenter\" style=\"max-width: 650px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11229\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-4.png\" alt=\"Example configuration for the Page Data Extractor based on regular expressions\" width=\"650\" height=\"525\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-4.png 789w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-4-300x242.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-4-768x620.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-4-425x343.png 425w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption class=\"wp-caption-text\">Example configuration for the Page Data Extractor based on regular expressions.<\/figcaption><\/figure>\n<p>Running the test with an <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#HTTP_Request\" target=\"_blank\" rel=\"noopener\"><em>HTTP Request sampler<\/em><\/a> gives the resultant graph output. The same information can also be displayed as data rows from the \u201c<em>Rows<\/em>\u201d tab making it more conducive for export and further analysis.<\/p>\n<hr \/>\n<p>Did you know that RedLine13 offers a full-featured, time-limited free trial? <a href=\"https:\/\/www.redline13.com\/Service\" target=\"_blank\" rel=\"noopener\">Sign up now<\/a>, and start testing today!<\/p>","protected":false},"excerpt":{"rendered":"<p>Data collection is a key aspect of any load test. For most tests this data comes from request metrics such as response time, error rate, throughput, etc. However it is sometimes useful to capture data that is returned on the requested page itself. With JMeter, this is possible using the Page Data Extractor. This plugin can be used to directly plot data metrics returned from requests. Use cases include status monitoring, health checks, and other important<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":11226,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[128,283,299,318,731,424,732],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-11225","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-uncategorized","10":"post_tag-cloud-load-testing","11":"post_tag-jmeter","12":"post_tag-jmeter-plugins","13":"post_tag-load-testing","14":"post_tag-page-data-extractor","15":"post_tag-redline13","16":"post_tag-regular-expressions"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JMeter Page Data Extractor - RedLine13<\/title>\n<meta name=\"description\" content=\"In this post, we will show you how to add the Page Data Extractor to your JMeter test to graph metrics from within the page request body.\" \/>\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\/10\/jmeter-page-data-extractor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JMeter Page Data Extractor - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this post, we will show you how to add the Page Data Extractor to your JMeter test to graph metrics from within the page request body.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-10T19:09:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-10T19:09:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-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\/10\/jmeter-page-data-extractor\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"JMeter Page Data Extractor\",\"datePublished\":\"2024-10-10T19:09:05+00:00\",\"dateModified\":\"2024-10-10T19:09:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\"},\"wordCount\":301,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"Cloud Load Testing\",\"JMeter\",\"jmeter-plugins\",\"Load Testing\",\"Page Data Extractor\",\"RedLine13\",\"Regular Expressions\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\",\"name\":\"JMeter Page Data Extractor - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2024-10-10T19:09:05+00:00\",\"dateModified\":\"2024-10-10T19:09:06+00:00\",\"description\":\"In this post, we will show you how to add the Page Data Extractor to your JMeter test to graph metrics from within the page request body.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JMeter Page Data Extractor\"}]},{\"@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":"JMeter Page Data Extractor - RedLine13","description":"In this post, we will show you how to add the Page Data Extractor to your JMeter test to graph metrics from within the page request body.","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\/10\/jmeter-page-data-extractor\/","og_locale":"en_US","og_type":"article","og_title":"JMeter Page Data Extractor - RedLine13","og_description":"In this post, we will show you how to add the Page Data Extractor to your JMeter test to graph metrics from within the page request body.","og_url":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/","og_site_name":"RedLine13","article_published_time":"2024-10-10T19:09:05+00:00","article_modified_time":"2024-10-10T19:09:06+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/10\/word-image-11225-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\/10\/jmeter-page-data-extractor\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"JMeter Page Data Extractor","datePublished":"2024-10-10T19:09:05+00:00","dateModified":"2024-10-10T19:09:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/"},"wordCount":301,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["Cloud Load Testing","JMeter","jmeter-plugins","Load Testing","Page Data Extractor","RedLine13","Regular Expressions"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/","url":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/","name":"JMeter Page Data Extractor - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2024-10-10T19:09:05+00:00","dateModified":"2024-10-10T19:09:06+00:00","description":"In this post, we will show you how to add the Page Data Extractor to your JMeter test to graph metrics from within the page request body.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JMeter Page Data Extractor"}]},{"@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\/11225","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=11225"}],"version-history":[{"count":2,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11225\/revisions"}],"predecessor-version":[{"id":11231,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11225\/revisions\/11231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/11226"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=11225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=11225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=11225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}