You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Strachan, Paul" <Pa...@det.nsw.edu.au> on 2007/10/03 05:23:46 UTC

recording http problem [SOLVED]

I changed the patterns to include from ".*\.do" to ".*" and now it also
captures the initial "post" request. 

Both the "post" and "get" are struts .do actions but for some reason it
only captures the 2nd request with specific *.do regex.

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, 3 October 2007 1:25 AM
To: JMeter Users List
Subject: Re: recording http problem

This is supposed to work, but perhaps there is some interaction with
the "Redirect Automatically" checkbox - try disabling it.

Also check in the jmeter log file in case any relevant errors have
been reported.

Do you know of a public server we can use to test against?

S///
On 02/10/2007, Strachan, Paul <Pa...@det.nsw.edu.au> wrote:
> Hi,
>
> Jmeter 2.3
>
> I'm new to jmeter and have setup the HTTP Proxy Server to record a
> regression test but its not working as I would expect.
>
> One of my tests uses a "redirect-after-post" sequence, for example:
>
> POST /xxx/app/InputAction.do --> 302 (redirect)
> GET /xxx/app/Apply.do --> 200
>
> What I see in JMeter:
>
> o- Test Plan
>  o- Thread Group
>    o- HTTP Request Defaults
>    o- /xxx/app/Start.do "GET"
>    o- /xxx/app/Apply.do "GET"
>    o- /xxx/app/Apply.do "GET"
>    o- /xxx/app/Apply.do "GET"
>
> etc
>
> So, it appears JMeter is only recording the "get" request following
the
> redirect.
>
> My HTTP Proxy Server config has:
>
> 1. url pattern ".*\.do"
> 2. Redirect Automatically = On
> 3. Follow Redirects = Off
>
> So how can I get jmeter to record the original "post" to
InputAction.do
> with supplied request parameters?
>
> To replay the test I need to add the cookie manager and reg.exp.
> extractor but I assume this not required for the recorder.
>
> Thanks,
> Paul
>
>
> **********************************************************************
> This message is intended for the addressee named and may contain
> privileged information or confidential information or both. If you
> are not the intended recipient please delete it and notify the sender.
> **********************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org

**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: recording http problem [SOLVED]

Posted by sebb <se...@gmail.com>.
Ah, thanks for letting us know.

I'd overlooked the URL pattern.

.*\.do should match anything ending in ".do", but it won't match if
there was anything after the ".do"

The pattern .* matches everything, so can be omitted if it is the only
include pattern.

On 03/10/2007, Strachan, Paul <Pa...@det.nsw.edu.au> wrote:
> I changed the patterns to include from ".*\.do" to ".*" and now it also
> captures the initial "post" request.
>
> Both the "post" and "get" are struts .do actions but for some reason it
> only captures the 2nd request with specific *.do regex.
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, 3 October 2007 1:25 AM
> To: JMeter Users List
> Subject: Re: recording http problem
>
> This is supposed to work, but perhaps there is some interaction with
> the "Redirect Automatically" checkbox - try disabling it.
>
> Also check in the jmeter log file in case any relevant errors have
> been reported.
>
> Do you know of a public server we can use to test against?
>
> S///
> On 02/10/2007, Strachan, Paul <Pa...@det.nsw.edu.au> wrote:
> > Hi,
> >
> > Jmeter 2.3
> >
> > I'm new to jmeter and have setup the HTTP Proxy Server to record a
> > regression test but its not working as I would expect.
> >
> > One of my tests uses a "redirect-after-post" sequence, for example:
> >
> > POST /xxx/app/InputAction.do --> 302 (redirect)
> > GET /xxx/app/Apply.do --> 200
> >
> > What I see in JMeter:
> >
> > o- Test Plan
> >  o- Thread Group
> >    o- HTTP Request Defaults
> >    o- /xxx/app/Start.do "GET"
> >    o- /xxx/app/Apply.do "GET"
> >    o- /xxx/app/Apply.do "GET"
> >    o- /xxx/app/Apply.do "GET"
> >
> > etc
> >
> > So, it appears JMeter is only recording the "get" request following
> the
> > redirect.
> >
> > My HTTP Proxy Server config has:
> >
> > 1. url pattern ".*\.do"
> > 2. Redirect Automatically = On
> > 3. Follow Redirects = Off
> >
> > So how can I get jmeter to record the original "post" to
> InputAction.do
> > with supplied request parameters?
> >
> > To replay the test I need to add the cookie manager and reg.exp.
> > extractor but I assume this not required for the recorder.
> >
> > Thanks,
> > Paul
> >
> >
> > **********************************************************************
> > This message is intended for the addressee named and may contain
> > privileged information or confidential information or both. If you
> > are not the intended recipient please delete it and notify the sender.
> > **********************************************************************
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
> **********************************************************************
> This message is intended for the addressee named and may contain
> privileged information or confidential information or both. If you
> are not the intended recipient please delete it and notify the sender.
> **********************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org