sebb 2004/09/13 09:47:19 Modified: src/core/org/apache/jmeter/threads Tag: rel-2_0 JMeterThread.java Log: Detect JMeterStopThread/Test in outer loop (e.g. when called from User Parameters) Revision Changes Path No revision No revision 1.48.2.2 +12 -2 jakarta-jmeter/src/core/org/apache/jmeter/threads/JMeterThread.java Index: JMeterThread.java =================================================================== RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/threads/JMeterThread.java,v retrieving revision 1.48.2.1 retrieving revision 1.48.2.2 diff -u -r1.48.2.1 -r1.48.2.2 --- JMeterThread.java 22 Jun 2004 23:22:32 -0000 1.48.2.1 +++ JMeterThread.java 13 Sep 2004 16:47:19 -0000 1.48.2.2 @@ -294,6 +294,16 @@ } } } + // Might be found by contoller.next() + catch (JMeterStopTestException e) + { + log.info("Stopping Test: "+e.toString()); + stopTest(); + } + catch (JMeterStopThreadException e) + { + log.info("Stop Thread seen: "+e.toString()); + } finally { threadContext.clear();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]