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.