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]>