Performance testing on jnlp application - jmeter

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.

Related

How to performance test analysis services

How can I write a performance test using JMeter against analysis services?
I've seen this post regarding the usage of Java libraries but I'm using .NET (classic) C#.
https://superuser.com/questions/1398297/jmeter-connection-with-ssas-cubes-sql-server-analysis-services/1399109#1399109
Thanks,
Java libraries for connecting to OLAP services are not for the application under test, they are for JMeter.
As per JMeter project main page:
The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance.
So the answer is still applicable given your application uses OLAP
Check out The Groovy Templates Cheat Sheet for JMeter article which should help you to get started to use Java/Groovy code and they add OLAP libraries to JMeter Classpath and implement your logic using them.

Is there any reference Document for Integrating Citrus frame work with 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.

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.

Automatic, contained testing of a web app

I have a web application that uses Spring, Jersey (for REST) and Hibernate+PostgreSQL. I'm using REST Assured for the testing framework. I created a simple test case and it works as long as I run Tomcat with my war.
I have a few questions regarding isolation & automatic tests:
I don't want to run tomcat just for the test. I would like to embed an app server.
I want to isolate my DB calls so that I can test it in a clean, predictable way.
Any suggestions, tips, links etc. for these challenges will be awesome.
You could use embedded Jetty as an embedded application server. Check out this and this post for details.
What you most likely want in this case is to run the application with a Spring profile,
in which profile the only thing that changes is the datasource. You would likely want to use an in-memory database like H2 or HSQL. Chek out this and this post.

Need advice on improving testability

I have developed a stack of web Services based on:
Spring ws 2.0 with jaxb2 maven plugin (to ease the pain).
Hibernate.
PostgResql.
We are using the following to test:
Junit test with Mockito.
Spring test for Dao & service layer.
The new Spring ws test & Smock api.
SoapUi Api for testing with their maven plugin.
We have TracWiki for the wiki side.
All is fully automated in a maven build with Hudson, even the deployment of the webapp with cargo
on distant server.
We have 5 virtual servers on a single machine on Debian (using vserver).
We don't have a single performance test and we don't have any webapp tools to monitor.
What do you recommend to go a step further?
I'm really looking for new ways and/or tools to improve everything.
Hey.
Incorporate Sonar into your builds. You will get lots of informations about your code.
I don't see you mentioning any code coverage tools. While coverage isn't everything, it can help finding the parts of your code which aren't covered by the tests (or perhaps even dead).

Resources