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

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.

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.

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.

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.

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

Resources