JMeter : How to record HTTPS traffic?

前端 未结 8 1391
别跟我提以往
别跟我提以往 2020-11-27 21:36

I\'m using Apache JMeter 2.3, which now supports \"attempt HTTPS spoofing\" under the Proxy Server element.

I\'ve tried this on several different servers, and have

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 22:17

    What I do is:

    1. Go to my website using my web server's IP-address (i.e. http://2.2.2.2/login.html)
    2. Start the recorder and run through my test case
    3. Stop recording
    4. Replace all values of the IP address with the domain name (i.e. replace 2.2.2.2 with yoursite.com) from the HTTP Request Samplers
    5. Set the protocol to https in the HTTP Request Samplers

    If you have more than a few pages, it's easiest to create an HTTP Request Defaults item, and set your domain name and protocol there.

    FYI, I'm using the latest stable build as of 2010-05-24: Jmeter 2.3.4 r785646.

提交回复
热议问题