JMeter handle “test-completed” event Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!JMeter - fail a test based on the average response timejMeter thread sequenceIs there a way to check if a certain assertion has failedJMeter enable/disable HTTP Request Sampler upon certain conditionJMeter - Write requests and responses to a fileJmeter cannot handle cookies for httpsJMeter duration assertion Override Response CodeAdding elements at runtime and executing a jmeter test planJMeter - Disable/Ignore assertion only for first requestJMeter - View currrent request before getting responseJMeter - How to assert after the loop has finished

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

When speaking, how do you change your mind mid-sentence?

Will I be more secure with my own router behind my ISP's router?

A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?

Converting a text document with special format to Pandas DataFrame

Im stuck and having trouble with ¬P ∨ Q Prove: P → Q

What's the difference between using dependency injection with a container and using a service locator?

What could prevent concentrated local exploration?

Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?

Etymology of 見舞い

How was Lagrange appointed professor of mathematics so early?

Protagonist's race is hidden - should I reveal it?

tabularx column has extra padding at right?

What kind of equipment or other technology is necessary to photograph sprites (atmospheric phenomenon)

Kepler's 3rd law: ratios don't fit data

Recursive calls to a function - why is the address of the parameter passed to it lowering with each call?

Is my guitar’s action too high?

Should man-made satellites feature an intelligent inverted "cow catcher"?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

What came first? Venom as the movie or as the song?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Why these surprising proportionalities of integrals involving odd zeta values?

Providing direct feedback to a product salesperson



JMeter handle “test-completed” event



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!JMeter - fail a test based on the average response timejMeter thread sequenceIs there a way to check if a certain assertion has failedJMeter enable/disable HTTP Request Sampler upon certain conditionJMeter - Write requests and responses to a fileJmeter cannot handle cookies for httpsJMeter duration assertion Override Response CodeAdding elements at runtime and executing a jmeter test planJMeter - Disable/Ignore assertion only for first requestJMeter - View currrent request before getting responseJMeter - How to assert after the loop has finished



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I calculate some statistics (e.g. average request duration) while my tests are running using code similar to this:



https://stackoverflow.com/a/27446405/2173353



However, I want to know when the test is done running (all the samplers have executed), so that I act upon the statistics then, and not before that. Essentially, I want to assert on the average duration of the requests when all requests are done.



Is there a way to execute code when the test is about to finish?










share|improve this question




























    0















    I calculate some statistics (e.g. average request duration) while my tests are running using code similar to this:



    https://stackoverflow.com/a/27446405/2173353



    However, I want to know when the test is done running (all the samplers have executed), so that I act upon the statistics then, and not before that. Essentially, I want to assert on the average duration of the requests when all requests are done.



    Is there a way to execute code when the test is about to finish?










    share|improve this question
























      0












      0








      0








      I calculate some statistics (e.g. average request duration) while my tests are running using code similar to this:



      https://stackoverflow.com/a/27446405/2173353



      However, I want to know when the test is done running (all the samplers have executed), so that I act upon the statistics then, and not before that. Essentially, I want to assert on the average duration of the requests when all requests are done.



      Is there a way to execute code when the test is about to finish?










      share|improve this question














      I calculate some statistics (e.g. average request duration) while my tests are running using code similar to this:



      https://stackoverflow.com/a/27446405/2173353



      However, I want to know when the test is done running (all the samplers have executed), so that I act upon the statistics then, and not before that. Essentially, I want to assert on the average duration of the requests when all requests are done.



      Is there a way to execute code when the test is about to finish?







      jmeter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 14:32









      user2173353user2173353

      2,52142958




      2,52142958






















          1 Answer
          1






          active

          oldest

          votes


















          1














          You must probably be looking for the tearDown Thread Group. It is some form of "special" thread group, the difference from "normal" Thread Groups is that the tearDown Thread Group is being executed after all other Thread Groups therefore you will be able to perform your "near the end" actions there.



          More information: How to Use the SetUp Thread Group in JMeter When Preparing a Load Test






          share|improve this answer























          • Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

            – user2173353
            Mar 22 at 15:50






          • 1





            props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

            – Dmitri T
            Mar 22 at 16:25











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55301906%2fjmeter-handle-test-completed-event%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          You must probably be looking for the tearDown Thread Group. It is some form of "special" thread group, the difference from "normal" Thread Groups is that the tearDown Thread Group is being executed after all other Thread Groups therefore you will be able to perform your "near the end" actions there.



          More information: How to Use the SetUp Thread Group in JMeter When Preparing a Load Test






          share|improve this answer























          • Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

            – user2173353
            Mar 22 at 15:50






          • 1





            props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

            – Dmitri T
            Mar 22 at 16:25















          1














          You must probably be looking for the tearDown Thread Group. It is some form of "special" thread group, the difference from "normal" Thread Groups is that the tearDown Thread Group is being executed after all other Thread Groups therefore you will be able to perform your "near the end" actions there.



          More information: How to Use the SetUp Thread Group in JMeter When Preparing a Load Test






          share|improve this answer























          • Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

            – user2173353
            Mar 22 at 15:50






          • 1





            props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

            – Dmitri T
            Mar 22 at 16:25













          1












          1








          1







          You must probably be looking for the tearDown Thread Group. It is some form of "special" thread group, the difference from "normal" Thread Groups is that the tearDown Thread Group is being executed after all other Thread Groups therefore you will be able to perform your "near the end" actions there.



          More information: How to Use the SetUp Thread Group in JMeter When Preparing a Load Test






          share|improve this answer













          You must probably be looking for the tearDown Thread Group. It is some form of "special" thread group, the difference from "normal" Thread Groups is that the tearDown Thread Group is being executed after all other Thread Groups therefore you will be able to perform your "near the end" actions there.



          More information: How to Use the SetUp Thread Group in JMeter When Preparing a Load Test







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 22 at 15:29









          Dmitri TDmitri T

          75.2k33766




          75.2k33766












          • Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

            – user2173353
            Mar 22 at 15:50






          • 1





            props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

            – Dmitri T
            Mar 22 at 16:25

















          • Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

            – user2173353
            Mar 22 at 15:50






          • 1





            props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

            – Dmitri T
            Mar 22 at 16:25
















          Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

          – user2173353
          Mar 22 at 15:50





          Thanks. The only problem is that it looks like that you cannot access the variables of another thread group from that tearDown thread group, so I will probably try to use properties instead. Or maybe try to find something similar to BeanShell's bsh.shared for Groovy. Any extra hints are welcome. :)

          – user2173353
          Mar 22 at 15:50




          1




          1





          props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

          – Dmitri T
          Mar 22 at 16:25





          props.put('key', value) should do the trick for you. See The Groovy Templates Cheat Sheet for JMeter article for more details if needed

          – Dmitri T
          Mar 22 at 16:25



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55301906%2fjmeter-handle-test-completed-event%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript