Page 1
TestingWebServices
StanJónsson @sjonsson sjonsson.com
Page 3
Agenda-cont.
• WillalsobrieflyshowoneChromeplugin
AdvancedRESTclient
Page 4
• SoftwareArchitectatAllianceData• PassionateaboutTDD,TestAutomation,andDeliveringQualityCode
StanJónsson
@sjonsson
sjonsson.com
Page 5
SoapUI
Freeandopensourcecross-platformfunctionaltestingsolution
• SOAP• REST• Web-HTTP,HTTPS• JDBC• JMS
Page 6
WhatdoIuseSoapUIfor?
ExploratoryTesting Mocking
Page 7
DemoTime(ScreenshotsofsomeofwhatIwalkedthrough)
Page 19
JMeter
Opensourceapplicationdesignedtoloadtestfunctionalbehaviorandmeasureperformance
• Web-HTTP,HTTPS• SOAP/REST• FTP• JMS• JDBC• NoSQL(MongoDB)• LDAP• Mail-SMTP(S),POP3(S)andIMAP(S)• Nativecommandsorshellscripts
Page 20
WhatdoIuseJMeterfor?
SmokeTestingLoad&Performance
Testing ProductionMonitoring(viaJenkins)
Page 21
DemoTime(ScreenshotsofsomeofwhatIwalkedthrough)
Page 35
REST-assured
• JavaDSLforeasytestingofRESTservices– Easytosubmitrequest(GET,POST,PUT,DELETE)– Easytovalidateandverifyresponse
Page 36
TheDSL
Given ConditionsWhen AccessingService
Then ExpectTheseResults
Page 37
WhatdoIuseREST-assuredfor?
WebServiceAcceptanceTesting RunfrequentlyaspartofCI
Page 38
DemoTime(ScreenshotsofsomeofwhatIwalkedthrough)
Page 43
Questions?
StanJónsson @sjonsson
sjonsson.com
Page 44
Summary
• LookedatvariousfreeWebServicetestingtools• ShowedhowtheycancovermostofyourWebServicetestingneeds
StanJónsson @sjonsson
sjonsson.com