is it possible to use Jmeter for testing OPC ua? - jmeter

I have a tests for mqtt in jmeter. i want to use jmeter for sending opc ua requests using jmeter.
is it possible to use Jmeter for testing OPC ua?
can we send opc client requests via jmeter?

Out of the box JMeter doesn't support OPC UA protocol, also there are no JMeter Plugins offering such functionality (at least I'm not aware of any) so you will either have to find a client library like Java Based OPC UA Client SDK or OPC UA Java Stack and program the requests you need to send using JSR223 Samplers and Groovy language (valid Java code in the majority of cases will be valid Groovy code, or if you prefer "pure" Java you can consider developing your own JMeter Plugin) or do some reverse engineering of OPC UA protocol if above SDKs are not fulfilling your requirements.

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.

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.

How can i get messages from Signalr using Jmeter?

I want to automate REST API using Jmeter. My requirement is trigger and validate the signals generated from the field.Messages from the field like "communication lost" need to check whether this message reached API or not.These messages are developed using "signalr".Can anyone tell me how can i get the messages from signalr in Jmeter.
As per SignalR main page:
ASP.NET SignalR is a new library for ASP.NET developers that makes developing real-time web functionality easy. SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers.
So my expectation is that you can use WebSocket Sampler plugin in order to test this functionality. The plugin can be installed using JMeter Plugins Manager, check out WebSocket Testing With Apache JMeter article for comprehensive information on installation, configuration and usage of the plugin for WebSockets load testing.

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.

Can we Record Tuxedo with JMeter

we have an application (client/server) which uses a GUI to communicates to the Tuxedo server. it uses TCP, FTP protocols for communication. can we use JMeter or any other open source tool for that?
JMeter does support both FTP and TCP protocol via FTP Request and TCP Sampler elements provided, so the answer is "yes", you can use JMeter.
You can also find How to Send Control Characters Using the JMeter TCP Sampler guide useful as it's rather common problem and frequently asked question.
However I doubt that JMeter can record TCP-based traffic types. You can try pointing your client application to server via JMeter HTTP Proxy server to see what requests it'll catch.

Resources