{"id":10884,"date":"2023-10-12T10:49:24","date_gmt":"2023-10-12T14:49:24","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=10884"},"modified":"2023-10-12T10:49:25","modified_gmt":"2023-10-12T14:49:25","slug":"jmeter-assertions-to-control-test-flow","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/","title":{"rendered":"JMeter Assertions\u00a0to Control Test Flow"},"content":{"rendered":"\n<p><\/p>\n\n\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10885\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-1.png\" alt=\"JMeter Assertions&nbsp;to Control Test Flow\" width=\"335\" height=\"251\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-1-300x225.png 300w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/strong><\/p>\n<p>Creating a <a href=\"https:\/\/jmeter.apache.org\/usermanual\/index.html\" target=\"_blank\" rel=\"noopener\">JMeter<\/a> performance test plan often involves simulating a series of requests.&nbsp; Whether we intend to run one request sometimes depends on if the previous request was successful \u2013 in essence creating a branched-logic flow.&nbsp; In this brief post, we will show you how to use JMeter <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#assertions\" target=\"_blank\" rel=\"noopener\">assertions<\/a> to control the flow of your test.<\/p>\n<h3><a id=\"post-10884-_n4eeuo6jls0m\"><\/a>Conditional Test Flow<\/h3>\n<p>In a <a href=\"https:\/\/www.redline13.com\/blog\/2016\/01\/what-are-my-options-for-using-assertions-in-jmeter\/\" target=\"_blank\" rel=\"noopener\">previous post<\/a>, we covered all the different types of JMeter assertions that are available.&nbsp; Here, we will focus on configuring the <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Response_Assertion\" target=\"_blank\" rel=\"noopener\"><em>Response Assertion<\/em><\/a> element to control test plan flow.&nbsp; However, many of the same concepts may be extended to other assertion elements.<\/p>\n<p>The best way to illustrate how to use <em>Response Assertion<\/em> components in practice is by example.&nbsp; Let\u2019s consider the following simple test plan where we have two <em>HTTP requests<\/em>, \u201c<em>A<\/em>\u201d and \u201c<em>B<\/em>\u201d:<\/p>\n<figure id=\"attachment_10886\" class=\"wp-caption aligncenter\" style=\"max-width: 626px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10886\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-2.png\" alt=\"A simple JMeter test with sequential requests controlled by a Response Assertion\" width=\"626\" height=\"283\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-2.png 626w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-2-300x136.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-2-420x190.png 420w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-2-425x192.png 425w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><figcaption class=\"wp-caption-text\">A simple JMeter test with sequential requests controlled by a Response Assertion.<\/figcaption><\/figure>\n<p>In this simple test plan, we have defined two <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#HTTP_Request\" target=\"_blank\" rel=\"noopener\"><em>HTTP Request<\/em><\/a> elements inside a <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#HTTP_Request\" target=\"_blank\" rel=\"noopener\"><em>Thread Group<\/em><\/a>, with the intent that if \u201c<em>Request A<\/em>\u201d is successful, we will run \u201c<em>Request B<\/em>\u201d.&nbsp; The <em>Response Assertion<\/em> element which appears under request \u201c<em>A<\/em>\u201d controls the flow of execution such that \u201c<em>B<\/em>\u201d runs only if \u201c<em>A<\/em>\u201d is successful.&nbsp; This is defined in the configuration parameters for this <em>Response Assertion<\/em>:<\/p>\n<figure id=\"attachment_10887\" class=\"wp-caption aligncenter\" style=\"max-width: 1249px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10887\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-3.png\" alt=\"Configuration parameters for Response Assertion for sequential conditional JMeter test plan flow\" width=\"1249\" height=\"666\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-3.png 1249w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-3-300x160.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-3-1024x546.png 1024w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-3-768x410.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-3-425x227.png 425w\" sizes=\"auto, (max-width: 1249px) 100vw, 1249px\" \/><figcaption class=\"wp-caption-text\">Configuration parameters for Response Assertion for sequential conditional JMeter test plan flow.<\/figcaption><\/figure>\n<p>While you can explore the full range of <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Response_Assertion_parms1\" target=\"_blank\" rel=\"noopener\">parameters<\/a> for the <em>Response Assertion<\/em> component in the official JMeter documentation, the key parameters we have defined for our example are as follows:<\/p>\n<ul>\n<li>We have set \u201c<em>Main sample and sub-samples<\/em>\u201d for \u201c<em>Apply to<\/em>\u201d \u2013 This setting causes execution to skip remaining samplers in our <em>Thread Group<\/em> if<\/li>\n<li>The \u201c<em>Field to Test<\/em>\u201d is set to \u201c<em>Response Code<\/em>\u201d \u2013 There are a number of fields available to us, but the principle here is selecting one which gauges success versus failure of sampler execution.<\/li>\n<li>\u201c<em>Pattern Matching Rules<\/em>\u201d are set to \u201c<em>Matches<\/em>\u201d \u2013 In this example, we are looking for an exact match.<\/li>\n<li>The \u201c<em>Pattern to Test<\/em>\u201d is set to \u201c<code>200<\/code>\u201d \u2013 This corresponds to the HTTP <em>success<\/em> <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\" target=\"_blank\" rel=\"noopener\">status code<\/a>.<\/li>\n<\/ul>\n<p>For the purposes of illustration, we have configured about half of the responses for request \u201c<em>A<\/em>\u201d to return an unsuccessful <code>300<\/code> or <code>400<\/code> response code.&nbsp; The results of running through several iterations of our test can be seen in the output of the <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#View_Results_Tree\" target=\"_blank\" rel=\"noopener\"><em>View Results Tree<\/em><\/a> listener:<\/p>\n<figure id=\"attachment_10888\" class=\"wp-caption aligncenter\" style=\"max-width: 622px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10888\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-4.png\" alt=\"Results of running through multiple iterations of our example test plan\" width=\"622\" height=\"319\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-4.png 622w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-4-300x154.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-4-425x218.png 425w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><figcaption class=\"wp-caption-text\">Results of running through multiple iterations of our example test plan.<\/figcaption><\/figure>\n<h3><a id=\"post-10884-_ee9c26rp7xvf\"><\/a>A More Complex Example<\/h3>\n<p>Often, the success of a response is not only considered by the HTTP status code (<em>e.g.<\/em>, <code>200<\/code>, <code>404<\/code>, <em>etc<\/em>.), but the content of the request.&nbsp; To describe a more realistic scenario, we can apply multiple assertions to a single HTTP request:<\/p>\n<figure id=\"attachment_10889\" class=\"wp-caption aligncenter\" style=\"max-width: 356px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10889\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-5.png\" alt=\"Multiple assertions can be applied to a single request\" width=\"356\" height=\"62\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-5.png 356w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-5-300x52.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><figcaption class=\"wp-caption-text\">Multiple assertions can be applied to a single request.<\/figcaption><\/figure>\n<p>In this case we have an <em>HTTP Sampler<\/em> which is configured to return an expected <a href=\"https:\/\/en.wikipedia.org\/wiki\/JSON\" target=\"_blank\" rel=\"noopener\">JSON<\/a> response. We are using <a href=\"http:\/\/www.jsontest.com\/\" target=\"_blank\" rel=\"noopener\">jsontest.org<\/a> for this test, a site hosting multiple JSON-returning endpoints for application testing.&nbsp; Specifically, we will be using the <a href=\"http:\/\/ip.jsontest.com\/\" target=\"_blank\" rel=\"noopener\">IP<\/a> endpoint, which returns structured content in the form of:<\/p>\n<pre>{<br>&nbsp; &nbsp; \"ip\": \"55a8:6c55:30ad:7ec6:b003:6bc7:58ab:7253\"<br>}<\/pre>\n<p>In this example, the first assertion remains the same as it looks for a <code>200<\/code> success response code from our request.&nbsp; The \u201c<em>Response Content Assertion<\/em>\u201d element is configured differently to look at the content of the request and match a pattern in the response body:<\/p>\n<figure id=\"attachment_10890\" class=\"wp-caption aligncenter\" style=\"max-width: 1685px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10890\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6.png\" alt=\"The Response Content Assertion element is configured with slightly different parameters\" width=\"1685\" height=\"711\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6.png 1685w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6-300x127.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6-1024x432.png 1024w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6-768x324.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6-1536x648.png 1536w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-6-425x179.png 425w\" sizes=\"auto, (max-width: 1685px) 100vw, 1685px\" \/><figcaption class=\"wp-caption-text\">The \u201cResponse Content Assertion\u201d element is configured with slightly different parameters.<\/figcaption><\/figure>\n<p>This second assertion will check to ensure that the response from our HTTP request contains \u201c<code>ip<\/code>\u201d within the response body.&nbsp; The two key parameters that are configured differently in this assertion versus the first are:<\/p>\n<ul>\n<li>\u201c<em>Field to Test<\/em>\u201d is set to \u201c<em>Text Response<\/em>\u201d \u2013 This will examine the content within the response body.<\/li>\n<li>\u201c<em>Pattern Matching Rules<\/em>\u201d are set to \u201c<em>Substring<\/em>\u201d \u2013 Any occurrence of the specified pattern within the response body will satisfy this assertion.<\/li>\n<li>The \u201c<em>Pattern to Test<\/em>\u201d is set to \u201c<code>ip<\/code>\u201d \u2013 The response body must contain the \u201c<code>ip<\/code>\u201d field.<\/li>\n<\/ul>\n<p>As long as <em>both<\/em> assertions are satisfied, subsequent requests within the thread group will be run.&nbsp; If <em>either<\/em> assertion fails, test execution will skip further requests within the same thread group until the next iteration.<\/p>\n<hr>\n<p>Did you know that RedLine13 offers a full-featured, time-limited free trial?&nbsp; <a href=\"https:\/\/www.redline13.com\/Service\">Sign up now<\/a>, and start testing today!<\/p>","protected":false},"excerpt":{"rendered":"<p>Creating a JMeter performance test plan often involves simulating a series of requests.&nbsp; Whether we intend to run one request sometimes depends on if the previous request was successful \u2013 in essence creating a branched-logic flow.&nbsp; In this brief post, we will show you how to use JMeter assertions to control the flow of your test. Conditional Test Flow In a previous post, we covered all the different types of JMeter assertions that are available.&nbsp; Here,<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":10885,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[87,663,283,662,664,318,424],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-10884","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-jmeter","10":"post_tag-assertions","11":"post_tag-branched-execution","12":"post_tag-jmeter","13":"post_tag-jmeter-conditions","14":"post_tag-jmeter-decision","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>JMeter Assertions\u00a0to Control Test Flow - RedLine13<\/title>\n<meta name=\"description\" content=\"In this brief post, we will show you how to use Assertions to control the flow of your JMeter performance test plan.\" \/>\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\/2023\/10\/jmeter-assertions-to-control-test-flow\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JMeter Assertions\u00a0to Control Test Flow - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this brief post, we will show you how to use Assertions to control the flow of your JMeter performance test plan.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-12T14:49:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-12T14:49:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"JMeter Assertions\u00a0to Control Test Flow\",\"datePublished\":\"2023-10-12T14:49:24+00:00\",\"dateModified\":\"2023-10-12T14:49:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\"},\"wordCount\":750,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"assertions\",\"Branched Execution\",\"JMeter\",\"JMeter Conditions\",\"JMeter decision\",\"Load Testing\",\"RedLine13\"],\"articleSection\":[\"Blog\",\"JMeter\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\",\"name\":\"JMeter Assertions\u00a0to Control Test Flow - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2023-10-12T14:49:24+00:00\",\"dateModified\":\"2023-10-12T14:49:25+00:00\",\"description\":\"In this brief post, we will show you how to use Assertions to control the flow of your JMeter performance test plan.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JMeter Assertions\u00a0to Control Test Flow\"}]},{\"@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 Assertions\u00a0to Control Test Flow - RedLine13","description":"In this brief post, we will show you how to use Assertions to control the flow of your JMeter performance test plan.","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\/2023\/10\/jmeter-assertions-to-control-test-flow\/","og_locale":"en_US","og_type":"article","og_title":"JMeter Assertions\u00a0to Control Test Flow - RedLine13","og_description":"In this brief post, we will show you how to use Assertions to control the flow of your JMeter performance test plan.","og_url":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/","og_site_name":"RedLine13","article_published_time":"2023-10-12T14:49:24+00:00","article_modified_time":"2023-10-12T14:49:25+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10884-1.png","type":"image\/png"}],"author":"David Koziel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Koziel","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"JMeter Assertions\u00a0to Control Test Flow","datePublished":"2023-10-12T14:49:24+00:00","dateModified":"2023-10-12T14:49:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/"},"wordCount":750,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["assertions","Branched Execution","JMeter","JMeter Conditions","JMeter decision","Load Testing","RedLine13"],"articleSection":["Blog","JMeter"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/","url":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/","name":"JMeter Assertions\u00a0to Control Test Flow - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2023-10-12T14:49:24+00:00","dateModified":"2023-10-12T14:49:25+00:00","description":"In this brief post, we will show you how to use Assertions to control the flow of your JMeter performance test plan.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-assertions-to-control-test-flow\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JMeter Assertions\u00a0to Control Test Flow"}]},{"@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\/10884","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=10884"}],"version-history":[{"count":6,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/10884\/revisions"}],"predecessor-version":[{"id":10897,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/10884\/revisions\/10897"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/10885"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=10884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=10884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=10884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}