This all seems to have gotten a bit off what I was asking....
I want to record using the http proxy recorder
I set up my HTTP Request Defaults under a recording controller
I set up the server, port, etc.
I want to basically set up the path such that it is replaceable just like
the port or domain name. Reason is we change the context-root of our app,
but not any of its functionality so all paths are the same past the
context-root.
How do I set this up?
I have everything recording and it is not putting the server/port in the
HTTP Requests it records but lets say I have a path

/application/doSomething.do

where 'application' is the context root
I later may want to change it to something like
/servlet/doSomething.do

Jordi said we can change the context-root when we record.
Jordi - "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."

How do we do this? Can we change it to be a variable such that when it is
recorded it's recorded such as
/${context.root}/doSomething.do in the created HTTP Request? How do we
define the variable in the test plan so that the proxy recorder will replace
all occurrences of "/application"?
thx,
Mike


-----Original Message-----
From: BAZLEY, Sebastian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 12:36 PM
To: 'JMeter Users List'
Subject: RE: How to change context root in generic manner?


> -----Original Message-----
> From: Andrew Chapman [mailto:[EMAIL PROTECTED]
> Sent: 07 January 2004 16:58
> To: [EMAIL PROTECTED]
> Subject: RE: How to change context root in generic manner?
> Mike,
> 
> I found this tricky to do but here's some notes I made yesterday...
> 

Feel free to update the JMeter FAQ!

> (NOTE: -D seems to be interchangeable with -J on the GUI command line).

Sort of.

-D sets a system property
-J sets a JMeter property.

The ${__property()} function reads JMeter properties.
JMeter properties default to system properties (if the property is not set
as a JMeter property, the system properties list is checked).
[So __property() can read java.version for example.]

The behaviour of some Java library routines can be modified by defining
system properties. In this case -D must be used, otherwise it is safer to
use -J.

S.

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

Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially unsecure.
Thank you.  NOVA Information Systems, Inc.

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

Reply via email to