You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Apache Wiki <wi...@apache.org> on 2008/10/15 14:16:01 UTC

[Jakarta-jmeter Wiki] Update of "JMeterTesting/ASPNETViewState" by RahiR

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-jmeter Wiki" for change notification.

The following page has been changed by RahiR:
http://wiki.apache.org/jakarta-jmeter/JMeterTesting/ASPNETViewState

New page:
Describe JMeterTesting/ASPNETViewState here.


Testing ASP.NET Web pages will require two hidden fields (__VIEWSTATE and __EVENTVALIDATION) to be passed for subsequent requests to a web page once the hidden fields have been set in the body. This can be achieved by creating two post Processor elements of the type 'Regular Expression Extractor' and then setting the details of the Regular Expressions as follows:

Response Field to check: Body
Reference Name: VIEWSTATE
Regular Expression: id=\"__VIEWSTATE\" value=\"([\\w/-_].+)\"
Template: $0$
Match No. : 1
Default Value: NOT FOUND


Response Field to check: Body
Reference Name: EVENTVALIDATION
Regular Expression: id=\"__EVENTVALIDATION\" value=\"([\\w/-_].+)\"
Template: $0$
Match No. : 1
Default Value: NOT FOUND

Then in order to ensure these extracted values are passed in subsequent HTTP requests, for each request specify the following to be the Send Parameters for the Request:

Name: __VIEWSTATE
Value: ${VIEWSTATE_g1}

Name: __EVENTVALIDATION
Value: ${EVENTVALIDATION_g1}

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