Clink on your Test Plan component. You'll see a table with two columns. Enter "yourVariable" without the quotes in the first column, first row. Enter "/yourcurrentprefix" without the quotes in the 2nd column, first row. Record your script as usual and you'll see the replacement made. If you then change the 2nd column, first row, to "/yourotherprefix", you'll be hitting your other application.

Hope it makes sense.

I'm of course assuming you have a reasonably recent version of JMeter -- try with 1.9.1 if it doesn't work. If it still doesn't work, try with a nightly build. The docs are updated to explain this, in there.

--
Salut,

Jordi.

En/na [EMAIL PROTECTED] ha escrit:
How do I do this? I don't see anywhere to add this?
And in the test plan I have /application/... in every path for every HTTP
Request. This will need to be changed often.
Do I change every path in every HTTP Request to have ${yourVariable}/... ?
Where do I defined this variable so that it can be easily changed for a test
on a different context-root?
thx,
Mike

-----Original Message-----
From: Jordi Salvat i Alabart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 11:13 AM
To: JMeter Users List
Subject: Re: How to change context root in generic manner?


Unfortunately, the HTTP Request Defaults component can't serve that function.


But you can define a variable in your test plan having the value "/application". The proxy recorder will replace every occurence of "/application" with "${yourVariable}". You'll only need to change the variable to run with a different context root.



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



Reply via email to