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