Soapui Interface Automation Test _ interface

Source: Internet
Author: User
Tags soapui

Soapui-can be used for interface automation testing, now many mobile phone apps and Web projects will involve calls to the interface, especially if the number of interface calls, interface regression test workload is very large, at this time, you can use the Soapui tool in the test in accordance with interface documents to form interface test Cases , a regression test can be performed directly to see if the interface tests through.

• New Rest Project--(divided into two kinds of soap and rest, the difference can be online search), test address can be entered at this time and can not enter

L New test Case set--select new Rest Project, right-new testsuite

L New test Case--such as "Get Interface access token"

L Add test Case Steps--Select test Steps,add step-http Request, modify the step name "Token account Normal"

Add test step Content--Input test address, click Extract Params, will automatically extract the parameter values in the test address

L EXECUTE the request--Open this step, click on the Green Triangle button in the upper left corner of the window, will automatically request the token account, the right to return the result, select JSON view

L Add assertion--similar to the meaning of a checkpoint, as the result returned in the previous step "token account normal" represents successful execution

Enter Check content

L Run again-a green success sign below, indicating successful execution of this step

Testable content that can be tested intentionally modified to error

Note: The above is a test step of the interface, the specific test needs to add multiple test steps for an interface, the method is similar to writing test project use case on Testlink, the parameters of the interface, as well as exception data processing, etc. are added.

The following figure:

L Batch Execution test cases--you can choose to batch execute test case set, or batch execute test case

When only the test case set is executed, double-click the test case set, click Execute, automatically execute all the use cases under the use case set, and mark the successful failure result

Similarly, you can double-click the tree structure title for the entire project, or for a single test case to execute.

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.