Is there any reference Document for Integrating Citrus frame work with Jmeter - jmeter

Hi I want to do Load test for JMS MQ using Citrus frame work integrating with Jmeter for performance test.Is there any document please refer me.
Thank You.

Why don't you test your MQ Series directlty with JMeter without using Citrus Framework? JMeter Plugins are available for this use case (Jmeter to connect to IBM MQ).

List item
1.Initially, We have to run JMS loadtest script in jmeter and if it works fine we have to save that Script in .JMX (example:jmsloadtest.jmx)
2.By invoking that .jmx file using java we can execute load test without using Jmeter.
for referenceinvoking .jmx file with java
3.Now we can use this class as a function in citrus frame work.for that have follow custom functions in citrus framework document.
Thank you.

Related

Jmeter project documentation

We have been using the Jmeter for the API's functional and performance test activities.
Is there a possibility to generate the documentation (similar java docs, API docs) for the JMX projects that we have been developing?
Each JMeter's Test Element has "Comments" section which can be used for explanation of what this element is for:
It's possible to create a JMeter Test Plan using Java language and JMeter API, see JMeter Command Line Overview: 5 Ways To Launch a Test for more details. There is also jmeter-from-code sample project you can use as a reference, normal JavaDoc will be available out of the box
There is JMeter DSL project which provides easy and handy way of creating a JMeter test plan, however it doesn't fully support all the features. For basic test plans it should be faster and easier than point 2
There is Taurus tool which provides possibility to create JMeter scripts in a declarative manner using YAML and YAML naturally supports comments

Performance test of JAVA RMI based application using Jmeter

Could you please suggest if it is possible to use Jmeter for performance testing of JAVA RMI based application. This application is a external product hence we do not have source code or classes available.
can you suggest a way to test this application.
Thanks
Out of the box there is no way, you will need to write some code using one of the following elements:
JSR223 Sampler
Java Request
JUnit Request
Given I don't know anything about RMI methods exposed by your application I cannot suggest any sample code, use the following reference material:
Getting Started Using Java™ RMI
Use JMeter to Load Test RMI (Remote Method Invocation) Server
NB. JMeter uses RMI for communication between master and remote slaves so you can take a look at RemoteJMeterEngineImpl class to get an idea regarding how to implement your test scenario.

Performance testing on jnlp application

We have a web application from where we launch a jnlp application. This jnlp application is developed in Java and is used for image viewing. This application interacts with server.
We need to do a performance testing of this application. I tried with JMeter, it records properly the actions of web application but unable to record anything for jnlp application.
Has someone done the performance testing of jnlp application using Jmeter ? If Jmeter does not support it, is there any other tool which I can use to do the performance testing on it.
Any help is appreciated.
Thanks.
See this answer on how to record with JMeter:
https://stackoverflow.com/a/49569079/460802
How to record a JNLP/ Java Web Start application with JMeter
Then you will need a plugin that transforms your Requests/Responses (binary) to a readable (XML) format so that you can variabilize, asserts ... ie , make the test realistic:
https://www.ubik-ingenierie.com/blog/load-testing-java-serialization-applications-with-jmeter/
You'll need this JMeter plugin:
JavaSerialization plugin for JMeter
Disclaimer:
We develop this commercial (not free) plugin.

Spring load testing

I've implemented a testing unit using spring (mock mvc), and I'm looking for a tool to run this unit in many threads/processes (so it will act as load testing for my server). I've seen applications like the grinder and jmeter but I don't want to re-write the entire unit, but just to use the existing one. Any ideas?
JMeter is able to execute existing JUnit tests via JUnit Request sampler, all you need to do is to drop jar(s) with your test along with dependencies somewhere in JMeter classpath and restart JMeter. Once done you'll be able to see your classes and methods in JUnit Request sampler dropdown and execute them in multithreaded manner.
See How to Use JUnit With JMeter guide for more detailed instructions and explanations.

Publishing messages on HornetQ using JMeter

I'm developing a project wich is using HornetQ, and I want to publish some messages on it to execute a load test using JMeter. Does anyone here ever tried anything like it?
How can I configure JMeter to publish messages on HornetQ?
I already copied all the jars to the JMeter lib and filled all the fields on the "JMS Publisher Sampler". How can I proceed? Any example or JMX file which I could use as an example?
Add HornetQ JARs to jmeter/lib folder
Then for configuration of JMS Sampler use this:
http://docs.jboss.org/hornetq/2.2.5.Final/user-manual/en/html/using-jms.html

Resources