Simple example of using JMeter test WebService

Source: Internet
Author: User
Tags wsdl

1 WebService

Simple development of WebService, reference documentation

Http://www.cnblogs.com/xwdreamer/archive/2011/12/07/2296914.html

WebService does not fight a war package, is running the test in eclipse (this piece has time to add)

2 Jmeter

2.1 Creating thread groups (SetUp thread Group)

2.2 Create sampler under Thread Group (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 running WSDL),

Click the type name for soap, such as: Calculateservicesoap11binding, click Plus (add), appear

Enter the x, Y value and click Go

In the bottom right box, see the results, click Source, fetch the SOAP Request Envelope ( for this, around half a day)

<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 Adding listeners: Viewing the result tree

Run the script, a simple webservice how to run the complete in JMeter

Scripting enhancements, parameterization

Add symbol: CSV Data Set Config

FileName: Data file path

Variable name: Parameter name (multiple arguments separated by commas)

Parametric setup diagram

Data files

Simple example of using JMeter test WebService

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.