How to test CAS with jmeter?

前端 未结 4 1872
無奈伤痛
無奈伤痛 2021-01-12 11:23
  • request:

    I send a \"get\" http request, has no parameters;
    path: http://192.168.22.139:8080/KSP

  • response:

    
    
            
4条回答
  •  天涯浪人
    2021-01-12 11:53

    If you're testing CAS login itself I can suggest using JMeter HTTP Proxy server to record login process, catch all values which are being passed, detect those, which are dynamic and deal with them via Regular Expression Extractor, XPath, Beanshell, etc. Post Processors - what you're most comfortable with.

    In case if your application is behind CAS I guess that CAS login simply adds a cookie and your application considers user authenticated basing on it. In this case you can simply store cookies somewhere in CSV file and use them via HTTP Cookie Manager to simulate authenticated users.

提交回复
热议问题