Webservices Testing New
Webservices Testing New
/ User
Google SBI
Pay Server/
service
Verify---XML//SOAP Message/ response
Testing
Important Terms of Web Service Testing-
HTTP://WWW.XIGNITE.COM/XCURR
ENCIES.ASMX?WSDL
Classification of Web Services-
SOAP Service REST Service
SOAP stands for Simple Object Access REST stands for Representational State
Protocol. Transfer.
SOAP services used for web-based Rest services used for web based, Mobile
application only based, Desktop based application
SOAP services are largely based on XML REST services use multiple standards like
HTTP, JSON, URL, and XML
SOAP uses XML for request & response Rest uses HTTP/URL/ JSON for request
& response like HTML, Text, JSON,
XML etc
For testing SOPA service we require For testing REST service, we require
WSDL file URL/ URI
SOAP (designed) is a protocol. REST (designed) is an architectural style.
Performance wise Requires more Requires fewer bandwidth
bandwidth
SOAP supports SSL security REST supports SSL & HTTPS security
It is taking more time to respond It is faster for response
Type of Request/ Methods- S1 S2
SBI
Google Pay
Server/
service
http://www.xignite.com/xCurrencies.asmx?wsdl
1. Open tool
2. Go to file and click on new SOAP request
3. Copy WSDL file link into SOAP request tab & press ok
4. Open one responses
5. Fill the “?” place in SOAP request of xml format
SOAP SERVICE & REST METHOD TEST USING
SOAPUI TOOL-
Sr. Action/ Test Cases Expected Result Statu Pass
No Method s code /Fail
1 Verify that SOAP In response we are 200 - P
Get- response of getting valid data ok
respective web
http://www service
.dneonline.
2 Verify that for In response we 400 – P
com/calcul
invalid SOAP should get “Bad Bad
ator.asmx?
response of request” reques
wsdl-
respective web t
service
ADD
3 Service Verify that SOAP Value should be 200 - P
response should present in integer ok
contain valid integer Ex. 3 + 9 = 12
no. for valid request
of integer no.
4 Verify that SOAP Response should 400 – F
response should contain fault Bad
contain invalid messages reques
integer no. (0.88, one) t
in request
REST METHOD TEST USING POSTMAN TOOL-
Collection-
Postman Collections are a group of saved requests you
can organize into folders
How to lock defect in web service testing-
1. Open tool “JIRA/HPALM”
2. Add description of Defect – Verify that for hitting service for
invalid test data response should show ‘400- bad request’ status code
3. Add a picture-
A web service require a Network for it’s A API service not require a Network for
operation it’s operation
Web service only support only XML API service only support XML & JSON
Web service uses SOAP, REST as a means API may use any communication to
of communication initiate interaction between applications
Soap, RESET, RPC, XML-RPC, Resfull
Service etc
All web services are APIs Not all APIs are web services
Questions-