Why website is not accessible by clicking on login button while recording it with proxy server using Jmeter? - 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.

Related

apache jmeter does not show my data in the browser (I use FireFox as a browser)

i am testing using jmeter, but my data does not arrive when I start the browser with http test script recorder. i can't do operations such as insert update either
If JMeter doesn't work as you expect in the majority of cases the answer is in jmeter.log file. It's also a good idea to check your browser console and look for any suspicious entries of WARN and/or ERROR severity.
In the majority of cases problems with recording are connected with HTTPS and JMeter's self-signed certificate installation, see HTTPS recording and certificates chapter of JMeter User Manual on the HTTP(S) Test Script Recorder for more details.
Also be aware that it's possible to use JMeter Chrome Extension for recording your browser actions into JMeter .jmx script, in this case you won't have to worry about proxies and SSL certificates.

Jmeter Script recorder with Firefox not letting user bypass Authentication

I have an issue I'm facing which Jmeter Script recorder and Firefox browser in Windows 10.
I have managed to add a project in Jmeter with the Recorder template and imported the generated
Certificate into the Firefox browser and also changed the proxy settings to point to the port
I have in Jmeter Test script recorder (8888) by changing the proxy to manual configuration.
But when I start recording I get to a point in where I need to authenticate myself at a certain point in a webpage (a prompt showing up) and I also enter the correct credentials but it just keeps redirecting back to the prompt all over again so I can't bypass it.
Are there settings I should change in some of the Jmeter properties files?
I need to say that the computer I'm trying this with has proxy settings which are fixed and cant be changed when looking into wifi settings in control panel
JMeter provides HTTP Authorization Manager to deal with external authentication types like
basic HTTP
NTLM
Kerberos
So if you want to record the end-to-end flow you need to add properly configured HTTP Authorization Manager to your recording template test plan. The configuration details will differ depending on the server configuration, see Windows Authentication with Apache JMeter article for more details (you will need this setup in any case for replaying the recorded scripts)
Alternative solutions:
Disable proxy for this particular login request like:
Record all the steps including login - it will produce relevant HTTP Request samplers
Disable proxy
Perform login
Enable proxy
Continue recording
Use a 3rd-party recording solution like JMeter Chrome Extension

Unable to login into OKTA application when using jmeter's recording controller (proxy)

I'm able to login into the OKTA application, when I'm NOT recording the jmeter script using jmeter's proxy server(using Test Script Recorder). But, as soon as I setup my browser to use jmeter's proxy server (Test Script Recorder) for recording, I'm NOT able to login into the application itself. I see error "Please try your request later.The system is having techical difficulties". But the application works fine without proxy and i am able to login to OKTA application.
Steps:
Open jmeter. In test paln add test script recorder and change the browser IE Lan settings port to 8888 which is specified in the recorder.
Launch Application.
Give username and click on next
Error is encountered. "Please try your request later.The system is having techical difficulties"
But it works fine when i launch the application without any proxy.
Most probably you need to import JMeter's self-signed certificate into 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 server.
See HTTPS recording and certificates chapter of the HTTP(S) Test Script Recorder documentation for more detailed explanation.
Remember when something goes wrong most probably you can find a clue in jmeter.log file
There is an alternative way of recording a JMeter test: JMeter Chrome Extension, in this case you won't have to worry about proxies and certificates, just execute your use case in browser and once done you will be able to export the recorded script in form of JMeter .jmx file
This probably is due to the way Jmeter is parsing(and resending) the OKTA data(token, response etc.).The data parsed and sent by Jmeter proxy is unacceptable by the server and hence the error.Try saving the .har and then convert to jmx for jmeter use and see the difference.
Using Jmeter extension on Chrome might help too for recording.

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.

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