JMeter Learning (11) Webserivice test Plan

Source: Internet
Author: User
Tags soap

1. Renaming a test plan

To start JMeter, click on the test Plan node and rename this test plan node: WebServiceTest. For example:

2. Add a thread group

Add a thread group, right-click Test Plan webservicetest-add-Threads (Users) > Thread Group. Next, let's modify the default properties of the thread group to meet our tests. Change the following properties:Name:number of UsersNumber of Threads (Users): 5ramp-up Period:5Loop Count:2  3. Adding Configuration ComponentsA. Right-click Test Plan webservicetest-add-Configure components > user-defined variables, name: User Defined VariablesClick Add, set Name: Host, set Value: wsf.cdyne.com, set Description:host of Webservice.  B. Right-click Test Plan webservicetest-add-Configure symbol > HTTP request default value, Name: http requestor DefaultsClick Add to set the server name or Ip:${host} 4. Adding samplersRight-click the thread group number of users-add-sampler > HTTP request, set the following parameters:Name: Soap RequestPath:/weatherws/weather.asmxBodydata:

<soap:envelope xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd= "http://www.w3.org/2001/ XmlSchema "xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getcityforecastbyzip xmlns= "http://ws.cdyne.com/WeatherWS/" >
<ZIP>60601</ZIP>
</GetCityForecastByZIP>
</soap:Body>
</soap:Envelope>

5. Adding listenersRight-click the thread group number of users-add-listener > View result tree 6. Run this test plannow save the above test plan test_webservice.jmx. Perform this test plan using the Run > Start option. At this point, the entire test plan is complete.

JMeter Learning (11) Webserivice test Plan

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.