I added the method

public Iterator getIterator()

to JMeterVariables a little while ago.

It's in the 2.1 branch and the nightly build.

Another way would be to specify the variables that need replacement,
rather than looking for all possible instances of a variable
reference. That might prove quicker.

S
On 09/12/05, Peter Lin <[EMAIL PROTECTED]> wrote:
> mike or sebb would know more about this area. my knowledge of the variable
> stuff is pretty weak
>
> peter
>
>
> On 12/9/05, Brudermann Roger <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for all your feedback. I am currently working on my own stream
> > replacement facility.
> >
> > As far as I understand the JMeter implementation, all the preprocessor
> > variables are stored in an instance of JMeterVariables which can be accessed
> > by means of calling JMeterContextService.getContext().getVariables(). To
> > do the actual replacement in my stream I would like to know the names of all
> > the (counter) variables that have been configured. Unfortunately the class
> > JMeterVariables does not offer an operation to extract these names. It looks
> > like I am a bit stuck here.
> >
> > Do you know a solution or am I missing something?
> >
> > Roger
> >
> > -----Ursprüngliche Nachricht-----
> > Von: sebb [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 5. Dezember 2005 13:51
> > An: JMeter Users List
> > Betreff: Re: Value replacing in streams
> >
> >
> > You will have to implement your own "stream edit" facility.
> >
> > S.
> > On 05/12/05, Brudermann Roger <[EMAIL PROTECTED]> wrote:
> > > Dear JMeter Community
> > >
> > > We have the need to do performance testing with with huge SOAP and JMS
> > > messages (e.g. 50MB). Instead of pasting these messages in a text box of
> > an
> > > appropriate sampler, we had the idea to write an own sampler which reads
> > the
> > > messages as data streams directly from the file system. So far so good.
> > >
> > > The problem is that we need to use pre processor variables (counters) to
> > > customize the messages. We noticed that counter value replacing does not
> > > take place and we think this is due to the fact that the messages are
> > not
> > > stored in a sampler property. Does somebody have an idea how we could
> > > implement some "on the fly value replacing" while reading the message
> > stream
> > > from the file system (e.g. line by line)?
> > >
> > > Any help is greatly appreciated! Thanks!
> > >
> > > Regards,
> > > Roger Brudermann
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

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

Reply via email to