How to use JMeter for load testing ASP.net web applications implementing viewstate

后端 未结 4 748
说谎
说谎 2021-02-04 21:08

I\'m a .net developer having no prior experience in JMeter/Stress testing. I\'m trying to load test the ASP.net website that I had developed using JMeter. The reason for using J

4条回答
  •  长发绾君心
    2021-02-04 21:38

    I used CSS/JQuery Extractor and it worked for me. With regex extractor for view state {viewState} variable was getting passed and got view state corrupt error message.

    parameters to be set in CSS/JQuery extractor are :-

    Reference Name: viewState

    CSS/JQuery Expression: input[id=__VIEWSTATE]

    Attribute: value

    The steps i followed are :-

    1. First do recording of login process.
    2. Drag the required pages in thread group.
    3. In get request of login page add two CSS/JQuery extractor for view state and event validation each.
    4. In post request of login page add body parameters as follows and run the batch.

      Name: - Value

      txtLogin - ${login}

      txtPassword - ${password}

      __VIEWSTATE - ${viewState}

      __EVENTVALIDATION - ${eventValidation}

提交回复
热议问题