You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Kyle Schmitt <ky...@gmail.com> on 2006/12/07 18:58:47 UTC

Viewstates (Possibly OT)

So I've got jmeter successfully grabbing the viewstate for each and
every page that's popped in my test, and I've even got the
eventvalidation variable going too.

If I leave the hardcoded viewstate strings in the test, the test runs
fine over and over as long as the data on the page is the same....
_But_ when I replace the hardcoded strings in my test with the
viewstate my regex grabs, the pages falter and throw the infamous dot
net "Server Error" page because the viewstate is wrong.

I'm just not sure why this is happening.  Is there something special
you have to do for testing viewstate dependent sites?

Thanks,
            Kyle

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


Re: Viewstates (Possibly OT)

Posted by Kyle Schmitt <ky...@gmail.com>.
Sadly no, none of the sites I'm testing can be publicly accessed.

What I can find about the plans and sites that DO work vs those that
don't is that it depends on the site (yes I'm on several
testing-projects at once).  For all, the viewstate and eventvalidation
must be included, either recorded or regex extracted.  If it's regex
extracted, it has to be encoded.  Other than that there is no pattern
that always works for me yet.

Thanks for all the help though.

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


Re: Viewstates (Possibly OT)

Posted by sebb <se...@gmail.com>.
Have you been able to determine the difference between the plans that
work and the ones that don't? Perhaps start with a working plan and
gradually replace fixed strings with variables.

Are there any public sites that can be used to test against?

On 08/12/06, Kyle Schmitt <ky...@gmail.com> wrote:
> Humm.  I'm beginning to think viewstates are a sordid business.
>
> After much trial and error a few things seem to help the situation,
> that should have seemed obvious.. like I need to check the encode box
> when I pass the viewstate and eventvalidation variables back.  Still
> it doesn't solve everything.
>
> I'd be interested in reading other tales of people testing sites that
> depended on viewstate using jmeter.
>
> --Kyle
>
> ---------------------------------------------------------------------
> 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


Re: Viewstates (Possibly OT)

Posted by Kyle Schmitt <ky...@gmail.com>.
Humm.  I'm beginning to think viewstates are a sordid business.

After much trial and error a few things seem to help the situation,
that should have seemed obvious.. like I need to check the encode box
when I pass the viewstate and eventvalidation variables back.  Still
it doesn't solve everything.

I'd be interested in reading other tales of people testing sites that
depended on viewstate using jmeter.

--Kyle

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


Re: Viewstates (Possibly OT)

Posted by mahesh kumar <pm...@gmail.com>.
Hi
First we have to check whether the viewstate is captured through REG is
correct or not.Sometimes eventhough if the viewstate is capturing from the
previous is correct it may not be equal to the present
viewstate.sometimesit may be equal to viewstate of prevoius of
previous
page.Take that viewstate and place that one in present URl.May it will work
now...check it once...

Mahesh

On 12/7/06, sebb <se...@gmail.com> wrote:
>
> Maybe the viewstate undergoes some manipulation before it is returned
> to the server?
>
> For the test that works, it would be worth checking that the extracted
> viewstate really is exactly the same as the one sent to the server...
>
> S.
> On 07/12/06, Kyle Schmitt <ky...@gmail.com> wrote:
> > So I've got jmeter successfully grabbing the viewstate for each and
> > every page that's popped in my test, and I've even got the
> > eventvalidation variable going too.
> >
> > If I leave the hardcoded viewstate strings in the test, the test runs
> > fine over and over as long as the data on the page is the same....
> > _But_ when I replace the hardcoded strings in my test with the
> > viewstate my regex grabs, the pages falter and throw the infamous dot
> > net "Server Error" page because the viewstate is wrong.
> >
> > I'm just not sure why this is happening.  Is there something special
> > you have to do for testing viewstate dependent sites?
> >
> > Thanks,
> >            Kyle
> >
> > ---------------------------------------------------------------------
> > 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
>
>

Re: Viewstates (Possibly OT)

Posted by sebb <se...@gmail.com>.
Maybe the viewstate undergoes some manipulation before it is returned
to the server?

For the test that works, it would be worth checking that the extracted
viewstate really is exactly the same as the one sent to the server...

S.
On 07/12/06, Kyle Schmitt <ky...@gmail.com> wrote:
> So I've got jmeter successfully grabbing the viewstate for each and
> every page that's popped in my test, and I've even got the
> eventvalidation variable going too.
>
> If I leave the hardcoded viewstate strings in the test, the test runs
> fine over and over as long as the data on the page is the same....
> _But_ when I replace the hardcoded strings in my test with the
> viewstate my regex grabs, the pages falter and throw the infamous dot
> net "Server Error" page because the viewstate is wrong.
>
> I'm just not sure why this is happening.  Is there something special
> you have to do for testing viewstate dependent sites?
>
> Thanks,
>            Kyle
>
> ---------------------------------------------------------------------
> 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