jmeter load testing tutorial for xmpp - jmeter

I am new to jmeter, I have downloaded and install xmpp extension for jmeter, however am not able how can I use it. Can someone share tutorial of load testing or test plan for load test of xmpp server.
Thanks in advance.
EDIT

According to the BlazeMeter Contributes XMPP Testing Capabilities to Open Source JMeter Plugins Project
BlazeMeter has tested and verified that the new JMeter plugin works with the most common XMPP servers, like Smack, ejabberd, Openfire and HipChat.
Are you sure you installed the plugin along with dependencies correctly? The recommended way of installing JMeter Plugins and keeping them up-to-date is using JMeter Plugins Manager:
XMMP Set Plugin page contains example XMPP.jmx test plan.
There is no universal recipe of XMPP/Jabber testing using JMeter as there are different servers which require different configuration. Your best friend is jmeter.log file, it normally contains all the information on the cause of script error. If you are sure that details you provided in XMPP Connection Config and XMMP Sampler are correct but you are not getting the expected result - first thing you should do is looking there. If you will be reporting your problem via JMeter Plugins forum - first thing they will ask will be jmeter.log

Related

Jmeter - extend http test recorder

Is it possible to extend Jmeter http script test recorder?
Would like to edit recorded requests automatically instead of doing it manually.
JMeter is an open source software distributed under Apache License 2.0 so you can add whatever functionality you need.
JMeter source code is available via Git and SVN repositories and you can find the official manual on extending JMeter at How to Write a plugin for JMeter
If you'll create something very useful for others I believe it would be a good idea to contribute it back, send a message to Apache JMeter Developer for further instructions on how you can add your code to JMeter.
If your idea of "automatic editing" is about adding missing automated correlation and you need the functionality right away you can consider and alternative recording service instead of JMeter's built-in proxy, check out How to Cut Your JMeter Scripting Time by 80% guide for details.
Of course it is possible. Look at this one

how to open a webpage using Jmeter

How to resolve the below error in jmeter
1.) Request to open Google.com
2.)
P.S: I have just started learning jmeter.
Which is the best way to learn it, please advice.
The easiest way of creating a JMeter test is just recording it. JMeter comes with HTTP(S) Test Script Recorder which can be used for building a test plan skeleton via capturing browser requests, check out Apache JMeter proxy Step-by-step for more information.
I would recommend attending JMeter Academy, this way you will be able to quickly ramp-up in JMeter in particular and performance testing in general. Performance Testing Guidance for Web Applications book is also very useful
for performance testing greenhorns.
In regards to the possible error, I cannot see the details, just a blind shot: are you behind a corporate proxy/firewall? If yes, you will need to "tell" JMeter the details of this proxy so it could access the Internet (same applies to "recording" approach of tests creation), see Using JMeter behind a proxy chapter for the relevant JMeter configuration.
JMeter is not a browser
See first page of Jmeter
JMeter does not execute the Javascript found in HTML pages. Nor does
it render the HTML pages as a browser does

JMeter adds WWW and .com to URL while recording

Recently i faced some issues while record/playback in Apache JMeter v 3.1.
While recording a site with url(http://10.221.50.121:9500), JMeter adds www and .com to the URL making it as http://www.10.221.50.121.com:9500. How to stop JMeter from adding it (or) remove the www and .com prefixes/suffixes in the recorded URL.
I Would really appreciate if someone helps me in solving this issue.
Thanks in advance.
I cannot reproduce this behaviour using local Tomcat deployment on port 9500 and manager application. I am not also able to found any sign of adding .com substring in JMeter source code so probably something is wrong either with your application or JMeter recording configuration.
Consider following options:
Upgrading to JMeter 3.2. Newer JMeter versions normally come with bug fixes, performance improvements and of course new features.
Preparing JMeter for recording using Templates feature, from JMeter's main menu choose File -> Template -> Recording -> Create
Use Firefox browser for recording (don't install any add-ins). Firefox has separate (not system-wide) proxy configuration, this way you will be sure that nothing else stands between browser and JMeter during recording process.

How to do performance testing using Jmeter with the existing cucumber scenarios?

I am working on a project where the core application needs a harness to send messages which will process the message and feed to a portal web application. I am writing the automated testing for the portal application using cucumber/ruby/capybara.
I have never used Jmeter but through a colleague i just understand the basics of the Jmeter GUI tool. I have been asked me to use Jmeter as harness tool so that I can later extend the functionality to do performance testing as well. How can I do this ? How can i use Jmeter in my automated scripts using cucumber/ruby/selenium or capybara to do my testing ?
I dont want to use GUI as the whole test case should be automated end to end, I have to figure out a way to integrate Jmeter functionality to do test data set up and then run my browser test to check whether the data exists.
i hope my question is clear, ask me if you are not. Hoping to get a solution as i dont think it is a uncommon question.
Note: i have seen the ruby-jmeter gem, i think it does partly what i need but it is actually a DSL to use jmeter in ruby.the problem with that is I have to stick the syntax of gem and have to figure all the options in gem. I have also read a blog that this can be done using Jmeter recording proxy and running the browser tests at the proxy which I am not sure how to do that. here is the link where this is mentioned:
https://groups.google.com/forum/#!topic/cukes/4ZGkf3a234Y
As per my understanding of the problem, please go through the below links
for recording the script using Jmeter:
http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
for integrating selenium in Jmeter:
There are actually 2 ways of achieving this:
exporting all your selenium scripts as *.jar and copying it to /junit folder under /lib folder of Jmeter.
Use JUnit Sampler to execute your test cases:
http://intensetesting.wordpress.com/2013/09/25/integrating-jmeter-with-selenium-code/
use WebDeriver plugin for Jmeter and write your selenium test cases in Jmeter:
http://jmeter-plugins.org/wiki/WebDriverTutorial/
Also you can run Jmeter via command line.

Apache JMeter HTTP(S) Test Script Recorder not generating samples

I am new to JMeter and have been following the steps outlined in usermanual/jmeter_proxy_step_by_step.pdf.
I am using the Recording Controller.
I have tried to connect to http://jmeter.apache.org/ per the steps outlined but no samples are generated.
I stopped the Proxy and confirmed that i could no longer load pages, so I am confident that I am connecting via the proxy.
Why are no samples being generated?
I'm not seeing any errors...
Check following fields in Recorder:
URL Patterns to Include
URL Patterns to Exclude
Content-Type Filter : Include, Exclude
If one of them contains wrong pattern or info, sampler will not be generated as JMeter will consider you exclude it.
Also check you don't have errors in jmeter.log
Are you sure that your browser is configured to use a proxy? The majority of browsers have no proxy for localhost/127.0.0.1 or something like that. It's likely that your accessing your application not through JMeter proxy but directly.
By the way, do you know that there is an extension for Google Chrome which can record JMeter scripts right from browser without having to worry about proxies, certificates, etc?

Resources