Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am trying to record this site "https://login.salesforce.com/". But I don't know how to record it, how can I do it?
The fastest and the easiest way of recording a JMeter Test is using JMeter Templates Feature
From JMeter main menu choose File -> Templates -> Recording -> Create - it will create a good Test Plan suitable for recording
Expand Workbench -> HTTP(S) Test Script Recorder and click "Start"
Configure your browser to use the host where JMeter is running (in majority of cases it is localhost) and use 8888 as a proxy port
Open the desired URL in your browser. If your application uses HTTPS protocol you will see a warning regarding connection not being secure - ignore it, JMeter uses self-signed automatically generated certificate in order to be able to decrypt and record HTTPS requests
Observe recorded requests details under Workbench -> HTTP(S) Test Script Recorder -> View Results Tree and captured HTTP Request samplers under Test Plan -> Thread Group -> Recording Controller
References:
HTTP(S) Test Script Recorder (was: HTTP Proxy Server )
Apache JMeter Proxy Step by Step
Related
This question already has answers here:
Does Apache JMeter support http/2 requests?
(3 answers)
Closed 4 years ago.
Is it possible to record http2 request in jmeter and i have converted my existing http script to http2 in that my regular expression extractor is not working properly it is responding with not found.can any one pls guide me on this
I have pasted the jar list to my lib/ext folder alpn-api-1.1.3.v20160715.jar, netty-all-5.0.0.Alpha2.jar, netty-tcnative-2.0.7.Final.jar, hpack-1.0.2.jar
Per se it doesn't, however there is HTTP2 Plugin for JMeter which adds HTTP2 protocol support to JMeter.
You can install HTTP/2 Sampler using JMeter Plugins Manager
I am new to Jmeter , my manager asked me explore on this tool. Was starting with simple example to put load on website http://202.87.46.83:7001/OESWeb/Login/loginPage.jsp . I have done all necessary setup like proxy etc. While running the same i am getting Response code: 404 error
Below is http request and its results:
Try recording your test scenario using JMeter's HTTP(S) Test Script Recorder, building a JMeter Test Plan manually is a huge overhead in terms of required time.
The fastest and the easiest way to prepare JMeter for recording is using JMeter Templates feature,
Choose File -> Templates -> Recording from JMeter's main menu and click "Create" button.
Then expand WorkBench -> HTTP(S) Test Script Recorder and click "Start"
Configure your browser to use JMeter as a proxy (given JMeter and browser are running on the same machine use localhost as proxy host and 8888 as proxy port)
Start executing your test scenario in browser - JMeter will capture the requests and convert them into HTTP Request samplers
Could some one please help me on the below
Is it possible to record desktop applications using JMeter?
I just tried the following, but didn't work
File--->Template--->Create
Workbench--->Recording Script-->Start
Launched my application which is desktop and perform some actions
Workbench--->Recording Script-->Stop
When I expand Threadgroup--->Recording Controller-Nothing recorded
Where am I missing?
You miss one important step:
configure your desktop application to use proxy and provide host and port where JMeter is running (localhost and 8888 if they live on the same machine
Also be aware that:
JMeter can record only HTTP or HTTPS traffic, if your application uses other protocol - the calls will not be recorded. In that case you can consider The Grinder as an alternative, it comes with TCPProxy which is more low level therefore is cable to capture more protocols
If your application uses HTTPS protocol you will need an SSL certificate in order to decrypt and record the requests, you can configure your application to use JMeter's certificate or vice versa.
On MS Windows you may need to add a Loopback Adapter
See How to Run Performance Tests of Desktop Applications Using JMeter article for more details on simulating multiple desktop applications using JMeter
As help explains:
The recorder is implemented as an HTTP(S) proxy server. You need to set up your browser use the proxy for all HTTP and HTTPS requests.
Technically browser is also a desktop application, so to answer your first question, yes, you can record desktop applications using JMeter. However, just like browser, your desktop application must have an ability to connect to the internet via user-defined proxy. And also recorder will only record HTTP traffic from and to the application, it will not record client-only UI events, or traffic generated by any other protocols.
So to sum up:
Any desktop application can use JMeter recorder
But only if you can configure it to use JMeter recorder as a proxy
And only if your goal is to record HTTP traffic related to your desktop application, nothing else.
Can we test mobile application either iOS/Android(Native/hybrid)App using Apache JMeter? If yes, what's the way?
You cannot test mobile application directly i.e. how long does it take to load, how responsive it is, etc. via JMeter. What you can do with JMeter is to simulate large number of mobile devices talking to your backend server to measure performance and also apply some client-side assertions to make sure that server's response is not malformed.
It is possible to record mobile application network activity via JMeter HTTP(S) Test Script Recorder as follows:
Add aforementioned HTTP(S) Test Script Recorder and a Recording Controller to Workbench
Make sure that host, running JMeter and mobile device are on the same network (i.e. use Wifi, not cellular data plan) and the host running JMeter is accessible (i.e. firewall software doesn't block port 8080)
Start JMeter's proxy
Configure device to use JMeter's proxy.
Launch your application and perform necessary actions
When you finished stop JMeter's proxy and copy recorded requests to Test Plan
Perform correlation and parametrization if needed
Configure Thread Group virtual users and ramp-up according to your load scenario.
Launch the tests
Analyze results
References:
JMeter Proxy Step by Step
Load Testing Mobile Apps. But Made Easy.
Parametrization in JMeter
Guide to JMeter Regular Expressions
I have a desktop based(.exe) application used for trading of equities.
1.Developed in VB uses TCP/IP.
2.Uses a database server which is an another server which the exe sends requests on.
3.I want to get the entire response using jmeter for 50 users at a time.
I wanted to record the responses for the transactions.I have worked with web applications where we create Http proxy server and start it and the recording happenes from browser but in this case i cant use browser.
Please guide me how to record the responses in jmeter with .exe applications.
Thanks and Regards,
Kumar
JMeter HTTP(S) Test Script Recorder is capable of recording only HTTP or HTTPS traffic so if following conditions are met:
Your .exe application talks to server using HTTP
Your .exe application can be configured to use HTTP proxy or respects Windows global HTTP Proxy settings from registry (or configured in Internet Explorer)
the answer is "yes", you can use JMeter to record the traffic. See Load Testing Mobile Apps. But Made Easy. guide for details on how to do it.
If one of above conditions cannot be satisfied there are following options available:
If you still want to use JMeter there is a possibility to use a sniffer tool like Wireshark to capture requests and manually construct them using JMeter HTTP Request or TCP Sampler.
Consider switching to Grinder tool which offers TCP Proxy
Hope this helps.