jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Cysne <flaviocy...@gmail.com>
Subject Re: Script fails
Date Mon, 26 Dec 2011 19:12:41 GMT
Did you add a Cache Manager and a Cookie Manager in the script?

2011/12/26 rajan gupta <rajangupta084@gmail.com>

> Hi Flavio
>
> Thanks for response.
> I have JSESSIONID and view state extractors:
>
> I have also added URL rewriting modifier.
>
> Nothing seem to work.
>
> I tried putting ${javax.faces.ViewState}  for parameter value for
> javax.faces.ViewState no luck.
>
> Followed this blog to setup extractors:
>
> http://one-size-doesnt-fit-all.blogspot.com/2010/04/configuring-apache-jmeter-specifically.html
>
> Thanks
> Rajan
>
>
> On Mon, Dec 26, 2011 at 11:06 AM, Flavio Cysne <flaviocysne@gmail.com
> >wrote:
>
> > In JSF applications you have to get the value of javax.faces.ViewState
> > hidden input and in some cases the jsessionid of some resources and use
> > them as variables at POST/GET parameters and URL query string,
> > respectively.
> >
> > 2011/12/26 rajan gupta <rajangupta084@gmail.com>
> >
> > > Hi
> > >
> > > Attached is the script that does following:
> > >
> > > - Goto test setup page
> > > - Get redirected to login page
> > > - Log in
> > > - Fill three check boxes in test setup
> > > - Enter url to go search page
> > > - Enter first and last name to search.
> > > - In search results page click on a new button
> > > - Logout in next page
> > >
> > >
> > > In the attached script at line no 674 is where I fill in parameters to
> > > search page, like last name and first name and submit.
> > >
> > > Script goes just fine till I get to search page (i.e I get redirected
> to
> > > login, login with userid, fill in test setup and go to search page).
> > When I
> > > send in data to search I get session ended message.
> > >
> > > I tried to put JSESSIONID extractor, hardcode things like j_id2 etc but
> > > nothing works.
> > >
> > > When I looked at cokies in httpfox I see something like
> > > Cookie    JSESSIONID=BA46CED20A6A1EAFB385290AFA83D7F7.STGATLAS1;
> > > window_name_cookie=atlasWindow2fbca314-aa7a-44ec-ab35-e9b125e2157b
> > >
> > > Even if I add HTTP cookie manager I do not see window_name_cookie
> getting
> > > added.
> > >
> > > Post request always fails with invalid session.
> > >
> > > What could be the reason.
> > >
> > > Any suggestions.
> > >
> > > Thanks
> > > Rajan
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
> >
>

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