{"id":10874,"date":"2023-10-02T07:49:00","date_gmt":"2023-10-02T11:49:00","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=10874"},"modified":"2023-10-12T10:44:04","modified_gmt":"2023-10-12T14:44:04","slug":"jmeter-random-controllers","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/","title":{"rendered":"The JMeter Random Controller vs Random Order Controller"},"content":{"rendered":"<p><a id=\"post-10874-_x42est5mg9kx\"><\/a> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10875\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-1.png\" alt=\"The JMeter Random Controller vs Random Order Controller\" width=\"400\" height=\"300\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-1-300x225.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>When it comes to introducing random variability within test plan execution, there are two similarly named plugins for <a href=\"https:\/\/jmeter.apache.org\/usermanual\/index.html\" target=\"_blank\" rel=\"noopener\">JMeter<\/a> which are up to the task.\u00a0 Each of these applies randomization to your tests, but in different ways.\u00a0 In this brief post, we will analyze the similarities and differences between the JMeter <em>Random Controller<\/em> and the <em>Random Order Controller<\/em>.<\/p>\n<p>The <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Random_Controller\" target=\"_blank\" rel=\"noopener\"><em>Random Controller<\/em><\/a> is one of two built-in logical controllers for randomization. When you add an instance of this controller to your test plan, you may nest multiple child elements (<em>e.g.<\/em>, <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#HTTP_Request\" target=\"_blank\" rel=\"noopener\"><em>HTTP Requests<\/em><\/a>) underneath this. Each time an iteration of your test plan runs, the <em>Random Controller<\/em> will select <em>one<\/em> of these elements at random and execute it. This is in contrast to the <a href=\"https:\/\/jmeter.apache.org\/usermanual\/component_reference.html#Random_Order_Controller\" target=\"_blank\" rel=\"noopener\"><em>Random Order Controller<\/em><\/a>. While the premise remains that child elements are added to this controller, each iteration of your test will run <em>all<\/em> contained elements. The order in which these elements are executed however will change each time at random.<\/p>\n<p>Let\u2019s consider the following sample test plan. Here we have added a <em>Random Controller<\/em> side-by-side with a <em>Random Order Controller<\/em> to explore how child <em>HTTP Requests<\/em> will be executed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10876\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-2.png\" alt=\"Sample JMeer test plan\" width=\"604\" height=\"258\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-2.png 604w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-2-300x128.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-2-425x182.png 425w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>On one iteration, the <em>Random Controller<\/em> will select either Sampler A <em>or<\/em> Sampler B for execution \u2013 but not both. On that same iteration the subsequent <em>Random Order Controller<\/em> will reorder the execution of both Sampler C and Sampler D such that <em>either<\/em> runs first, followed by the other. A series of three consecutive iterations of this test plan may yield the following execution ordering:<\/p>\n<figure id=\"attachment_10877\" class=\"wp-caption aligncenter\" style=\"max-width: 617px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10877\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-3.png\" alt=\"Request ordering for three consecutive iterations\" width=\"617\" height=\"212\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-3.png 800w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-3-300x103.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-3-768x264.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-3-425x146.png 425w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><figcaption class=\"wp-caption-text\">Request ordering for three consecutive iterations.<\/figcaption><\/figure>\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 both controllers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When it comes to introducing random variability within test plan execution, there are two similarly named plugins for JMeter which are up to the task.\u00a0 Each of these applies randomization to your tests, but in different ways.\u00a0 In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller. The Random Controller is one of two built-in logical controllers for randomization. When you add an instance of<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":10875,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[128,283,661,299,318,659,627,660,424],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-10874","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-jmeter","10":"post_tag-cloud-load-testing","11":"post_tag-jmeter","12":"post_tag-jmeter-random-order","13":"post_tag-jmeter-plugins","14":"post_tag-load-testing","15":"post_tag-random-controller","16":"post_tag-random-data","17":"post_tag-random-order-controller","18":"post_tag-redline13"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The JMeter Random Controller vs Random Order Controller - RedLine13<\/title>\n<meta name=\"description\" content=\"In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller.\" \/>\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-random-controllers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The JMeter Random Controller vs Random Order Controller - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-02T11:49:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-12T14:44:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-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=\"2 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-random-controllers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"The JMeter Random Controller vs Random Order Controller\",\"datePublished\":\"2023-10-02T11:49:00+00:00\",\"dateModified\":\"2023-10-12T14:44:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\"},\"wordCount\":297,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"Cloud Load Testing\",\"JMeter\",\"JMeter Random Order\",\"jmeter-plugins\",\"Load Testing\",\"Random Controller\",\"random data\",\"Random Order Controller\",\"RedLine13\"],\"articleSection\":[\"Blog\",\"JMeter\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\",\"name\":\"The JMeter Random Controller vs Random Order Controller - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2023-10-02T11:49:00+00:00\",\"dateModified\":\"2023-10-12T14:44:04+00:00\",\"description\":\"In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The JMeter Random Controller vs Random Order Controller\"}]},{\"@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":"The JMeter Random Controller vs Random Order Controller - RedLine13","description":"In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller.","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-random-controllers\/","og_locale":"en_US","og_type":"article","og_title":"The JMeter Random Controller vs Random Order Controller - RedLine13","og_description":"In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller.","og_url":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/","og_site_name":"RedLine13","article_published_time":"2023-10-02T11:49:00+00:00","article_modified_time":"2023-10-12T14:44:04+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2023\/10\/word-image-10874-1.png","type":"image\/png"}],"author":"David Koziel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Koziel","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"The JMeter Random Controller vs Random Order Controller","datePublished":"2023-10-02T11:49:00+00:00","dateModified":"2023-10-12T14:44:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/"},"wordCount":297,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["Cloud Load Testing","JMeter","JMeter Random Order","jmeter-plugins","Load Testing","Random Controller","random data","Random Order Controller","RedLine13"],"articleSection":["Blog","JMeter"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/","url":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/","name":"The JMeter Random Controller vs Random Order Controller - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2023-10-02T11:49:00+00:00","dateModified":"2023-10-12T14:44:04+00:00","description":"In this brief post, we will analyze the similarities and differences between the JMeter Random Controller and the Random Order Controller.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2023\/10\/jmeter-random-controllers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"The JMeter Random Controller vs Random Order Controller"}]},{"@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\/10874","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=10874"}],"version-history":[{"count":3,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/10874\/revisions"}],"predecessor-version":[{"id":10882,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/10874\/revisions\/10882"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/10875"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=10874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=10874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=10874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}