Reputation: 1
I have been looking into testing an ERP application written in Java on top of Eclipse. The application comes with its own jre and so on. I don't have access to the source code but I do now from the developers and my own research that the application calls its backend hosted on Amazon cloud.
After setting up my jmeter proxy I noticed that it captures anything from chrome but not from my ERP application. The ERP application is able to just bypass any proxy settings I set.
The only interesting thing I noticed is that if I set my jmeter proxy as a SOCKS proxy in system settings (or just as SOCKS proxy for the VM running the ERP application) then entire application just crashes.
This leads me to believe that the application might be behind some kind of proxy itself which prevents jmeter from capturing the requests.
Does anybody have any suggestions?
Upvotes: 0
Views: 175
Reputation: 168002
Basically you need to complete 2 steps:
Start JMeter's HTTP(S) Test Script Recorder. The easiest way is using JMeter Templates feature:
File -> Templates -> Recording
and click "Create"Workbench -> HTTP(S) Test Script Recorder
and click "Start"Configure your application to use JMeter as a proxy. According to Java Networking and Proxies article you need to set the following System Properties:
http.proxyHost=localhost
http.proxyPort=8888
and just in case your application is using HTTPS transport:
https.proxyHost=localhost
https.proxyPort=8888
The properties can be set via -D command line argument like:
java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 ... your application
or you can add them to your application startup script.
Upvotes: 0