Hi,
I am trying to record test scripts with Jmeter's proxy. Thing are otherwise fine, but
I can't get "HTTP request defaults" component working as described in the user
documentation. I want to use "HTTP request defaults" -component to prevent Jmeter from
saving server/port information for each request. I need to run those scripts at
multiple servers so hard coded values just won't work.
Jmeter user documentation says the following:
---- 11.4 Using the proxy server ------
...
One of the most useful features of the Proxy Server is that you can abstract out
certain common elements from the recorded samples. By attaching an HTTP Request
Defaults , with the "domain" property specified (e.g. jakarta.apache.org), to your
Simple Controller , you can direct JMeter to:
Only record samples with matching "domain" fields under this Controller, and
Remove the "domain" field from the recorded sample.
------------------------------------------
My test plan:
Root
|
|-Test plan
| |
| - Thread group
| |
| - Recording Controller
| |-HTTP Request defaults (server name or IP:
|myserver.domain.com, port:10080)
| |-HTTP Header manager (User-Agent Mozilla/5.0 (Windows;
|...
| -HTTP Cookie manager
|-work bench
|
- HTTP Proxy server (port 8080, exclude pics/JS/css)
When I'm recording test scripts, all the requests will have "server name or IP" and
"port" -fields and headers (all, even the default ones) stored under each request.
I have understood that adding "HTTP Request defaults"-component will prevent Jmeter
from filling the fields defined in the "HTTP Request defaults" for each HTTP request.
Have I understood something wrong? I have tested various variations of the test plan
("HTTP request defaults" in "Thread group", using "Simple controller" instead of
"Recording controller") without success.
All help is appreciated. Thanks in advance,
Jarno
-----------------------------------------------------------------------
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:jmeter-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jmeter-user-help@;jakarta.apache.org>