Video stream recorder through JMeter - jmeter

I would like to know is it possible to do video stream record using JMeter. Since i was recording few scenario and got stuck when it comes to start video and play.
Please let me know if i need to do some setting changes/ any links that explains the same.
Thanks In Advance

JMeter's HTTP(S) Test Script Recorder can only record HTTP or HTTPS protocols, it will be able to "record" the video only if it's delivered via HTTP GET request, otherwise JMeter won't recognise the traffic.
Depending on the nature of your video you might be able to use JMeter HLS Plugin to replicate the real user watching the movie network traffic footprint

Related

Dynamic data not recorded by LOADRUNNER or JMeter

In one of my project we are searching for a vehicle number, it has to show the vehicle number exists or not.but i in the devtool i an not able to find the searched vehicle number.
Let's say I have searched for 5555 , 5555 should record as a parameter in JMeter load runner, even developper tools also it's not showing.
How can I handle this in JMeter.
Let's assume you start a transaction just before you submit your form with '5555' in it within the recording of loadrunner (either default sockets recorder or fiddler-based proxy recorder). You submit your form. You stop your transaction. You then complete your recording.
What do those requests between the start and end transaction markers look like?
If browser developer tools don't show the request it means that there is no request, most probably it happens on the client side only hence there is nothing to test with JMeter/Loadrunner there.
Or it might be hidden/filtered/using another protocol.For example this page won't show sent and received requests at the default view because they're happening in a single WebSocket connection and you need to switch to WS tab and then open Messages view:
The above website cannot be recorded with JMeter/Loadrunner, in JMeter you will need to use WebSocket Samplers and in Loadrunner web_webcoket_* functions
You can also consider using a more powerful packet capturing solution like Wireshark which can catch literally everything and look for your payload in the raw network packets. It will allow you to identify the network protocol.
And last but not the list: try recording your scenario in "porno mode" as it might be the case your application has cached the response and it's being returned from i.e. local storage so no actual network request is being made

Jmeter Recording xml issue

I am trying to record a script for web application (https protocol)using jmeter-5.3. The xml file in the view result tree of HTTP(S) Test Script Recorder is capturing all the calls. but once I finished my recording and check the xml file doesn't have the calls(the first 3-4 transaction calls) in the beginning of the script in the xml. why its happening and how can I fix it?
According to JMeter Best Practices you should be using the latest version of JMeter so consider upgrading to JMeter 5.4.3 (or whatever is the latest version which is available at JMeter Downloads page)
Check "Grouping" setting of the HTTP(S) Test Script Recorder, it might be the case you have Store 1st sampler of each group only selected and it can discard important requests:
Make sure to use Recording Template as it generates good and valid recording test plan
Check jmeter.log file for any suspicious entries
Try alternative way of recording a JMeter test i.e. JMeter Chrome Extension and see whether all requests which should be captured are captured.

Blazemeter Chrome Extension - Correlation in Jmeter

I have recorded a script, successfully via Blazemeter Chrome Extension. But now, would like to identify the dynamic values to be correlated. Is there a way to view the recorded responses? It becomes very difficult otherwise.
Regards,
Ajith
I don't think BlazeMeter Chrome extension can store the responses, the options are in:
You can enable requests recording in Chrome Developer Tools and export requests/responses as HAR
You can switch to JMeter's HTTP(S) Test Script Recorder, if you add View Results Tree listener and configure it like
the recording.xml file will contain all request and response data
There is an alternative option of recording a JMeter test: BlazeMeter Proxy Recorder, it has nice feature of exporting recorded tests in "SmartJMX" mode with automatic detection and correlation of the dynamic parameters, see How to Cut Your JMeter Scripting Time by 80% article for more details.

Why the application is throwing error when I execute a search transaction via Jmeter proxy, but not when I manually execute the transaction?

I am facing this problem, and I suspect it is security related.
I am using Jmeter corelation recorder to record my scripts for testing,
I tried recording a search transaction in my application which is a document management system and as soon as I search(after Login) , it throws an error, while when I run the functionality manually it runs well.
Should I try forcing Jmeter to use my local proxy for recording or even playback(I have developed the script with Blazemeter extension as the Jmeter proxy recording was not working) ? The script however fails to playback the search transaction, server returns a 500 error.
I also see that Blazemeter extension has no problem recording the search transaction, which makes me suspect, that probably a security certificate is missing when I try recording via Jmeter proxy.
Correlation recorder doesn't do any magic when it comes to identifying dynamic elements and coming up with proper regular expressions to handle them, you still need to do it manually prior to starting recording.
With regards to JMeter recording failing: yes, you need to import the JMeter's certificate into the browser, this way JMeter will be able to intercept and decrypt HTTPS traffic, see HTTPS recording and certificates chapter of JMeter's documentation on HTTP(S) Test Script Recorder for more details.
If you add View Results Tree listener and see the responses, most probably your login fails somewhere somehow hence search fails due to your virtual user fails to login.
So make sure that
JMeter sends the same network requests as the browser does
all dynamic values are correlated
HTTP Cookie Manager is added to your test plan
given all above criteria are implemented you shouldn't experience any problems.
There is a 3rd-party solution: BlazeMeter Proxy Recorder which seems to be capable of automatically detecting and correlating dynamic parameters, if you're new to this concept - even if it won't resolve your problem fully at least it will give you some clue.

Loadrunner web_custom_request analog in jmeter

I am pretty new to load testing and whole web thing.
Is there any way to implement things that this Vugen Loadrunner code do
web_custom_request("action",
"{URL}",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer={refURL}",
"Snapshot=t57.inf",
"Mode=HTTP",
"Body={PARAMETER}",
LAST);
In jmeter? The {PARAMETER} is just a String.
JMeter's equivalent would be HTTP Request sampler.
JMeter's Variables have a little bit different syntax so the equivalent configuration would be something like:
If you want to have full control there is also HTTP Raw Request sampler which can be installed using JMeter Plugins Manager
Also be aware that you can record your LoadRunner script using JMeter's HTTP(S) Test Script Recorder, just start JMeter's HTTP(S) Test Script Recorder and in LoadRunner's Runtime Settings set JMeter as the proxy:
When you run your LoadRunner test JMeter will capture the requests and save them under Recording Controller
More information: How to Convert LoadRunner Tests to JMeter
To send any kind of HTTP Request you can use HTTP Request Sampler
To start with use this practical example : build-web-test-plan and then move to advanced build-adv-web-test-plan
Parameterization in JMeter and
Correlation in JMeter
Being a performance tester/engineer/architect brings with it a core ability to recognize patterns associated with success and failure
I am pretty new to load testing and whole web thing.
This is a massive antipattern for success in this field. You need your foundation skills vetted and shored up. You really do need training and a mentor for a period of time.
If your management is asking you to perform in this role, then they should also ensure your path to success. If they are unwilling to fund your training and mentoring period, then I would recommend seeking new management who are more interested in your success and the success of the project.

Resources