I have a modifier that can change HTTP request variables for each jmeter thread (ie user).
The HTTP parameters (name value pairs) to be changed for each user, are contained in a file, and any matching HTTP request variables are then changed to the values in the file. (Note the file can contain multiple users, each user can have multiple HTTP parameters to be modified). This enables jmeter to simulate multiple different users at once. If more jmeter threads are started, than users listed in the file, then the user information is allocated to jmeter threads in a round robin fashion. If you are interested, let me know and I will send you a copy of the code. Regards, Mark. -----Original Message----- From: Kate Rosenbloom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 10 April 2002 7:37 To: [EMAIL PROTECTED] Subject: Re: Using variables in HTTP and JDBC requests Yes, I've tested the modifier, and have submitted to the developer's list. However, it doesn't address the requirement that you list below... that would need a different type of modifier. Kate "Mo, Jennifer" wrote: > > This sounds very useful. Did you already test this? It sounds like something > I need too! > > I'm trying to dynamically create HTTP request variables by reading a text > file which contain all the parameters (name and value pairs). Any ideas on > how I can do this? Will I have to change the way JMeter processes the XML > file? > > -----Original Message----- > From: Kate Rosenbloom [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 8:01 PM > To: [EMAIL PROTECTED] > Subject: Using variables in HTTP and JDBC requests > > I recently used JMeter to test a servlet, where I needed to have > each test thread generate a unique test sample (the first thread would > create "Test Customer 1", and the second thread would create "Test > Customer 2", etc.). > Also, I needed this unique number to be used in both the web requests > (where the > data record was created), and in JDBC requests that I used to clean up > the > database after testing. > > To do this, I implemented a Modifier, called ThreadNumberModifier. It > will substitute in the numeric ID of the currently executing thread > anywhere it > sees the text tag $$JMETER-THREAD$$ in any HTTP request (parameters or > path) or > JDBC request (the query) it processes. > > The prefix $$JMETER- is handled by a superclass of ThreadNumberModifier, > so > it would be easy to add other variable-substituting modifiers, such as > for > random numbers, email addressses from a list, etc. (I think I've seen > requests > for these in this mailing list). > > If other folks think this would be generally useful, let me know, and I > will > submit the code to the developers list for consideration. > > Kate Rosenbloom > RapidMoney Corp. > Santa Cruz, CA > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

