Can i change/use different IP,s in jmeter while using/testing hls streaming? - jmeter

I am using jmeter for hls streaming load testing. How can I use different IP's for testing hls streaming.

If you go for "normal" HTTP Request sampler for testing your HLS server you can specify source IP address(es) in the relevant field of the "Advanced" tab
Check out How to Load Test HTTP Live Media Streaming (HLS) with JMeter article for more information on how to configure JMeter for HLS testing using HTTP Request samplers.

Related

Apache JMeter Test Script Recorder gRPC HTTP/2 support

I want to load test a web application server which communicates through gRPC (which uses HTTP/2 for transport) with the clients.
It seems that Apache JMeter extended by the plugin JMeter gRPC Plugin and JMeter gRPC Request sampler would be perfect for this.
Among other things JMeter provides a Test Script Recorder which helps quickly generate scenarios by acting as a HTTP proxy between the client and the server.
Question 1: Is it possible to use the JMeter Recorder for recording the communication through the gRPC protocol?
Question 2: Is it possible to use the JMeter Recorder for recording the communication through the underlying HTTP/2 protocol?
I have tried already the JMeter Recorder to record the gRPC communication without success :-( Maybe caused by wrong configuration of the recorder?
No, at least not with JMeter 5.5
No, as of JMeter 5.5 the HTTP(S) Test Script Recorder doesn't support HTTP/2. Neither it does support .proto files so even if you record the raw packets you won't be able to decode them into anything meaningful
So I would recommend using a sniffer tool like Wireshark for capturing the packets between client and the system under test and then replicating the same using JMeter's GRPC sampler.

How to load test video stream with jmeter

I am using Red5 server to stream videos in my application. I have jmeter for load testing and blazemeter chrome extension for recording scripts.
Somehow the media files(the video chunks) are not getting recorded into the jmx file. Is there a way to record these files using blazemeter or any other tool?
Once recorded how can we use the script to perform load test in jmeter?
I don't think you should be recording this type of traffic as it is something you won't be able to properly replay, moreover JMeter (and BlazeMeter) recorder is capturing only HTTP requests
First of all you need to identify which protocol is being used for video transmission using your browser developer tools or a sniffer tool like Wireshark, once you figure that out you should mimic browser traffic via:
WebSocket Samplers - if your server uses WebSocket
HLS Plugin - if your server uses HTTP Live Streaming
etc.

Offline PCAP to Jmeter JMX

Dears,
Any Idea of an offline replacement to https://converter.blazemeter.com/ to convert a PCAP to JMeter JMX.
As the PCAP contains sensitive data that we can not upload online.
I need an inhouse tool
Thanks
I can think of the following options:
You can use tcprewrite tool to replace the "sensitive" data with the dummy data in your .pcap file and use the aforementioned converter. Once you get the .jmx file you can replace the dummy data back with the sensitive data
If you want fully offline solution you can consider using tcpreplay application which can replay .pcap files via JMeter Proxy Server which will capture HTTP requests and create the relevant HTTP Request samplers.
You can open the .pcap file via Wireshark, copy raw TCP request data and put it to HTTP Raw Request sampler.

Performance testing for Desktop application who uses UDP

Looking for tool to do performance testing for desktop application.
I was trying to use Jmeter for performance testing but since my application uses UDP protocol so i think i cannot use jmeter record and replay functionality.
How can i record and replay desktop application which uses UDP using JMeter?
You need to add UDP Request plugin
This plugin adds UDP protocol support to JMeter. With this plugin you can load test DNS, NTP, TFTP, Boot servers
JMeter can record and replay only HTTP and HTTPS traffic (both are using TCP protocol as underlying transport) with its HTTP(S) Test Script Recorder therefore you will not be able to record the traffic using JMeter.
So I would recommend capturing raw UDP datagrams using a sniffer tool like Wireshark and building the JMeter test plan by manually adding and populating appropriate UDP Sampler requests. Check out Load Testing UDP - The Ultimate Guide article for detailed information.

Unable to record multiple protocols in JMeter

I have application which has multiple protocols ex. HTTP, SMTP,FTP, When i am trying to Record this application for load testing using JMeter, JMeter captured HTTP requests only, not FTP, SMTP, JMeter does not record multiple protocols?
is there any workaround to add all protocols in load testing,
Thanks in Advance
As of now (JMeter 5.0) JMeter is capable of capturing only HTTP or HTTPS traffic via its HTTP(S) Test Script Recorder (and actually it's reflected in its name)
Given the nature of the FTP and SMTP protocols it's better to mimic the required load using FTP Request and SMTP Sampler correspondingly.
If you have to do the recording you can consider capturing the underlying TCP traffic using low-level sniffing tool like Wireshark and replay it with TCP Sampler or HTTP Raw Request sampler but it is even more complex than going for manual creation of the FTP and SMTP requests as you will have to deal with "raw" TCP traffic which is not that pretty and human-readable.
Alternatively you can consider LoadRunner which is theoretically capable of recording both FTP and SMTP protocols and free for up to 50 virtual users

Resources