Unable to login to system while recording through Jmeter - jmeter

I'm unable to record login functionality every time its giving validation message on login screen with proxy on. On removing the proxy login functionality works fine. I'm using localhost with port given with the URL of the system under test.
Address is something like - 52.xxx.xxx.xxx: Portnumber
Please help..!!

It may be connected with HTTPS protocol, sending username and password in plain text is a very bad practice so I am more than sure your application is using some form of TLS encryption.
JMeter is able to decrypt and record secure traffic, however some extra configuration will be required, in particular you will need to add JMeter's self-signed certificate into browser so JMeter would be able to intercept secure traffic. Pay attention to the following chapters of the JMeter's HTTP(S) Test Script Recorder documentation:
HTTPS recording and certificates
Installing the JMeter CA certificate for HTTPS recording
If you will be still experiencing problems check out Recording HTTPS Traffic with JMeter's Proxy Server article for troubleshooting steps.

Related

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 properly while recording https protocol in jmeter

I'm trying to record an application with https protocol in jmeter.
Requests are being captured in JMeter, the However web page is not loading properly.In the web, responses are coming in a line where I cannot proceed further.
I'm able to record HTTP protocol without any problem.
help on this would be really appreciable.
Thanks in advance
When you start HTTP(S) Test Script Recorder for the first time, JMeter will create a Certificat Authority in jmeter/bin folder named:
ApacheJMeterTemporaryRootCA.crt
You need to add it to your browser (Firefox for example) following the instructions in paragraph:
Installing the JMeter CA certificate for HTTPS recording
Once done, you'll be able to correctly record HTTPS traffic.

Record native mobile app with Jmeter

I am trying to record mobile app with Jmeter, the app has URLs with https,
I am using jmeter 3.1 and configured mobile and machine such that I am able to record URL(both http and HTTPS) and app from mobile in jmeter. Now I have an application, with the same configuration I have tried recording that app, but not able to record anything and the strange thing is that when I am trying to login into the app with proxy in mobile it's says "Unable to connect to server", but without proxy it's logining successfully. Does someone come across this situation. Please let me know if there could be any solution for this.
Unable to connect to server has many faces, going forward include more details into the question, i.e. mobile operating system, proxy configuration details, etc.
In the meantime here is a checklist:
JMeter can record only HTTP and/or HTTPS, other protocols are not supported
You need to configure mobile device to use the host running JMeter as a proxy for both HTTP and HTTPS protocols. For certain operating systems you may need 3rd party software, i.e ProxyDroid in order to setup HTTPS proxy
In case of HTTPS traffic you will need to install JMete's self-signed certificate - ApacheJMeterTemporaryRootCA.crt onto your mobile device. If did it already - be informed that JMeter certificates has limited life span (4 months or something like that) so you need to periodically "refresh" them. The fastest and the easiest way of installing the certificate is sending the aforementioned file to yourself via email and opening the attachment using the mobile device.
See HTTPS recording and certificates chapter of the HTTP(S) Test Script Recorder JMeter User Manual entry for more details.
You can also View the Webcast: Performance Testing for Native Mobile Apps to learn about alternative ways of recording mobile traffic and converting it into a JMeter test.

how can i install root CA certification in jmeter?

I'm getting the following error trying to install a root CA certificate in Apache JMeter:
What should I do?
This is not an error at all, it's information message regarding JMeter created a self-signed SSL certificate.
Due to security reasons JMeter prints some information regarding the certificate so you could decide whether to accept it or not when you'll open a page over HTTPS protocol in browser.
So when browser prompts you whether to proceed to secure page using untrusted certificate or not - just double check certificate authority and if it matches what JMeter tells in that dialog - you're good to go.
References:
Installing the JMeter CA certificate for HTTPS recording chapter of the HTTP(S) Test Script Recorder (was: HTTP Proxy Server ) User Manual page
Recording HTTPS Traffic with JMeter's Proxy Server

Jmeter Probably waiting for user to authorize the certificate

All
When i am trying to record https urls with jmeter, i am getting below message in log:
jmeter.protocol.http.proxy.Proxy: [64432] Empty response to http over SSL. Probably waiting for user to authorize the certificate for XXXXXXX:443.
Its not loading any pages of our application.
Can anyone please help me how to resolve this issue?Thanks
Theju
First read:
http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder
Among resolutions for your issue:
Install in the browser as described in documentation the Fake Certification Authority created by JMeter
Call https URL in the browser and accept certificate, then start recording your scenario
Have you added JMeter's self-signed certificate to browser's exception list?
If so - try removing the certificate and starting over.
For other troubleshooting options and recommendations see Recording HTTPS Traffic with JMeter's Proxy Server guide.
I suggest using SmartMeter Recorder. You will avoid all isues with setting up the proxy. SmartMeter Recorder uses its own Chrome plugin and works out of the box. Read the article for more info.
First of all for performance testing you should have application setup without the certificates otherwise you are testing results will differ. Your objective should be to test actual calls and those should be isolated.
If you still insist doing with certificate then you need to register JMeter certificate with browser which you are using for recording. You can find that in JMeter bin directory. Just register with your browser which you are using fir recording.

Resources