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

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?

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.

jmeter load testing tutorial for xmpp

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

Issue with CAS login

I am new to jmeter and trying to login in one of our client application which uses CAS system, but not able to succeed. I have also applied regular expression extractor for "lt", but not works.
each time it gives this error:
ticket 'LT-9528-aTBBoBdZU23g6khtS9I0b5Lq3o2VUQ' not recognized
It looks like you're using hard-coded login ticked (recorded one). You need to perform so-called correlation - the process of identifying dynamic parameters, extracting and re-using them.
See How to Load Test CSRF-Protected Web Sites to get an idea regarding approaches.
Also it worth checking Apache JMeter page of Jasig wiki, it seems to contain some JMeter scripts which you can use as a reference.

Resources