Ah. Thanks. It might have taken me more time than I have to complete this to figure that out. Too obvious and all that.
Barry Roberts > -----Original Message----- > From: Stover, Michael [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 7:41 AM > To: Barry Roberts > Subject: FW: Adding cookie values to log output > > > > > -----Original Message----- > From: Stover, Michael > Sent: Thursday, April 11, 2002 9:41 AM > To: 'JMeter Users List' > Subject: RE: Adding cookie values to log output > > > What you want is to add response header/cookie info to the > SampleResult that > is returned by HTTPSampler, and then you want the File > Reporter to log that > info. Thus, you need to modify HTTPSampler and the File > Reporter to do > this. SampleResult can hold any information you want to put > in it (it acts > like a HashMap). > > -Mike > > -----Original Message----- > From: Barry Roberts [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 7:05 PM > To: [EMAIL PROTECTED] > Subject: Adding cookie values to log output > > > I have been using the org.apache.jmeter.reporters.Filer class > (I think) > to write out URL's, response times and parameters to a file. That's > great, but with multiple threads I would like to be able to add the > cookie values so that I can sort on that. Then I can trace a > particular > "user" and the time for each step. > > It seems like I need to get the ThreadGroup object, and from that get > the CookieManager object to list the cookie names and values, > but I only > see how to get the ThreadGroup name from inside my class's > sampleOccurred method. > > And even if I had a ThreadGroup Object I don't see a getConfigElements > method on it. > > Is what I'm trying to do possible? Am I way off base? > > Thanks, > Barry Roberts >

