sebb        2004/01/15 19:04:36

  Modified:    src/core/org/apache/jmeter/threads JMeterThread.java
  Log:
  Hack: save the SamplePackage for use by Transaction Controllers
  
  Revision  Changes    Path
  1.43      +6 -1      
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.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- JMeterThread.java 13 Jan 2004 12:32:23 -0000      1.42
  +++ JMeterThread.java 16 Jan 2004 03:04:36 -0000      1.43
  @@ -111,6 +111,7 @@
        private boolean onErrorStopTest;
        private boolean onErrorStopThread;
       
  +    public static final String PACKAGE_OBJECT = "JMeterThread.pack";
   
       public JMeterThread()
       {
  @@ -274,6 +275,10 @@
                       {
                           threadContext.setCurrentSampler(sam);
                           SamplePackage pack = compiler.configureSampler(sam);
  +                        
  +                        //Hack: save the package for any transaction controllers
  +                        threadContext.getVariables().putObject(PACKAGE_OBJECT,pack);
  +                        
                           delay(pack.getTimers());                        
                           SampleResult result = pack.getSampler().sample(null);
                           result.setThreadName(threadName);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to