Testing the WebService interface with SOAPUI

Source: Internet
Author: User
Tags soapui

1. Download tomcat, AXIS2, configure server and WebService runtime location

2. New Java project, name WebServiceTest, new class Numberandzero.

3. Enter the source code in the class to determine whether the incoming number is greater than 0, equals 0, or less than 0

 PackageTest.webservice; Public classNumberandzero {//determine the relationship between the parameter and the 0 size     PublicString Numberoverzero (Doubled) {        if(d>0)            returnD+ "> 0"; if(d==0)            returnd+ "= = 0"; Else returnD+ "< 0"; }}

4. Select the WebServiceTest project, create a new webservice,

5. Click Next

6. Start the server

7. Click the Finish button after launch to see the successful start

8. Eclipse will automatically hit the Web Services Explorer, replicating the WSDL path

9. Open Soapui and create a new soap project.

10. When done, change the D value instead of the question mark and send

11. You can see that you received the answer: 88.0>0

12. Create a new testsuite,testcase and add this request to the TestCase Teststep

13. Adding assertions

Testing the WebService interface with SOAPUI

Related Article

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.