{"id":57748,"date":"2017-07-04T16:37:50","date_gmt":"2017-07-04T11:07:50","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=57748"},"modified":"2024-04-12T14:20:36","modified_gmt":"2024-04-12T08:50:36","slug":"jmeter-assersations-execution-order","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/","title":{"rendered":"Assertions &#038; Execution Order"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a ref=\"magnificPopup\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"400\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png\" alt=\"Assertions &amp; Execution Order\" class=\"wp-image-96110\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png 750w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1-300x160.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Let us discuss the Assertions &amp; Execution Order. <\/p>\n\n\n<p><strong>Assertions-<\/strong> <span lang=\"EN-US\">Assertions allow you to assert facts about responses received from the server being tested. Using an assertion, you can essentially &#8220;test&#8221; that your application is returning the results you expect it to.<\/span><\/p>\n<p class=\"VSKILLbodytext\"><span lang=\"EN-US\">For instance, you can assert that the response to a query will contain some particular text. The text you specify can be a Perl-style regular expression, and you can indicate that the response is to contain the text, or that it should match the whole response.<\/span><\/p>\n<p class=\"VSKILLbodytext\"><span lang=\"EN-US\">You can add an assertion to any Sampler. For example, you can add an assertion to a HTTP Request that checks for the text, &#8220;&lt;\/HTML&gt;&#8221;. JMeter will then check that the text is present in the HTTP response. If JMeter cannot find the text, then it will mark this as a failed request.<\/span><\/p>\n<p class=\"VSKILLbodytext\"><span lang=\"EN-US\">Note that assertions apply to all samplers which are in its scope . To restrict the assertion to a single sampler, add the assertion as a child of the sampler. <\/span><span lang=\"EN-US\">To view the assertion results, add an Assertion Listener to the Thread Group. Failed Assertions will also show up in the Tree View and Table Listeners, and will count towards the error %age for example in the Aggregate and Summary reports<\/span><\/p>\n<h5><strong>Execution order<\/strong><\/h5>\n<ul>\n<li>Configuration elements<\/li>\n<li>Pre-Processors<\/li>\n<li>Timers<\/li>\n<li>Sampler<\/li>\n<li>Post-Processors (unless SampleResult is null)<\/li>\n<li>Assertions (unless SampleResult is null)<\/li>\n<li>Listeners (unless SampleResult is null)<\/li>\n<\/ul>\n<p>Please note that Timers, Assertions, Pre- and Post-Processors are only processed if there is a sampler to which they apply. Logic Controllers and Samplers are processed in the order in which they appear in the tree. Other test elements are processed according to the scope in which they are found, and the type of test element. [Within a type, elements are processed in the order in which they appear in the tree].<\/p>\n<p>For example, in the following test plan:<\/p>\n<p><strong>Controller<\/strong><\/p>\n<ul>\n<li>Post-Processor 1<\/li>\n<li>Sampler 1<\/li>\n<li>Sampler 2<\/li>\n<li>Timer 1<\/li>\n<li>Assertion 1<\/li>\n<li>Pre-Processor 1<\/li>\n<li>Timer 2<\/li>\n<li>Post-Processor 2<\/li>\n<\/ul>\n<p>The order of execution would be:<\/p>\n<ul>\n<li>Pre-Processor 1<\/li>\n<li>Timer 1<\/li>\n<li>Timer 2<\/li>\n<li>Sampler 1<\/li>\n<li>Post-Processor 1<\/li>\n<li>Post-Processor 2<\/li>\n<li>Assertion 1<\/li>\n<li>Pre-Processor 1<\/li>\n<li>Timer 1<\/li>\n<li>Timer 2<\/li>\n<li>Sampler 2<\/li>\n<li>Post-Processor 1<\/li>\n<li>Post-Processor 2<\/li>\n<li>Assertion 1<\/li>\n<\/ul>\n<p><strong>Test Your Software Testing Skills By Taking Our JMeter Practice Tests On This <a href=\"https:\/\/www.vskills.in\/practice\/quiz\/Jmeter\">Link<\/a><\/strong><\/p>\n<p><em><strong>Become Vskills Certified JMeter Tester. Gain some knowledge on the module &#8220;Assertions &amp; Execution Order&#8221;. Try the free practice test! <\/strong><\/em><\/p>\n<p><strong>Apply For <a href=\"https:\/\/www.vskills.in\/certification\/testing\/jmeter-tester-certification\">JMeter Certification<\/a><\/strong><\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.vskills.in\/practice\/jmeter\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Exam-4A0-102_-Nokia-Border-Gateway-Protocol-14-1.png\" alt=\"\" class=\"wp-image-95995\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Exam-4A0-102_-Nokia-Border-Gateway-Protocol-14-1.png 961w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Exam-4A0-102_-Nokia-Border-Gateway-Protocol-14-1-300x47.png 300w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-tester-certification\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to Tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let us discuss the Assertions &amp; Execution Order. Assertions- Assertions allow you to assert facts about responses received from the server being tested. Using an assertion, you can essentially &#8220;test&#8221; that your application is returning the results you expect it to. For instance, you can assert that the response to a query will contain some&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[126],"tags":[9757,9759,9758,7163],"class_list":["post-57748","page","type-page","status-publish","hentry","category-software-testing","tag-certified-jmeter-tester-exam-details","tag-certified-jmeter-tester-free-practice-test","tag-certified-jmeter-tester-online-tutorial","tag-jmeter"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JMeter Tutorial | Assersations &amp; Execution Order<\/title>\n<meta name=\"description\" content=\"Become Vskills Certified JMeter Tester. Gain some knowledge on the module &quot;Assertions &amp; Execution Order&quot;. Try the free practice test!\" \/>\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.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JMeter Tutorial | Assersations &amp; Execution Order\" \/>\n<meta property=\"og:description\" content=\"Become Vskills Certified JMeter Tester. Gain some knowledge on the module &quot;Assertions &amp; Execution Order&quot;. Try the free practice test!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:50:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/\",\"name\":\"JMeter Tutorial | Assersations & Execution Order\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png\",\"datePublished\":\"2017-07-04T11:07:50+00:00\",\"dateModified\":\"2024-04-12T08:50:36+00:00\",\"description\":\"Become Vskills Certified JMeter Tester. Gain some knowledge on the module \\\"Assertions & Execution Order\\\". Try the free practice test!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#primaryimage\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png\",\"width\":750,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Assertions &#038; Execution Order\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JMeter Tutorial | Assersations & Execution Order","description":"Become Vskills Certified JMeter Tester. Gain some knowledge on the module \"Assertions & Execution Order\". Try the free practice test!","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.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/","og_locale":"en_US","og_type":"article","og_title":"JMeter Tutorial | Assersations & Execution Order","og_description":"Become Vskills Certified JMeter Tester. Gain some knowledge on the module \"Assertions & Execution Order\". Try the free practice test!","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:50:36+00:00","og_image":[{"url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/","name":"JMeter Tutorial | Assersations & Execution Order","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png","datePublished":"2017-07-04T11:07:50+00:00","dateModified":"2024-04-12T08:50:36+00:00","description":"Become Vskills Certified JMeter Tester. Gain some knowledge on the module \"Assertions & Execution Order\". Try the free practice test!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#primaryimage","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Alibaba-Cloud-Computing-Professional-13-1.png","width":750,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/jmeter-assersations-execution-order\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Assertions &#038; Execution Order"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/57748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=57748"}],"version-history":[{"count":10,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/57748\/revisions"}],"predecessor-version":[{"id":96114,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/57748\/revisions\/96114"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=57748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=57748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=57748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}