{"id":1869,"date":"2020-12-04T16:13:58","date_gmt":"2020-12-04T16:13:58","guid":{"rendered":"https:\/\/loadfocus.com\/blog\/?p=1869"},"modified":"2022-01-07T11:17:30","modified_gmt":"2022-01-07T11:17:30","slug":"which-is-the-execution-order-of-elements-in-apache-jmeter","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2020\/12\/which-is-the-execution-order-of-elements-in-apache-jmeter","title":{"rendered":"Which is the Execution Order of Elements in Apache JMeter?"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p class=\"lead\">The execution order of the elements in an Apache JMeter performance test plan is very important, it helps understand the timeline of events and how your test will behave.<\/p><\/blockquote>\n\n\n\n<p>Make sure that you understand every JMeter element before adding it to your test plan, this will help create faster performance tests and not jump into various errors. Creating tests with JMeter can be tedious at the beginning, but as you start learning more and more about each of the elements and which are the required one, the time invested in creating test scripts will decrease. More details on <a href=\"https:\/\/loadfocus.com\/blog\/2020\/10\/how-does-apache-jmeter-work\/\" title=\"How does Apache JMeter work?\">how Apache JMeter works<\/a>.<\/p>\n\n\n\n<p>You can also use a Chrome Extension to click and record all your domains and API requests automatically, no coding skills needed with <a href=\"https:\/\/loadfocus.com\/blog\/2020\/11\/record-jmeter-tests-chrome-extension\/\" title=\"Record JMeter Tests Chrome Extension\" target=\"_blank\" rel=\"noreferrer noopener\">Record and Run Chrome Extension from LoadFocus<\/a>.<\/p>\n\n\n\n<p>This will automatically save your JMeter test in the cloud from where you can <a href=\"https:\/\/loadfocus.com\/jmeter-load-testing\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"run jmeter tests in cloud\">run JMeter tests in the cloud<\/a> with more than 10k concurrent users per test from multiple world locations. <\/p>\n\n\n\n<p>To test APIs or websites that use Auth, you can checkout our article on <a href=\"https:\/\/loadfocus.com\/blog\/2022\/01\/how-to-test-oauth-secured-apis-apps-using-jmeter\/\" title=\"How to Test OAuth Secured APIs &amp; Apps using JMeter\">How to Test OAuth Secured APIs &amp; Apps using JMeter<\/a>.<\/p>\n\n\n\n<p>Below is the ordered list, have in mind that some of the elements are optional.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>EXECUTION ORDER<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Configuration elements<\/li><li>Pre-Processors<\/li><li>Timers<\/li><li>Sampler<\/li><li>Post-Processors<\/li><li>Assertions<\/li><li>Listeners<\/li><\/ol>\n\n\n\n<p>Here is a list of potential elements in each category:<\/p>\n\n\n\n<p><strong>Configuration Elements<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/loadfocus.com\/blog\/2021\/12\/how-to-use-csv-data-set-to-configure-jmeter-tests\/\">CSV Data Set Config<\/a><\/li><li>FTP Request Defaults<\/li><li>DNS Cache Manager<\/li><li>HTTP Authorization Manager<\/li><li>HTTP Cache Manager<\/li><li>HTTP Cookie Manager<\/li><li>HTTP Request Defaults<\/li><li>HTTP Header Manager<\/li><li>Java Request Defaults<\/li><li>JDBC Connection Configuration<\/li><li>Keystore Configuration<\/li><li>Login Config Element<\/li><li>LDAP Request Defaults<\/li><li>LDAP Extended Request Defaults<\/li><li>TCP Sampler Config<\/li><li>User Defined Variables<\/li><li>Random Variable<\/li><li>Counter<\/li><li>Simple Config Element<\/li><li>MongoDB Source Config (DEPRECATED)<\/li><li>Bolt Connection Configuration<\/li><\/ul>\n\n\n\n<p><strong>Pre Processors<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>HTML Link Parser<\/li><li>HTTP URL Re-writing Modifier<\/li><li>User Parameters<\/li><li>BeanShell PreProcessor<\/li><li>JSR223 PreProcessor<\/li><li>JDBC PreProcessor<\/li><li>RegEx User Parameters<\/li><li>Sample Timeout<\/li><\/ul>\n\n\n\n<p><strong>JMeter Timers:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Timers<\/li><li>Constant Timer<\/li><li>Gaussian Random Timer<\/li><li>Uniform Random Timer<\/li><li>Constant Throughput Timer<\/li><li>Precise Throughput Timer<\/li><li>Synchronizing Timer<\/li><li>BeanShell Timer<\/li><li>JSR223 Timer<\/li><li>Poisson Random Timer<\/li><\/ul>\n\n\n\n<p><strong>JMeter samplers include:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>FTP Request<\/li><li>HTTP Request (can be used for SOAP or REST Webservice also)<\/li><li>JDBC Request<\/li><li>Java object request<\/li><li>JMS request<\/li><li>JUnit Test request<\/li><li>LDAP Request<\/li><li>Mail request<\/li><li>OS Process request<\/li><li>TCP request<\/li><\/ul>\n\n\n\n<p><strong>Post-Processors<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Regular Expression Extractor<\/li><li>CSS Selector Extractor (was: CSS\/JQuery Extractor )<\/li><li>XPath2 Extractor<\/li><li>XPath Extractor<\/li><li>JSON JMESPath Extractor<\/li><li>Result Status Action Handler<\/li><li>BeanShell PostProcessor<\/li><li>JSR223 PostProcessor<\/li><li>JDBC PostProcessor<\/li><li>JSON Extractor<\/li><li>Boundary Extractor<\/li><\/ul>\n\n\n\n<p><strong>Assertions<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Response Assertion<\/li><li>Duration Assertion<\/li><li>Size Assertion<\/li><li>XML Assertion<\/li><li>BeanShell Assertion<\/li><li>MD5Hex Assertion<\/li><li>HTML Assertion<\/li><li>XPath Assertion<\/li><li>XPath2 Assertion<\/li><li>XML Schema Assertion<\/li><li>JSR223 Assertion<\/li><li>Compare Assertion<\/li><li>SMIME Assertion<\/li><li>JSON Assertion<\/li><li>JSON JMESPath Assertion<\/li><\/ul>\n\n\n\n<p><strong>Listeners include:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Simple Data Writer<\/li><li>BeanShell\/JSR223 Listener<\/li><li>Mailer Visualizer<\/li><li>Summary Report<\/li><li>Aggregate Report<\/li><li>Aggregate Graph<\/li><li>and others<\/li><\/ul>\n\n\n\n<p>Hope this is helpful and reduces time when debugging JMeter tests.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><em>Written by <a href=\"https:\/\/coursinator.com\/instructor\/bogdan-vazzolla\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"broken_link\">Bogdan Vazzolla<\/a>.<\/em><\/p>\n\n\n\n<p><em><a href=\"https:\/\/loadfocus.com\/\">LoadFocus<\/a> is a cloud performance, load and stress testing tool which provides the infrastructure and the ability to run all these tests with thousands of concurrent users, from <a href=\"https:\/\/loadfocus.com\/locations\">multiple cloud locations<\/a>, in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>The execution order of the elements in an Apache JMeter performance test plan is very important, it helps understand the timeline of events and how your test will behave. Make sure that you understand every JMeter element before adding it to your test plan, this will help create faster performance tests and not jump into&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2020\/12\/which-is-the-execution-order-of-elements-in-apache-jmeter\" class=\"more-link\" title=\"Read Which is the Execution Order of Elements in Apache JMeter?\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1614,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9,6],"tags":[313,314],"class_list":["post-1869","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache-jmeter","category-load-testing","category-performance-testing","tag-elements-in-jmeter","tag-execution-order-in-jmeter"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/1869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=1869"}],"version-history":[{"count":0,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/1869\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media\/1614"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=1869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=1869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=1869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}