1, WebServiceTo develop WebService first, refer to document Http://www.cnblogs.com/xwdreamer/archive/2011/12/07/2296914.html WebService did not fight a war package, is running in eclipse
Test(This piece has time
2,Jmeter 2.1 Create Thread Group (Setup thread Group) 2.2 Create sampler (SOAP/XML-RPC Request) 1) Set URL (WSDL path): http://localhost:8080/ WEBSERVICEPROJECT/SERVICES/CALCULATESERVICE?WSDL 2) Soap/xml-rpc Data (this block can be taken in IE run WSDL), click the name of the type SOAP, such as: Calculateservicesoap11binding, click Plus (Add), enter x, y value, click Go in the bottom right box status to see the results, click Source, Fetch SOAP Request Envelope (for this, around the half day) & Lt;soapenv:envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0= "http://wstest.com" xmlns: Xsd= "Http://www.w3.org/2001/XMLSchema" xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" > <soapenv: body> <q0:plus> <q0:x>${a1}</q0:x> <q0:y>${a2}</q0:y> </q0:plus> </ Soapenv:body> </soapenv:Envelope> 2.3 Add listener: Look at the result tree run the script, a simple webservice how to run the completion script enhancement in JMeter, parametric Add component: CSV Data Set Config FileName: Data file Path variable name: parameter name (multiple parameters separated by commas) parameterized set graph data file
"Go" using JMeter Test WebService Simple Example