How to load test video stream with jmeter - 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.

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.

Recording using CEGID application in JMeter 5.2

Need to record the application that is on CEGID Retail application.
Script have 8 transactions and each transaction have 100 URL that is useful in script.
We can capture request in fiddler.
can we record using Jmeter otherwise need to take requests from fiddler and put in Jmeter manually that will consume more time.
Please suggest a better approach for this.
enter image description here
after converting fiddler session to .har and .har to .jmx request body is getting removed.
Please suggest on this.
Fiddler recording you can export the captured requests in HAR format like File -> Export Sessions -> HTTP Archive 1.1 and once done you can convert them into JMeter .jmx script using online HAR to JMX conversion tool
is there any setting need to change?
If the application is using HTTP and/or HTTP(S) protocols you should be able to normally record it using JMeter's HTTP(S) Test Script Recorder, just
start JMeter's HTTP(S) Test Script Recorder proxy
import JMeter's SSL certificate into your browser, the file is called ApacheJMeterTemporaryRootCA.crt and it's generated in "bin" folder of your JMeter installation
configure your browser to use JMeter as the proxy
execute your test scenario steps in browser - JMeter will store the relevant HTTP Request samplers under the Recording Controller
See Recording Tests user manual chapter for more details
If you already have a Fiddler recording you can export the captured requests in HAR format like File -> Export Sessions -> HTTP Archive 1.1 and once done you can convert them into JMeter .jmx script using online HAR to JMX conversion tool

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

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.

What is the difference in testing file upload and download with FTP request and HTTP requests in Jmeter

which is the actual way to test performance of upload and download files using JMeter tool ?
HTTP and FTP protocol are totally different, if your application supports both - you need to load test both methods as they are handled differently on the server side. Your load test needs to simulate what real users are/will be doing so check your application requirements prior to building the test plan.
For simulating HTTP uploads and downloads you need to use HTTP Request sampler
For simulating FTP uploads and downloads - go for FTP Request sampler. FTP protocol provides some more ways of files and folders manipulation, i.e. moving, deleting, listing contents, etc. so you may also need to perform these operations using Apache Commons Net libraries and JSR223 Sampler, check out Load Testing FTP and SFTP Servers Using JMeter guide for comprehensive explanation and example code snippets

Desktop based application recording in jmeter

I have a desktop based(.exe) application used for trading of equities.
1.Developed in VB uses TCP/IP.
2.Uses a database server which is an another server which the exe sends requests on.
3.I want to get the entire response using jmeter for 50 users at a time.
I wanted to record the responses for the transactions.I have worked with web applications where we create Http proxy server and start it and the recording happenes from browser but in this case i cant use browser.
Please guide me how to record the responses in jmeter with .exe applications.
Thanks and Regards,
Kumar
JMeter HTTP(S) Test Script Recorder is capable of recording only HTTP or HTTPS traffic so if following conditions are met:
Your .exe application talks to server using HTTP
Your .exe application can be configured to use HTTP proxy or respects Windows global HTTP Proxy settings from registry (or configured in Internet Explorer)
the answer is "yes", you can use JMeter to record the traffic. See Load Testing Mobile Apps. But Made Easy. guide for details on how to do it.
If one of above conditions cannot be satisfied there are following options available:
If you still want to use JMeter there is a possibility to use a sniffer tool like Wireshark to capture requests and manually construct them using JMeter HTTP Request or TCP Sampler.
Consider switching to Grinder tool which offers TCP Proxy
Hope this helps.

Resources