Thursday, January 08, 2009

Web service performance testing

I 'd like to use both JMeter and SoapUI to do web service performance testing, SoapUI provide more options or many strategies to conduct performance testing, and it support connection reuse and non-reuse to simulate the real situation more accurately.
However,I am used to using Jmeter and bellieve its results and its GUI :) so combine SoapUI and JMeter should be a good way to do web service performance.

1. get the WSDL from Developer friend
2.select Load WSDL from URL option both in SoapUI and JMeter SOAP sampler
3. copy soap/XML-RPC data from SoapUI into WebService(SOAP) Request of Jmeter
or you can create some XML file, load them using filename
4. do parameterization and correlation
5.design senarios and sheduler of performance testing in JMeter

give you an example of soap/XML-RPC data:







${uniqueID}
${uniqueID2}




one tip for making your testing scripts easier is to make full use of post processor--XPath Extractor, here is one example for Xpath query format:
//results[${__Random(16,30,)}]/uniqueID
a tree structure, it can be easier for you to look up the elements which you want.

No comments:

Post a Comment