Viewstate hardcoded as Form Post Parameter

One of our web apps allows the user to create notes or reminders by launching a new window. The webtest is recording the launch of the new window and the submittion of the note or reminder however, looking at the Form Post Parameters for the submittion, __VIEWSTATE is hardcoded.

I can extract the viewstate from when the form launches and use that, but I am wondering why it is not automatically being grabbed as a hidden field.

Could there be a limitation as to the length of the viewstate as a hidden field For Creating a Note it is over 200K long. For Creating a Reminder it is over 700K.

(Please give any recommended code in VB. )

Thanks in advance.

 



Answer this question

Viewstate hardcoded as Form Post Parameter

  • Kalvis

    Try adding the extract hidden fields extraction rule to the request above the request with the hardcoded viewstate. Set the Context Parameter Name to 1.

    Then change the viewstate parameter to $HIDDEN1.__VIEWSTATE. When you type this into the property grid, you need to type {{$HIDDEN1.__VIEWSTATE}}. The {{.}} tells the parameter to pull from the context.



  • Christian Hecht

    Manually adding the Extract Hidden Fields appears to work fine. Now the question is why did VSTS not get them in the first place


  • exBK

    Lewis,

    Does the request above the one with the hardcoded view state have an ExtractHiddenFields Extraction rule



  • rwbogosian

    This is likely a bug that we have fixed since the release. Check out Josh's paper for more common test problems. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=177957&SiteID=1

  • samssb

    No it doesn't.

    When I click on the button of the main window to create a note, a new window opens. The webtest records 3 requests, the first one contains the VIEWSTATE information but no ExtractHiddenFields extraction rule.

    Could it be that it is due to the new window


  • Viewstate hardcoded as Form Post Parameter