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.
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.
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.
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
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2873