jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Erlewein [DATACOM]" <Oliver.Erlew...@datacom.co.nz>
Subject RE: MS InfoPath forms and JMeter
Date Tue, 27 Jan 2009 21:43:41 GMT
Hi Sebb,

1) GHIJK is just a form variable that gets Posted

2) The cookie value ("true") is ignored. It has NO function at all. The data payload is in
the cookie name.

3) How MS accesses these values is a secret to me. Some kind of JS.

4) I've tried regular expressions but they only seem to filter the page content of the response
not the cookies. (Is that the case?)

What I basically need is some way to use Res on the whole response including the header.

Cheers Oliver

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, 27 January 2009 11:38 a.m.
To: JMeter Users List
Subject: Re: MS InfoPath forms and JMeter

On 26/01/2009, Oliver Erlewein [DATACOM] <Oliver.Erlewein@datacom.co.nz> wrote:
> Hi Sebb,
>
>  Maybe an example works better. I know what I need to do but I just don't know how (i.e.
already past the proxy stage).
>
>  Say you have a cookie:
>
>  _ABC_DEF_1234567890 = true

OK.

>  In the following POST there is something like
>
>  GHIJK = 1234567890
>
>  ...where 1234567890 changes for each request.

What is GHIJK? Is it a form variable?

>  Usually you'd just reference the cookie as ${_ABC_DEF_1234567890} but I can't do that
here because the 1234567890 part is not static.

What has the cookie to do with the value of GHIJK?

In your example the cookie value is "true" - how will the cookie value
help with determining the value for the field GHIJK?

> So my question is, how do I access that cookie? i.e. find out what name it has?

How does the page access the cookie?

I.e. how does the browser decide what to post?

You'll need to work this out and use REs etc to extract the relevant data.

>
>  Cheers Oliver
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz@gmail.com]
>
> Sent: Tuesday, 27 January 2009 5:42 a.m.
>  To: JMeter Users List
>  Subject: Re: MS InfoPath forms and JMeter
>
>  On 26/01/2009, Oliver Erlewein [DATACOM] <Oliver.Erlewein@datacom.co.nz> wrote:
>
> > Hi Sebb,
>  >
>  >  Not this time. The problem is (I've just figured this out) that what MS does is
take values from the cookies from the previous request and post them into the POST. Problem
there being that they put the data into the cookie name (!!!). i.e. the cookie name changes
each time you do this.
>
>  This should not prevent the Proxy from recording the session.
>  However, the generated test plan won't be replayable without further work.
>
>  One approach for finding the variable parts of the test plan would be
>  to record two separate sessions and compare the test plans.
>
>  >  Is there a way to manually parse the cookies?
>
>  Depends how the cookies are provided. If the server provides the
>  cookie, then the Cookie Manager is all you need.
>
>  If the browser provides the cookie using Javascript, then you will
>  need to look at how it does this. I.e. examine the HTML and then use a
>  regex to extract the bits it uses to create the cookie.
>
>  >  Or to do something like a regexp mach to the cookie names? Is there a variable
that will dump out all cookies in one string in JMeter?
>
>  No.
>
>  >  Not only does M$ tease us with those b**dy ViewStates. Now they also put data
into cookie names. I feel nauseous.
>
>  >  Cheers Oliver
>  >
>  >
>  >
>
>
>
> ---------------------------------------------------------------------
>  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


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


Mime
View raw message