Soapui Interface Test Instance (WebService interface)

Source: Internet
Author: User
Tags soapui
Interface test Steps

Note: Use the test Queryhistoryaccepts interface as an example.

1. User Login to get sessionkey entity information

Note: Since most of the interfaces require SessionKey entity, so testing those interfaces requires calling the user login interface to get SessionKey the information under the entity.

In the Interface display window, locate the Checkcallerpermision Request1 message under Commonservicesoap11binding, as shown in:

Double-click on the request 1 message as shown:

Enter the login user name and encrypted login password, click the Send Message button in the upper left corner to send the request, sent back as shown:

The information in the red box is the SessionKey entity information returned.

2. Target interface test

Note: Use the test Queryhistoryaccepts interface as an example.

Locate the QUERYHISTORYACCEPTS request message in the Interface display window, as shown in:

Double-click to open the request 1 message as shown:

According to the SessionKey entity information obtained before the user login interface, fill in the SessionKey entity information of the message, then some relevant field information outside the entity is correctly filled out according to the interface document, all the information is correctly filled out, click the Send Message button, send back the message as shown:

Through the return message information, control the interface document, test case and database data, check the return code and return information is correct, if correct test pass, otherwise, test does not pass.

Soapui Interface Test Instance (WebService interface)

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.