I have a question in IBM RPT, when I’m doing HTTP test via browser there are 2 Recording Method ( Socket Recorder, Proxy Recorder).
As User Manual :
HTTP proxy recorder: Use when proxy connections are required to connect to the network
Socket recorder: Use for low-level network traffic when the client does not support proxies
When I’m using Proxy Recorder, the browser automatically generate a port (Screen capture) at my Localhost proxy (as you can see at here Choosing Recorder type). And the recording work normaly (it works faster than Socket Recorder, when i'm using Socket Recorder it works too slow and sometimes it does not receive any packets!).
Which method should I choose for testing Web App? Is each method affect the performance results?
Please help me fix those problem. I'm sorry cause the attachment i do not have enough point to add a picture
Thank you !
what version you are using ??
If you are using 8.1 go to LAN setting in your PC and disable the proxy Click Apply then save if later let me know
Related
I am trying to run a performance test of an acrobat reader(PDF). The pdf load's an authorization page and need to capture that to sign in to load the PDF content. Need some thoughts on how to capture this using Jmeter
Load testing Acrobat Reader per se doesn't make a lot of sense (as long as you are not an Adobe employee).
If you need to simulate hundreds/thousands of Reader instances opening the authorization page it's sufficient to simulate the network footprint.
If the protocol is HTTP or HTTPS you can even record the traffic using JMeter's HTTP(S) Test Script Recorder. It respects operating system proxy settings so you need to
Set your OS to use localhost as the proxy host and 8888 as the proxy port
Import JMeter's self-signed certificate into Trusted Root Certification Authorities store
Perform the actions in the Acrobat Reader
JMeter should capture the associated network requests and generate relevant HTTP Request samplers
See How to Do Desktop Performance Testing article for more information.
If protocol is not HTTP(S) - basically the same approach: capture the traffic using a sniffer tool like Wireshark, identify the protocol, choose the relevant Sampler and configure it to send exactly the same request(s) as Acrobat Reader does
I have followed most of the JMeter tutorials, but there's one thing that prevents me from testing our app specially iOS. I can't be in one network. We have a separate network for both Mobile and Desktop/Laptop. Is there any way that I can record JMeter using Wired Connection, instead of WiFi? Thanks!
If you have to use JMeter for recording mobile device activity you could go for USB Tethering, this way your computer becomes connected to the iOS device network hence JMeter should be able to capture the traffic.
An easier option would be going for BlazeMeter Proxy Recorder, as a bonus you will have possibility to export recorded scripts in "SmartJMX" mode with automatic detection and correlation of the dynamic parameters.
I am recording our game app using JMeter
And it has an API server, which using the WebSocket's protocol
While meeting that request sent to API server, I always get this message, and can't go further
Is that means I need to modify the original JMeter's source code to walk around this problem? Or any way out? If so, that'd be appreciated.
I don't think you will be able to record and replay WebSocket transport using JMeter's HTTP(S) Test Script Recorder as WebSocket is a different beast, given you have a game application my expectation is that it might be the case application opens a WebSocket connection and re-uses it until the end of session and so you won't be able to mimic this behavior using "normal" HTTP Request samplers as WebSocket assumes either ws or wss protocol.
I would suggest considering one of the following JMeter Plugins:
WebSocket Sampler by Maciej Zaleski
WebSocket Samplers by Peter Doornbosch
Both plugins can be installed using JMeter Plugins Manager:
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.
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.