Automatically browser gets closed while recording a travel website using Jmeter 4.0 - jmeter

i have installed Jmeter 4.0 in my local machine.
i made some necessary changes for recording traffic using IE browser.
i want to record a travel website's scenario but while doing this my browser gets automatically shuts while recording.
I also tried that website's URL in trusted site mode. I'm still facing the issue. Any help would be appreciated.

You question doesn't contain enough information so we cannot suggest exact steps to overcome the issue. If for any reason you need to continue using IE browser I would recommend checking the following:
jmeter.log file. It is located in "bin" folder of your JMeter installation and normally contains enough information in order to guess where the problem is
the reason of IE crash potentially can be discovered via Event Viewer
Alternative recording options are in:
Use Firefox browser. It has its own proxy configuration which is not using system-wide proxy settings so it might be more suitable for recording applications which require Internet access
Use JMeter Chrome Extension. In this way you won't have to worry about proxies, SSL certificates, etc.

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.

Why website is not accessible by clicking on login button while recording it with proxy server using Jmeter?

I have set up a proxy server and trying to record a script by adding "http script recorder", but the problem is I am able to access a website but not able to login.
my website has been loaded but once I enter credentials and click on the login button then a website is not behaving, login button also not responding.
In case of any problems with JMeter first of all you should look at jmeter.log file, if anything goes wrong JMeter normally writes an error message to this log file which in majority of cases is enough to get to the bottom of the issue.
With regards to your problem, my expectation is that login normally uses HTTPS protocol and you need to perform some extra configuration so JMeter would be able to intercept and decrypt HTTPS traffic.
You need to install JMeter's self-signed certificate to your browser, the file is called ApacheJMeterTemporaryRootCA.crt and it's being generated in "bin" folder of your JMeter installation when you start JMeter proxy.
You just need to import it into your browser and it should resolve you issue. Follow your browser documentation to learn more about certificates installation processes, some hints are also given in the HTTPS recording and certificates chapter of the HTTP(S) Test Script Recorder JMeter User Manual entry.
Alternative way is using JMeter Chrome Extension, in this case you won't have to worry about proxies and certificates so the recording process will be faster and easier.

Page not loading while recording application in jmeter

While recording application in JMeter, page is not getting displayed.
For actual daily purpose loading in browser, application uses 'automatically detect setting' (no proxies).
How to solve it?
(For recording localhost setting is used. Since there is no proxy command prompt method is not applicable)
If anybody came across this situation or has some other easy way to record other than Fiddler, Blazemeter or Badboy (since few issues while trying those also) please respond.
Also please suggest if there is anyway to get recording log from blazemeter extension for chrome because application is getting recorded with that extension, but recording log is not available.
If at least log is available I can use jcorrelate with the jmx and log as inputs to create script.
Follow the steps below to record web application in your browser
1.Create a recording Template in JMeter.
2.Open HTTP(s) Script reorder and give a port number which is not is use
3.Open your browser and setup proxy
(uncheck automatically detect setting) and set Proxy server with port mentioned in Jmeter script recorder)
If your web application uses https then you might need to install certificate generated by JMeter.
The article below explains the detailed steps to record an application using JMeter proxy server
JMeter Proxy Recording
You can convert BlazeMeter to jmx, just setup a Blazemeter account
A Blazemeter account is required to convert the recording into a JMeter script (.jmx) file because this process is performed on the server side. Any Blazemeter account (free or paid) will suffice. Signing up for BlazeMeter is super fast and doesn’t require any sort of commitment or credit card.

Record HTTPS requests of a mobile IOS/Android application with JMeter

Is it possible to record httpS requests of a native app (IOS or Android) with JMeter? I tried some ways that I found but, I've not resolved the problem..
Use jmeter 3 with Java 7 or 8, it creates a crt file in jmeter/bin folder. It is the CA that creates the certificates.
Send this file by mail and open it in Android / iOS then install it.
In test script recorder, put in the dedicated field HTTPS domains , the domains you are trying to hit, see:
-http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
Restart Ipad/Android and jmeter test script recorder and try again.
to do this, you have to make your device trust the Jmeter Proxy CA.
So, you have to import the Jmeter CA certificate from
$JmeterHome/bin/ApacheJMeterTemporaryRootCA.crt
into the device.
I remember this is an area where things improved a lot recently, so be sure to have the last version installed.
Try deleting ApacheJMeterTemporaryRootCA.crt, JMeter's self-signed certificates have very limited life time (I recall something like 1 week), so if your certificate is older you might have problems installing it into browsers and/or mobile devices or it won't decrypt SSL traffic. The file will be re-created next time you start HTTP(S) Test Script Recorder
There is an alternative way of recording the mobile traffic by using your personal cloud proxy. Moreover, it will perform automatic correlation for you so you won't have to worry not only about SSL certificates, but also about Regular Expression extractor, JMeter Variables, etc. Check out How to Cut Your JMeter Scripting Time by 80% article for details.
If none of the above helps, take the following troubleshooting steps:
Add View Results Tree listener as a child of the HTTP(S) Test Script Recorder. In case of any problems with the recording a request it should display the error details.
Check your mobile device logs during failed certificate installation attempt. You may need to install Android and iOS developer tools for this.
Make sure that your application is really uses HTTP or HTTPS protocols as JMeter supports only these 2.

JMeter "Content encoding Error" when using FireFox and HTTP(S) Test Script recorder

I am trying to configure Mozilla Firefox for JMeter 5 and as I am setting up manual proxy in Firefox and same proxy number in JMeter.
I installed the special certificate.
My Firefox is showing error as "Content encoding Error", when I open https://www.google.com website.
This is due to Brotli Encoding not being supported by JMeter Test Script Recorder in versions <= 5.0.
See:
https://bz.apache.org/bugzilla/show_bug.cgi?id=62842
The bug is now fixed in nightly build and in upcoming 5.1 version of JMeter.
To workaround, in Firefox, type about:config and input Content-Encoding:
Then remove br from the algorithms accepted.
Don't load test public applications unless you're a member of their QA team or have an explicit permission from the application owner. Most probably you will be at least stopped by DDoS protection mechanisms and your IP will be simply blacklisted which may cause problems for your neighbours if you're behind an ISP NAT.
Whenever JMeter fails to record something try out an alternative way - JMeter Chrome Extension which is a convenient way of intercepting browser traffic without having to configure proxy servers and installing certificates.

Resources