Jmeter project documentation - jmeter

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

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.

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.

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.

Is there a Web-UI out there for creating test's using htmlunit?

I want to be able to create the test's inside the Web-UI instead of writing them in code. Also i want to automate the tests and have extensive reporting.
I am restricted to htmlunit because the websites i am testing are testable with htmlunit.
You can define the test steps in other ways, see WebDriver recorder, WebTest and Wetator.
There is Spring MVC Test HtmlUnit also.

JSR223 Post Processor: ClassNotFoundException: org.apache.bsf.engines.java.JavaEngine

I'm trying to use a JSR223 post processor in jmeter 2.11 with some java code and I keep getting this error:
org.apache.bsf.BSFManager:Exception:java.lang.ClassNotFoundException:org.apache.bsf.engines.java.JavaEngine
I've checked the bsf/bsh jar files, not sure what else I need to do to make this work. I've read that groovy is recommended but I'd really like this to work with java.
As per the very first lines from BSF Sampler documentation:
See the Apache Bean Scripting Framework website for details of the languages supported. You may need to download the appropriate jars for the language; they should be put in the JMeter lib directory.
And at the same place:
The BSF API has been largely superseded by JSR-223, which is included in Java 1.6 onwards. Most scripting languages now include support for JSR-223; please use the JSR223 Sampler instead. The BSF Sampler should only be needed for supporting legacy languages/test scripts.
So I would recommend considering the following (in the order from worst to best performance provided)
Beanshell Sampler (if your Java code is doing something "light")
JSR223 Sampler + groovy language - for "heavy" operations (again you'll need to have groovy jar in your JMeter CLASSPATH)
Write your own implementation of Java Request Sampler
Both Beanshell and Groovy support Java syntax with some limitations which can be easily worked around.
See Beanshell vs JSR223 vs Java JMeter Scripting: The Performance-Off You've Been Waiting For! guide which might help you to make right selection.

Resources