Prerequisites
- homebrew installation
Installation steps
- Install JMeter by running Terminal command: brew install jmeter
- Test the install by running command jmeter -h
- To run the app just type jmeter in Terminal
Additional configuration steps
Use a client-side certificate
- Prepare a Java KeyStore file. Example command to create a jks file:
- Cd to /usr/local/Cellar/jmeter/3.1/libexec/bin/ and open the system.properties file.
- Go to your JMeter directory and open your system.properties file. In there, uncomment the following lines, and change the file to match your values: javax.net.ssl.keyStore=<your_JKS_filename.jks>
javax.net.ssl.keyStorePassword=yourJKSpassword
Create a Test Plan
We're going to create a SOAP WebService Test Plan from a template
- Go to File / Templates and select the SOAP WebService Test Plan test plan. In the editor steps will be loaded
- Click on HTTP Request Defaults. In Server Name or IP field fill in the hostname or IP address
- Click on Soap Request (child of Number of Users step)
- Protocol: https
- Server Name or IP: hostname or IP address
- Port Number: 443
- Method: POST
- Path: path or the URL. like /resource/123/v1
- Body data tab: full SOAP request XML message
- Click on HTTP Header Manager and create a SOAPAction header if applicable
- Add step View Results Tree and configure in order to see the response message after starting the test.
- Done!
References
- https://jmeter.apache.org/
- https://www.ubik-ingenierie.com/blog/using-homebrew-to-install-and-configure-jmeter-under-mac-osx/
- https://www.blazemeter.com/blog/how-set-your-jmeter-load-test-use-client-side-certificates
0 reacties:
Post a Comment