jmeternetwork-traffic

Recording traffic using JMeter without using GUI


I want to record HTTPS using JMeter, but I want not to use JMeter GUI, only using command line/background service

I found similar answer but without relevant/accepted/upvoted answer

I want to use JMeter recording as a background service, is it possible? if not what are the alternatives?


Solution

    1. If you trust only to accepted answers then you might be surprised a little bit when you see the number of upvotes on not accepted answers like this one. Given the answer hasn't been flagged/removed there is a chance it's valid and my expectation is that you should try it and upvote if it works and downvote in the opposite case.

    2. If you tried the answer already but it doesn't fit your needs here is another one: any command-line network sniffer tool should be able of capturing the traffic and filtering it to SSL/TLS, for example tcpdump. Once you get .har or .pcap file with the traffic you can either use online [.har]5/[.pcap]6/etc. converter to JMeter or just paste captured request(s) payload(s) into the HTTP Raw Request sampler.