I've used jmeter on a ton of .Net webapps for the company I work for.

Your two biggest hurdles are viewstate and eventvalidation.  You could
argue endlessly about the efficacy and validity of those two things,
but I digress.  Many .Net webapps use them.

Add the cookie manager, do all the other setup you normally do for
testing a webapp.
    Then....
Add two regular expression extractors to the root of your test plan:
one for viewstate and one for eventvalidation.  After you've recorded,
browse through your samplers and replace the value of the __VIEWSTATE
and __EVENTVALIDATION parameters with references to your extractors,
and click the "Encode" checkbox next to it.


reference name: viewstate
regular expression : <input type="hidden" name="__VIEWSTATE"
id="__VIEWSTATE" value="(.*?)" />
template: $1$
match no: 1
default value: FALSE

reference name: eventvalidation
regular expression : <input type="hidden" name="__EVENTVALIDATION"
id="__EVENTVALIDATION" value="(.*?)" />
template: $1$
match no: 1
default value: FALSE


browse through looking for things like:
|             Name            |                        Value            |
|__VIEWSTATE           |Kp6ueQjpFhkc2pJIyjUbCFhUx |
|__EVENTVALIDATION|/Ww78D5pX/GWXY7WWus3p |

and change them to
|             Name            |                        Value            |
|__VIEWSTATE           |${viewstate}                           |
|__EVENTVALIDATION|${eventvalidation}                    |



--Kyle

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to