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)