Guide to use the Apache JMeter for Web Services Concurrency testing
1. To begin using the tool, first download the latest production release on the link below and install it. JMeter requires a fully compliant JVM 1.5 or higher.
- http://jmeter.apache.org/download_jmeter.cgi
2. To install the tool, you just need to unzip the zip / tar file into the directory where you want it to be installed. There can be problems (especially with client-server mode) if the directory path contains any spaces. You can rename the parent directory if you want, but do not change any of the sub-directory names.
3. To run JMeter, run the jmeter.bat (for Windows) or jmeter (for Unix) file. These files are found in the bin directory. After a short pause, the JMeter GUI should appear.
You may now setup JMeter specifically for NetSuite Web Services.
4. Create a Test Plan. There is already a Default Test Plan and you can rename it.
5. Add a Thread Group to the Test Plan. Right-click on the Test Plan > Add > Threads (Users) > Thread Group.
6. Add a Loop Controller. Right-click on the Thread Group > Add > Logic Controller > Loop Controller.
7. Add WebService (SOAP) Request. Right-click on Loop Controller > Add > Sampler > WebService (SOAP) Request. Enter the WSDL URL, the path (the Web Services endpoint), select the operation, and the SOAP Request. You can also use a SOAP XML file. Make sure to unmark Memory Cache and mark the Read SOAP Response checkbox.
Miscellaneous Steps:
1. Save Web Services SOAP Responses. Right-click on WebService (SOAP) Request > Add > Listener > Save Responses to a file. The file will be automatically saved on the Bin directory.
2. Write SOAP Requests to a File. Right-click on .WebService (SOAP) Request > Add > Listener > Simple Data Writer
Click on Browse and select an XML file (On a Notepad, create a new file and save it as .xml). All requests will be dumped to this file in an XML format. The following are the additional information you can select to include on the xml dump.
No comments:
Post a Comment