You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by David Corbin <dc...@imperitek.com> on 2002/05/15 13:41:29 UTC

Newbie Questions

I'm just starting to look at JMeter, and I have two questions (so far)
1) Is there no way to rearrange elements of the tree?  I can't find 
anything like this.  Not even Cut/Copy/Paste
2) Is there any support for sending an argument value that is one random 
value from from this set of values?  How about instead of a random 
value, sequentiall choose the next value form this lists of values?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Newbie Questions

Posted by Joseph Barefoot <jo...@hereuare.com>.
Well, if you're testing site registration, it would be nice to have another
test case for REMOVING those users that you just registered, if that's
possible.

I was doing the exact same thing you're doing, and the old
HTTPUserParameterModifier does retrieve the values randomly.  I have an
update from Mark Walsh that returns the values from users.xml sequentially
instead of randomly, and I'll forward it to you in a separate email.

To "unregister" users, I had to create a 'special' URL in our application,
enabled only in development, that removes a user based on a userName request
parameter.  That way, I could create a test case to remove all the users
using the SAME users.xml file that I used to add them.  I found this to be
easier than anything else.

> -----Original Message-----
> From: Mason Jones [mailto:mason@dhapdigital.com]
> Sent: Wednesday, May 15, 2002 10:48 AM
> To: JMeter Users List
> Subject: RE: Newbie Questions
>
>
>
> > > From: David Corbin [mailto:dcorbin@imperitek.com]
> > >
> > > I'm just starting to look at JMeter, and I have two questions (so far)
> > > 1) Is there no way to rearrange elements of the tree?  I can't find
> > > anything like this.  Not even Cut/Copy/Paste
> > > 2) Is there any support for sending an argument value that is
> one random
> > > value from from this set of values?  How about instead of a random
> > > value, sequentiall choose the next value form this lists of values?
>
> Actually, #2 is a big question that I'm trying to figure out right now.
> We've got a file containing a large number of users and their data for
> testing site registration. Every time we run the test case, it seems to
> randomly grab one of the users. Often it will grab the same one
> twice in a
> row, which fails because of course the first one is already registered.
> What I'd like, ideally, is for JMeter to use the first one in the
> file, and
> remember that. Then when I run the test again, it would use the
> second one
> in the file, and so on. Basically sequential use of the users.xml
> file with
> a marker to tell it where to start the next time the test is run. How
> possible is this? And if it's not possible, is there some other trick to
> prevent it from trying to re-use the users?
>
> Thanks for any suggestions.
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Newbie Questions

Posted by Mason Jones <ma...@dhapdigital.com>.
> > From: David Corbin [mailto:dcorbin@imperitek.com]
> >
> > I'm just starting to look at JMeter, and I have two questions (so far)
> > 1) Is there no way to rearrange elements of the tree?  I can't find
> > anything like this.  Not even Cut/Copy/Paste
> > 2) Is there any support for sending an argument value that is one random
> > value from from this set of values?  How about instead of a random
> > value, sequentiall choose the next value form this lists of values?

Actually, #2 is a big question that I'm trying to figure out right now. 
We've got a file containing a large number of users and their data for 
testing site registration. Every time we run the test case, it seems to 
randomly grab one of the users. Often it will grab the same one twice in a 
row, which fails because of course the first one is already registered. 
What I'd like, ideally, is for JMeter to use the first one in the file, and 
remember that. Then when I run the test again, it would use the second one 
in the file, and so on. Basically sequential use of the users.xml file with 
a marker to tell it where to start the next time the test is run. How 
possible is this? And if it's not possible, is there some other trick to 
prevent it from trying to re-use the users?

Thanks for any suggestions.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Newbie Questions

Posted by Joseph Barefoot <jo...@hereuare.com>.
I re-arrange elements by saving that particular node to a file, and then
opening it on the parent node where I want to copy it.  Not very
satisfactory, but it works.

> -----Original Message-----
> From: David Corbin [mailto:dcorbin@imperitek.com]
> Sent: Wednesday, May 15, 2002 4:41 AM
> To: jmeter-user@jakarta.apache.org
> Subject: Newbie Questions
>
>
> I'm just starting to look at JMeter, and I have two questions (so far)
> 1) Is there no way to rearrange elements of the tree?  I can't find
> anything like this.  Not even Cut/Copy/Paste
> 2) Is there any support for sending an argument value that is one random
> value from from this set of values?  How about instead of a random
> value, sequentiall choose the next value form this lists of values?
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>