Unable to record application running on local host in Internet explorer using JMeter Test script recorder - jmeter

I am trying to do record a test script using JMeter (version 4) Test Script Recorder for performance testing of my application. After configuring the proxy, The recorder is not recording my application URL running on localhost in Internet Explorer (IE 9). But other URLs are getting recorded in JMeter. I tried to record my application using Chrome which is working fine.I have unchecked the Bypass proxy server for local address in Proxy settings.

I recommend you to use Mozilla Firefox to record your script because Firefox allows you to manage proxies and certificates independently of system settings.
Get more information about recording:
Apache JMeter HTTP(S) Test Script Recorder
JMeter Recording Guide

Make sure to check Use the same proxy server for all protocols box in the "Advanced" tab of the Internet Explorer proxy settings and there are no localhost, 127.0.0.1, etc. in the "Exceptions"
Some applications cannot route traffic to a local proxy server so you may need to add a loopback adapter
If you're recording an application which operates over HTTPS protocol you will need to install JMeter's self-signed certificate into Trusted Root Certification Authorities:
It doesn't really matter which browser you're using for recording as applications mostly differentiate the browsers basing on User-Agent header so you can record using whatever browser and then change User-Agent string in the HTTP Header Manager to IE9
According to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.0 (or whatever is the latest version available at JMeter Downloads page)

Related

JMETER recording issue with VPN

We are trying to record UI based Application in JMETER for the public network and made proxy settings accordingly in Firefox browse with valid certificate.
But with VPN, we could not be able to record that UI application and we are getting below error.
we made changes to proxy configuration too as suggested by our infra team in Firefox browser and in JMeter tool, but we could not able to record at all public network UI application.
There should not be any issue with recording the applications which are being the VPN because Java relies on operating system routing mechanisms in order to find the best way to the system under test.
Just make sure to start the HTTP(S) Test Script Recorder after connecting to the VPN and don't forget to import JMeter's certificate into your browser.
In case of any problems check what's in jmeter.log file - it should contain the failure reason.
Also be aware of an alternative way of recording a JMeter test: JMeter Chrome Extension, in that case you won't have to worry about proxies, certificates and VPNs.

Issue with IE recording in Jmeter

I tried recording .net application with Jmeter. I kept getting 'Page can't be found' error during recording. I changed the IE proxy server setting and configured the port number.
Not sure why it's not able to capture anything within the page.
Prepare JMeter for recording, the fastest and the easiest way is using JMeter Templates feature
From JMeter's main menu choose File -> Templates -> Recording and click "Create"
Start the HTTP(S) Test Script Recorder:
Prepare Internet Explorer for recording:
Configure IE to use JMeter as the proxy:
Install JMeter's MITM certificate into IE:
If your machine uses corporate proxy for Internet access - configure JMeter to use this proxy
That's it, you should be able to record now.

Unable to test mobile application using Test Script Recorder

I am trying to test mobile application using jmeter Test Script Recorder but When i set proxy in my mobile and then I tried to captured, It shows all the time "No internet connection". I have set correct ip and port number.
Can anyone help me ?
There is more than one mobile operating system and troubleshooting options differ depending on vendor and OS.
Double check that you actually started HTTP(S) Test Script Recorder and there are no modal dialogs with warnings/errors and nothing suspicious in jmeter.log file
JMeter itself must have internet connectivity, if your machine is behind the corporate proxy - you will need to apply some extra configuration
Check if you can record anything using web browser on mobile device. Start with HTTP-based simple site i.e. http://example.com
If your application is using HTTPS protocol you will need to install JMeter's self-signed certificate onto the device, the file is called ApacheJMeterTemporaryRootCA.crt and it's being generated in "bin" folder of your JMeter installation when you start HTTP(S) Test Script Recorder and you need to transfer it to your device somehow (bluetooth, email, whatever) and follow your OS dialog to get it installed and trusted
For certain Android versions you might need to use a 3rd-party tool like ProxyDroid in order to proxy HTTPS traffic
For iOS devices you will need to "tell" that you trust JMeter's certificate under Settings -> General -> About -> Certificate Trust Settings
See the following materials for more information:
HTTP(S) Test Script Recorder user manual entry (pay attention to HTTPS recording and certificates chapter)
Apache JMeter proxy Step-by-step
You can consider using a cloud-based proxy service, in this case you will not have to worry about certificates generation and installation and will have confidence that the device will have Internet connectivity. As a bonus you will have possibility to export recorded script in "SmartJMX" mode with automatic detection and correlation of any dynamic parameters.

