Soapui4.5 simulate a client to test the WebService interface, including performance testing

Source: Internet
Author: User
Tags soapui

1. Start: enter \ soapui-4.5.1.1-SNAPSHOT \ bin directory and click "soapui. Bat" to start soapui

2. Create a test project: file ---> New soapui project ---> enter a name for the project name, and enter the WebService interface address in the following format in initial WSDL/wadl:

Http: // 127.0.0.1: 8080/services/gwofplugservice? WSDL

It is best to check whether the interface is available in the browser.

3. Create a test project with a request: after the project is created, you can see the project in projects on the left. Click the project directory to view the request method corresponding to the interface, as shown in the following figure:

As shown in the following figure, apsubmitreq is the request method. Right-click New request to add a request. The new request message format is automatically generated, as shown in the following figure:

<! [CDATA []> indicates the specific content of the message.

Click the green triangle in the upper left corner to send the request. The returned message is displayed on the right.

4. Create a test suite for performance testing. Right-click request2 in step 1 and choose add to testcase. Click OK to generate the following testsuite:

The newly generated testsuite does not have load tests. Right-click load tests, select new load test, and click confirm * n to generate loadtest1. The example is as follows:

This interface is the main interface for testing the performance of testsuite. It explains the common interface meanings:

Green triangle button: start the test;

Red forks: Click to terminate the test only after the test starts;

The limit input box is followed by the drop-down options below: It is often used to select how many seconds (seconds) to test, how many rounds (total runs)

Progress bar: indicates the Test Progress.

Threads input box: indicates how many threads call the WebService interface at the same time

Testdelay: the delay of each sending. This option indicates the sending interval, in milliseconds.

Random: With test delay, it indicates the floating sending Interval

Grid: the first line is a WebService request. The request corresponding to test steps can be edited.

 

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.