Download - Testing web services by Stan Jónsson
![Page 1: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/1.jpg)
TestingWebServices
StanJónsson @sjonsson sjonsson.com
![Page 2: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/2.jpg)
Agenda
![Page 3: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/3.jpg)
Agenda-cont.
• WillalsobrieflyshowoneChromeplugin
AdvancedRESTclient
![Page 4: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/4.jpg)
• SoftwareArchitectatAllianceData• PassionateaboutTDD,TestAutomation,andDeliveringQualityCode
StanJónsson
@sjonsson
sjonsson.com
![Page 5: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/5.jpg)
SoapUI
Freeandopensourcecross-platformfunctionaltestingsolution
• SOAP• REST• Web-HTTP,HTTPS• JDBC• JMS
![Page 6: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/6.jpg)
WhatdoIuseSoapUIfor?
ExploratoryTesting Mocking
![Page 7: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/7.jpg)
DemoTime(ScreenshotsofsomeofwhatIwalkedthrough)
![Page 8: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/8.jpg)
![Page 9: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/9.jpg)
![Page 10: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/10.jpg)
![Page 11: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/11.jpg)
![Page 12: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/12.jpg)
![Page 13: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/13.jpg)
![Page 14: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/14.jpg)
![Page 15: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/15.jpg)
![Page 16: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/16.jpg)
![Page 17: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/17.jpg)
![Page 18: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/18.jpg)
![Page 19: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/19.jpg)
JMeter
Opensourceapplicationdesignedtoloadtestfunctionalbehaviorandmeasureperformance
• Web-HTTP,HTTPS• SOAP/REST• FTP• JMS• JDBC• NoSQL(MongoDB)• LDAP• Mail-SMTP(S),POP3(S)andIMAP(S)• Nativecommandsorshellscripts
![Page 20: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/20.jpg)
WhatdoIuseJMeterfor?
SmokeTestingLoad&Performance
Testing ProductionMonitoring(viaJenkins)
![Page 21: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/21.jpg)
DemoTime(ScreenshotsofsomeofwhatIwalkedthrough)
![Page 22: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/22.jpg)
![Page 23: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/23.jpg)
![Page 24: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/24.jpg)
![Page 25: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/25.jpg)
![Page 26: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/26.jpg)
![Page 27: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/27.jpg)
![Page 28: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/28.jpg)
![Page 29: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/29.jpg)
![Page 30: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/30.jpg)
![Page 31: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/31.jpg)
![Page 32: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/32.jpg)
![Page 33: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/33.jpg)
![Page 34: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/34.jpg)
![Page 35: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/35.jpg)
REST-assured
• JavaDSLforeasytestingofRESTservices– Easytosubmitrequest(GET,POST,PUT,DELETE)– Easytovalidateandverifyresponse
![Page 36: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/36.jpg)
TheDSL
Given ConditionsWhen AccessingService
Then ExpectTheseResults
![Page 37: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/37.jpg)
WhatdoIuseREST-assuredfor?
WebServiceAcceptanceTesting RunfrequentlyaspartofCI
![Page 38: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/38.jpg)
DemoTime(ScreenshotsofsomeofwhatIwalkedthrough)
![Page 39: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/39.jpg)
![Page 40: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/40.jpg)
![Page 41: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/41.jpg)
![Page 42: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/42.jpg)
![Page 43: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/43.jpg)
Questions?
StanJónsson @sjonsson
sjonsson.com
![Page 44: Testing web services by Stan Jónsson](https://reader031.vdocuments.us/reader031/viewer/2022030316/5874bd2f1a28ab1b098b8c8b/html5/thumbnails/44.jpg)
Summary
• LookedatvariousfreeWebServicetestingtools• ShowedhowtheycancovermostofyourWebServicetestingneeds
StanJónsson @sjonsson
sjonsson.com