jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Luu <manga...@gmail.com>
Subject Re: Regular Expression Extrator doesnt work on all pages
Date Sun, 30 Oct 2011 01:31:19 GMT
Just wanted to say this is interesting topic. Made me aware of this meta
refresh simulation issue in non-browser tools that I hadn't thought of.

I can see this would also apply to page redirection done with javascript as
well, window.location = newUrl; with something like an HTML body onload
event.

For simplifying JMeter test and more modern approach, the developers should
have utilized HTTP (server based) redirection rather than the meta refresh.
Not sure how to set that up on server side. But for JMeter, you can
configure it to follow those HTTP 302 redirections, which is on by default
for HTTP samplers. Then no need to deal with the messy extraction of meta
tag URLs.

On Thu, Oct 27, 2011 at 11:27 AM, Deepak Shetty <shettyd@gmail.com> wrote:

> thats something that your application developers can answer (usually meta
> refresh is legacy code)
>
> regards
> deepak
>
> On Thu, Oct 27, 2011 at 11:18 AM, brock <brockmoore@gmail.com> wrote:
>
> >
> > shettyd wrote:
> > >
> > > Hi
> > > Your response that fails is
> > > "<HTML>
> > > <HEAD>
> > > <meta http-equiv="refresh"
> > > content="0;url=/.../..../
> > >
> >
> twbkwbis.P_GenMenu?name=bmenu.P_MainMnu&amp;msg=WELCOME+Welcome,+User+Name,+to+the+Student+Access+System(ASAP)!Oct+27,+201109%3A20+am">
> > > </HEAD>
> > > </HTML>"
> > >
> > > The meta http-equiv="refresh" is a directive that tells the browser to
> > > refresh the page with the url in the url attribute. However Jmeter (is
> > not
> > > a
> > > browser etc etc) wont do it automatically. Therefore your test fails.
> So
> > > you
> > > have to modify your test to be
> > > Http  Request
> > > +Extract Title (default=notfound)
> > > +Extract meta refresh url (default = notfound)
> > > If("${metaurlrefesh}" != "notfound")
> > > +request metaurlrefresh (but ensure you get the path right , unescape
> > > &amp;)
> > > ++Extract Title again , variable name same as the first Extract Title
> so
> > > that you override the value
> > > if("${title}" == "value1")
> > > +Request 1
> > > if("${title}" == "value2")
> > > +Request 2
> > >
> > > etc etc
> > >
> > > regards
> > > deepak
> > >
> >
> > If I request the meta refresh it just goes to the main landing page where
> > the title is Home, the other page is Fee Reminder.
> >
> > Why do some pages not have the full Response and some do?
> >
> >
> >
> > --
> > View this message in context:
> >
> http://jmeter.512774.n5.nabble.com/Regular-Expression-Extrator-doesnt-work-on-all-pages-tp4941121p4943791.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message