{"id":11238,"date":"2024-11-14T05:14:39","date_gmt":"2024-11-14T10:14:39","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=11238"},"modified":"2024-11-14T05:16:38","modified_gmt":"2024-11-14T10:16:38","slug":"extractor-success-assertion","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/","title":{"rendered":"JMeter Extractor Success Assertion"},"content":{"rendered":"<p><a id=\"post-11238-_euchasuyv3lc\"><\/a> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11239\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-1.png\" alt=\"JMeter Extractor Success Assertion\" width=\"400\" height=\"300\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-1-300x225.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p><a href=\"https:\/\/jmeter.apache.org\/usermanual\/index.html\" target=\"_blank\" rel=\"noopener\">JMeter<\/a> extends the useful capability to extract response data into user variables. In a recent post, we covered how to use the <a href=\"https:\/\/www.redline13.com\/blog\/2024\/10\/jmeter-page-data-extractor\/\" target=\"_blank\" rel=\"noopener\"><em>Page Data Extractor<\/em><\/a> to find and save data metrics returned in the body of the page for use in <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#JSR223_PostProcessor\" target=\"_blank\" rel=\"noopener\">post-processor scripts<\/a> and other test plan elements. It is a reasonable requirement to see if such extractions are successful before proceeding to this other test logic, which can be achieved manually in your scripts. However, in this post we will review how to use the <a href=\"https:\/\/jmeter-plugins.org\/?search=jpgc-esa\" target=\"_blank\" rel=\"noopener\"><em>Extractor Success Assertion<\/em><\/a> component to automatically check if an extractor successfully returned data from the request.<\/p>\n<h3><a id=\"post-11238-_5ma6h9mkh74o\"><\/a>Adding the Extractor Success Assertion<\/h3>\n<p>The <em>Extractor Success Assertion<\/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_11240\" class=\"wp-caption aligncenter\" style=\"max-width: 750px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11240\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-2.png\" alt=\"The Extractor Success Assertion plugin can be installed from the JMeter Plugins Manager\" width=\"750\" height=\"477\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-2.png 1001w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-2-300x191.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-2-768x488.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-2-425x270.png 425w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-caption-text\">The Extractor Success Assertion plugin can be installed from the JMeter Plugins Manager.<\/figcaption><\/figure>\n<h3><a id=\"post-11238-_aj6fjuulqris\"><\/a>Configuring the Extractor Success Assertion<\/h3>\n<p>It is recommended per the <a href=\"https:\/\/github.com\/undera\/jmeter-extract-success\" target=\"_blank\" rel=\"noopener\">documentation<\/a> that the <em>Extractor Success Assertion<\/em> is added as a top-level component in your test plan:<\/p>\n<figure id=\"attachment_11241\" class=\"wp-caption aligncenter\" style=\"max-width: 262px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11241\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-3.png\" alt=\"Extractor Success Assertion as top-level component in the test plan\" width=\"262\" height=\"100\" \/><figcaption class=\"wp-caption-text\">Extractor Success Assertion as top-level component in the test plan.<\/figcaption><\/figure>\n<p>A single instance of this component can be used for all extractors in your test. It accepts a comma-separated list of extractor variable names, as shown below where we have specified \u201c<code><strong>MY_VARIABLE<\/strong><\/code>\u201d as a configured option:<\/p>\n<figure id=\"attachment_11242\" class=\"wp-caption aligncenter\" style=\"max-width: 630px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11242\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-4.png\" alt=\"Configuring the Extractor Success Assertion plugin\" width=\"630\" height=\"251\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-4.png 630w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-4-300x120.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-4-425x169.png 425w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><figcaption class=\"wp-caption-text\">Configuring the Extractor Success Assertion plugin.<\/figcaption><\/figure>\n<p>Upon execution, this assertion will serve to fail the current iteration of the test plan in the event that an extractor fails to capture any of the specified user variables. Using this component, your test results can be assured free of spurious results due to extractors that fail to capture their intended targets, without the need to code checks for each of these variables individually in your post-processor scripts.<\/p>\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\" target=\"_blank\" rel=\"noopener\">Sign up now<\/a>, and start testing today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JMeter extends the useful capability to extract response data into user variables. In a recent post, we covered how to use the Page Data Extractor to find and save data metrics returned in the body of the page for use in post-processor scripts and other test plan elements. It is a reasonable requirement to see if such extractions are successful before proceeding to this other test logic, which can be achieved manually in your scripts. However,<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":11239,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[734,283,299,318,424],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-11238","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-uncategorized","10":"post_tag-extractor","11":"post_tag-jmeter","12":"post_tag-jmeter-plugins","13":"post_tag-load-testing","14":"post_tag-redline13"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JMeter Extractor Success Assertion - RedLine13<\/title>\n<meta name=\"description\" content=\"In this post we will show you how to use the Extractor Success Assertion to check if an extractor processed extractor successfully.\" \/>\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\/11\/extractor-success-assertion\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JMeter Extractor Success Assertion - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this post we will show you how to use the Extractor Success Assertion to check if an extractor processed extractor successfully.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-14T10:14:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-14T10:16:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-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\/11\/extractor-success-assertion\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"JMeter Extractor Success Assertion\",\"datePublished\":\"2024-11-14T10:14:39+00:00\",\"dateModified\":\"2024-11-14T10:16:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\"},\"wordCount\":344,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"Extractor\",\"JMeter\",\"jmeter-plugins\",\"Load Testing\",\"RedLine13\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\",\"name\":\"JMeter Extractor Success Assertion - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2024-11-14T10:14:39+00:00\",\"dateModified\":\"2024-11-14T10:16:38+00:00\",\"description\":\"In this post we will show you how to use the Extractor Success Assertion to check if an extractor processed extractor successfully.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JMeter Extractor Success Assertion\"}]},{\"@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 Extractor Success Assertion - RedLine13","description":"In this post we will show you how to use the Extractor Success Assertion to check if an extractor processed extractor successfully.","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\/11\/extractor-success-assertion\/","og_locale":"en_US","og_type":"article","og_title":"JMeter Extractor Success Assertion - RedLine13","og_description":"In this post we will show you how to use the Extractor Success Assertion to check if an extractor processed extractor successfully.","og_url":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/","og_site_name":"RedLine13","article_published_time":"2024-11-14T10:14:39+00:00","article_modified_time":"2024-11-14T10:16:38+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/11\/word-image-11238-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\/11\/extractor-success-assertion\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"JMeter Extractor Success Assertion","datePublished":"2024-11-14T10:14:39+00:00","dateModified":"2024-11-14T10:16:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/"},"wordCount":344,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["Extractor","JMeter","jmeter-plugins","Load Testing","RedLine13"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/","url":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/","name":"JMeter Extractor Success Assertion - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2024-11-14T10:14:39+00:00","dateModified":"2024-11-14T10:16:38+00:00","description":"In this post we will show you how to use the Extractor Success Assertion to check if an extractor processed extractor successfully.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2024\/11\/extractor-success-assertion\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JMeter Extractor Success Assertion"}]},{"@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\/11238","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=11238"}],"version-history":[{"count":2,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11238\/revisions"}],"predecessor-version":[{"id":11244,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11238\/revisions\/11244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/11239"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=11238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=11238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=11238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}