Is there a reason I'm not able to start the HTTP(S) Test Script Recorder - jmeter

enter image description here
I do not have workbench on Apache 5.3 and due to which I don't have HTTP Proxy Server. I used the HTTP(S) Test Script Recorder. Started Chrome and manually configured the proxy settings. Settings => Advanced => Network => Manual Proxy:localhost and port as 8080(same as configured on the HTTP(S) Test Script Recorder). enter image description hereBut when I click on Start button on the recorder, Im getting the below error. Can someone please help

The error you're getting means that JMeter is not able to generate proxyserver.jks file (Java keystore to keep MITM certificate allowing JMeter to intercept and decrypt SSL traffic) because it doesn't have read/write access to the folder where you launch JMeter from.
The solutions are in:
Run JMeter as administrator, administrators have full control over all folders
Change proxy.cert.directory property to some folder where your user has access rights
If for some reason you cannot go for steps 1 and/or 2 you should be able to record your test scenario using JMeter Chrome Extension

Related

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.

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.

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.

How to record a Script By using JMeter

when i change the proxy settings the Save button is not getting enable, can anyone help me to to record the script by for Android Application.
please share Videos to Record a script for android.
Thanks In Adavance.
Make sure your Android device is connected to the same network as the machine running JMeter
Prepare JMeter for recording, the fastest and the easiest way is using templates feature, from JMeter's main menu choose File -> Templates -> Recording -> Create
Expand Workbench -> HTTP(S) Test Script Recorder and click "Start"
Configure your mobile device to use JMeter as a proxy, use IP address or hostname of machine where JMeter is running as proxy host and 8888 as proxy port
If application you're trying to record is using HTTPS transport you will need to import JMeter's self-signed certificate onto the device. Locate ApacheJMeterTemporaryRootCA.crt file (it is being generated in JMeter's "bin" folder when you start HTTP(S) Test Script recorder) and send it to yourself via the email. Once done - open the attachment on the Android device and follow installation dialog. You may also need a 3rd-party tool like ProxyDroid in order to configure HTTPS proxy.
See Load Testing Mobile Apps Made Easy guide for comprehensive instructions.

Jmeter - script recording

I am new to Jmeter and trying to learn it on my own. I am setting up proxy setting in the browser and trying to record the script. But as soon I set the proxy in the browser, am not able to access the internet through that browser.Which is preventing me from recording to the script?
Kindly help me with this issue.
Starting from JMeter 3.0 default port for the HTTP(S) Test Script Recorder is 8888
The easiest way to get JMeter configured for recording is using JMeter Templates feature. From JMeter's main menu choose:
File -> Templates -> Recording -> Create
Don't forget to start JMeter Proxy Server
Expand "Workbench"
Select "HTTP(S) Test Script Recorder"
Click "Start" button
You will see a message regarding Root CA Certificate - it is OK, just information regarding JMeter generated a dummy certificate - ApacheJMeterTemporaryRootCA.crt. If you will need to record the site which uses HTTPS - you will need to import it into your browser

Resources