文件名称:Parasoft Handbook
文件大小:7.83MB
文件格式:PDF
更新时间:2021-10-13 17:42:33
API testing
1. Introduction:........................................................................................................................................3 2. Creating a New Project from WSDL..........................................................................................................3 3. Adding Security Token .........................................................................................................................12 4. Inputting Values..................................................................................................................................16 5. Adding Request Header Values .............................................................................................................19 6. Running the Script............................................................................................................................... 21 7. Verify the Request and Response ..........................................................................................................22 8. Parameterisation ................................................................................................................................ 24 9. Adding CheckPoints............................................................................................................................. 30 10. Using Random numbers in Script........................................................................................................38 11. Using Aggregate .............................................................................................................................. 44 12. XML Data Bank................................................................................................................................ 58 13. SVN Checkout & Checkin...................................................................................................................71 14. DIFF...............................................................................................................................................76 15. Regression Controls .........................................................................................................................78 16. Virtualization ..................................................................................................................................83 16.1 Creating a Project ............................................................................................................................ 83 16.2 Creating an virtual asset ...................................................................................................................87 16.2.1 Adding Message responder (this is the mock operation): ....................................................................92 16.2.1.1 Setting the required response. .....................................................................................................94 16.2.1.2 Responder Correlation ................................................................................................................97 16.2.1.3 Adding data source................................................................................................................... 100 16.2.1.4 Data Source Correlation. ........................................................................................................... 103 16.3 Hosting our Virtual Asset. ............................................................................................................... 112 16.3.1 Adding our virtual asset to server .................................................................................................. 112 16.3.2 Starting the server....................................................................................................................... 117 16.4 Firing a request from SOATest ......................................................................................................... 120 17. Best Practice Followed.................................................................................................................... 124