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

后端 未结 4 720
说谎
说谎 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:35

    1. Please add better schema of your script at least.
    2. Well, in step 11 above you have txtLogin = $(login), txtPassword = $(password), ...
      Referring variable value as $(VAR_NAME) is incorrect, ${VAR_NAME} should be used.
      Can you ensure if that only misspelling in your question - or you have the same in the script?
    3. Use e.g. Debug Sampler / Debug PostProcessor (inserted after both RegEx Extractors applied) to check that values for both viewstate and eventValidation were extracted from your request and your regex queries work correctly.
    4. Look into the Request panel of your 2nd HTTP Request sampler in View Result Tree results to ensure that all the defined params (txtLogin, txtPassword, __VIEWSTATE, __EVENTVALIDATION) with correct values are sent along with request.

提交回复
热议问题