JMeter: Recording tests without proxy server

At the place where I am working, proxy settings are not allowed. Is there any way by which I could record HTTP sessions and use them in JMeter during replay?
There is a Google Chrome Extension which allows HTTP Requests and associated cookies, headers, think times, etc. recording right from browser without having to worry about proxies and SSL certificates.
Another option is using BadBoy software which can export scripts to JMeter.
However there should not be any problem to launch a JMeter proxy on your workstation as it doesn't broadcast anything hence shouldn't be visible.
Firstly which browser you are using, if using chrome use BlazeMeter chrome extension, download it from google it is free
Secondly if using forefox use the configure the recording controller in your test plan and then use HTTP test script recorder it will work

JMeter : How to record HTTPS traffic?

I'm using Apache JMeter 2.3, which now supports "attempt HTTPS spoofing" under the Proxy Server element.
I've tried this on several different servers, and have had no success.
Has anyone been able to successfully record from an HTTPS source with this setting?
Or barring successfully recording, can anyone share a work-around? When available, I simply have HTTPS turned off at the server level, but this is not always feasible. Thoughts?
Starting from JMeter 3.0 default port for the HTTP(S) Test Script Recorder is 8888
The easiest way to configure recording is using JMeter Templates feature. From JMeter's main menu select:
File -> Templates -> Recording -> Create
Don't forget to start the recorder :
In JMeter < 4.0, Expand "Workbench", if >= 4.0, ignore this step
Select "HTTP(S) Test Script Recorder"
Click "Start" button
You will see a message regarding Root CA Certificate. Click OK:
it is OK, it informs you JMeter has created a Root Certificate Authority that you need to import in your browser to be able to record correctly HTTPS traffic.
To Import this Root CA certificate in Firefox (it is located in jmeter/bin folder) for example:
Configure browser to use JMeter as proxy:
It is now Ok.
You can navigate to your application, samplers will be created under "Recording Controller" which is under "Thread Group" element
While the JMeter proxy already has the ability to record HTTPS requests, a Chrome Extension that creates JMeter script came out recently:
https://chrome.google.com/webstore/detail/blazemeter-the-load-testi/mbopgmdnpcbohhpnfglgohlbhfongabi?hl=en
It uses a BlazeMeter as the middleman (a commercial JMeter in the cloud service) but you can use their free service forever and still use the plugin to record a JMX script and download it locally to your own machine even if you never use any of the paid plans.
What I do is:
Go to my website using my web server's IP-address (i.e. http://2.2.2.2/login.html)
Start the recorder and run through my test case
Stop recording
Replace all values of the IP address with the domain name (i.e. replace 2.2.2.2 with yoursite.com) from the HTTP Request Samplers
Set the protocol to https in the HTTP Request Samplers
If you have more than a few pages, it's easiest to create an HTTP Request Defaults item, and set your domain name and protocol there.
FYI, I'm using the latest stable build as of 2010-05-24: Jmeter 2.3.4 r785646.
The newest version of Jmeter (2.4) now supports HTTPS recording. Rejoice!
More details:
http://wiki.apache.org/jmeter/JMeterFAQ#Can_JMeter_record_HTTPS_requests_using_the_recording_proxy.3F
Is there any other way to record HTTPS than Bad boy and Https spoofing?
Yes--use a nightly build of JMeter, e.g. version r922204.
Https recording is successfully working in new version of Jmeter 2.9 as of today. I had to import proxy certificate and play around with Firefox to get this working.
Refer this link for more information
Https recording using Jmeter
Yes, I have used it with "attempt HTTPS spoofing" on. Things are simple enough:
Turn HTTPS Spoofing on (of course).
Make sure that the browser sends Http request to Jmeter, so that Jmeter can record it and then send the encrypted request back to the server. So, the URL in the browser should start with http:// (and not with https://). The details could be found in my blog.
Please let me know if it works for you.
I am using Webscarab to record https and ajax conversations.
It workd fine. I extended the Webscarab with export function for Jmeter.
Bugzilla 48898.

Resources