Bug 53671 - tearDown thread group to run even if shutdown test happens
Summary: tearDown thread group to run even if shutdown test happens
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 14:06 UTC by shmulikk
Modified: 2012-08-30 13:35 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shmulikk 2012-08-07 14:06:43 UTC
One problem I just encountered is that the tearDown thread group wouldn't run if for some reason I chose to "shutdown" the test before time.
This causing the cleanup steps, in the tearDown thread group, not to run, thus breaking my datasets for the next run.

I would expect to have an option so tearDown will happen even when I shutdown the test (in contrast to stoptest which I expect to force a test stop).

Best,
Shmuel.
Comment 1 Sebb 2012-08-07 14:21:51 UTC
At what point would the option need to be resolved?

e.g. if it is a JMeter property or GUI checkbox it would be resolved before starting the test (a property could potentially be updated later, but that's not trivial to do).

Would that be sufficient? 
I.e. does one always know beforehand that the tearDown groups need to be run?

A dynamic option would probably require more work to implement.
Comment 2 shmulikk 2012-08-07 14:26:10 UTC
Resolving the option when a test starts is definitely good solution.
This is the same behavior as other components which are being resolved on test start.

I wouldn't expect this to be dynamically changed or supported.
Comment 3 Sebb 2012-08-30 13:35:03 UTC
Implemented as additional checkbox on Test Plan GUI

URL: http://svn.apache.org/viewvc?rev=1378929&view=rev
Log:
Run tearDown Thread Groups after shutdown of main threads
Bugzilla Id: 53671

Modified:
    jmeter/trunk/docs/images/screenshots/testplan.png
    jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestPlanGui.java
    jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/core/org/apache/jmeter/testelement/TestPlan.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/images/screenshots/testplan.png
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 4 The ASF infrastructure team 2022-09-24 20:37:50 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2873