{"id":84,"date":"2014-05-05T18:04:58","date_gmt":"2014-05-06T00:04:58","guid":{"rendered":"http:\/\/blog.cigniti.com\/?p=84"},"modified":"2018-10-11T11:34:56","modified_gmt":"2018-10-11T06:04:56","slug":"jmeter-tips-and-tricks-part-2","status":"publish","type":"post","link":"https:\/\/coforge.site\/cigniti\/blog\/jmeter-tips-and-tricks-part-2\/","title":{"rendered":"JMeter tips and tricks &#8211; Part 2"},"content":{"rendered":"<p>Further to our previous blog here is the next one:<\/p>\n<p><b>How to run JMeter test plan for specified amount of time?<\/b><\/p>\n<p>There are two ways to specifying certain amount of time to run a JMeter test plan.<\/p>\n<p><b>Technique 1:<\/b><\/p>\n<ul>\n<li>In the Thread Group Element, Check <b>scheduler <\/b>and specify the <b>Duration <\/b>in seconds. If you want to run Jmeter test plan for 30 minutes then enter 1800 as shown below.<b><\/b><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2014\/02\/thread-group.jpg\" width=\"544\" height=\"316\"><\/p>\n<p><b>\u00a0\u00a0Technique 2:<\/b><\/p>\n<ul>\n<li>Create a Thread Group which should contain your actual samplers.<b><\/b><\/li>\n<li>Add two Test Action samplers to the above Thread Group<b><\/b><\/li>\n<\/ul>\n<p><b>Add -&gt; Sampler -&gt; Test Action<\/b><\/p>\n<p><img decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2014\/02\/thread-group1.jpg\" width=\"557\" height=\"319\"><\/p>\n<ul>\n<li>Click on <b>Test Action 1 <\/b>and enter below setting.<\/li>\n<\/ul>\n<p>Select <b>Target<\/b> as <b>Current Thread<\/b> and <b>Action<\/b> as <b>Pause<\/b> and enter <b>1800000<\/b><\/p>\n<p>Milliseconds (30 minutes duration). This sampler acts as a Pause.<\/p>\n<ul>\n<li>Click on <b>Test Actin 2<\/b> Sampler and specify below settings.<\/li>\n<\/ul>\n<p>Select <b>Target<\/b> as <b>All Threads<\/b> and <b>Action<\/b> as <b>Stop<\/b>. This sampler stops the<\/p>\n<p>Execution once it reaches the specified duration<\/p>\n<ul>\n<li>Make sure you <b>unchecked Run Thread Groups consecutively<\/b> option in Test Plan.<\/li>\n<\/ul>\n<p><b>Summary<\/b><b>: <\/b>When we want to execute the load test for specified amount of time i.e. 2 hrs. Then we go for above either of two techniques.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Further to our previous blog here is the next one: How to run JMeter test plan for specified amount of time? There are two ways to specifying certain amount of time to run a JMeter test plan. Technique 1: In the Thread Group Element, Check scheduler and specify the Duration in seconds. If you want [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":13135,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[51,50,52,49],"ppma_author":[3740],"class_list":["post-84","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-performance-testing","tag-jmeter-load-testing","tag-jmeter-testing","tag-jmeter-testing-tool","tag-jmeter-tips"],"authors":[{"term_id":3740,"user_id":11,"is_guest":0,"slug":"rahul-goel","display_name":"Rahul Goel","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/88007255e345325e0434071b111f1b5e9569e19d8703b3f010ca8320361bf43d?s=96&d=mm&r=g","author_category":"","user_url":"http:\/\/www.cigniti.com","last_name":"Goel","first_name":"Rahul","job_title":"","description":""}],"_links":{"self":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":0,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/media\/13135"}],"wp:attachment":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/tags?post=84"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/ppma_author?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}