asp.net login testing with jmeter

前端 未结 2 1965
挽巷
挽巷 2021-01-24 17:56

I am a newbie in jmeter tool. I want to test login to an asp.net website. But I was not successful after 2 days of search through the internet.

I am listing below the st

相关标签:
2条回答
  • 2021-01-24 18:14

    We also had these kind of problems getting a login page to work in jmeter. Eventually we got it to work. Important to note is:

    • You have to create two HTTP request samplers for the login page, First one that uses the GET Method. So that the viewstate can be captured by the regular expression extractors, then a 2nd one that uses the POST method that does the login.
    • Use firebug or any other capture tool to capture the Post of your login page, and make sure to add all the controls that post values. If you forget one parameter then your page will give an error. Also the empty ___VIEWSTATE parameter was required for us. See screenshot for our Post request
    • For some pages we also had to add the parameter __VIEWSTATEENCRYPTED with an empty value

    screenshot of the login http post request

    0 讨论(0)
  • 2021-01-24 18:21

    Try recording with Jmeter Proxy Server:

    • http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf

    Then add all elemnts you described to make what's needed dynamic, except for Http Url rewriting Modifier.

    0 讨论(0)
提交回复
热议问题