You are on page 1of 20

WEB SERVICES TESTING

Classification: Confidential (V3)


AGENDA

July 21, 2020

Classification: Restricted (V2)


WEB SERVICE (WS)
• Is an application or application component that is accessible on the Web

• Is intended to be used by another application - the client application

• Web services do not have a visual interface, such as text boxes, radio buttons, and so on.

Classification: Restricted (V2)


WEB SERVICE (WS)

The waiter’s role in this scenario closely


mirrors the role of a WS in the delivery
of data on the modern web.

• Receives a set of instructions (a


request) from a source (such as an
application or engineer)
• Takes that request to the database
• Fetches the requested data or
facilitates a set of actions
• Returns a response to the source

TITLE PRESENTATION July 21, 2020

Classification: Restricted (V2)


HTTP STATUS CODES
• 1XX INFORMATIONAL
– 100 CONTINUE
• 2XX SUCCESS
– 200 OK
– 206 PARTIAL CONTENT
• 3XX REDIRECTION
WEB SERVICE – 300 MULTIPLE CHOICES
– 303 SEE OTHER
• 4XX CLIENT ERROR
– 400 BAD REQUEST
– 403 FORBIDDEN
– 404 NOT FOUND
• 5XX SERVER ERROR
– 500 INTERNAL SERVER ERROR

Classification: Restricted (V2)


Types of Web Service
• Simple Object Access Protocol (SOAP)
WEB SERVICES • Representational State Transfer (REST)
• GraphQl

Classification: Restricted (V2)


SOAP SERVICES

Classification: Confidential (V3)


Soap Services

• Is a communication protocol
• Is for communication between
applications
WEB SERVICES • Is a format for sending messages
• Is based on XML

Classification: Restricted (V2)


WSDL

• Stands for Web Services Description


Language
WEB SERVICES • Is written in XML
• Is used to describe Web services
• Is also used to locate Web services

Classification: Restricted (V2)


CALCULATOR SERVICE EXAMPLE

Add
• WSDL: http://www.dneonline.com/calculator.asmx?WSDL Divide

• Prerequisites: SoapUI Multiply

Subtract

Classification: Restricted (V2)


NUMBER CONVERSION SERVICE EXAMPLE

• WSDL: http://www.dataaccess.com/webservicesserver/number NumberToWords


conversion.wso?WSDL
NumberToDollars

• Prerequisites: SoapUI

Classification: Restricted (V2)


Classification: Restricted (V2)
REST SERVICES

Classification: Confidential (V3)


Rest Services

Is interacting with stateful resources,


rather than messages or operations

The key elements of a RESTful


WEB SERVICE implementation are as follows:
 Request Verbs
 Request Headers
 Request Body
 Response Body
 Response Status codes

Classification: Restricted (V2)


HTTP METHODS (VERBS)
GET
The GET method is used to retrieve information from the
given server using a given URI.
POST
A POST request is used to send data to the server, for
example, customer information, file upload, etc. using
WEB SERVICE HTML forms.
PUT
Replaces all current representations of the target
resource with the uploaded content.
DELETE
Removes all current representations of the target
resource given by a URI.

Classification: Restricted (V2)


USERS API /public-api/users

EXAMPLE /public-api/users

/public-api/users/{userId}

• URL: https://gorest.co.in/ /public-api/users/{userId}

• Prerequisites: Postman /public-api/users/{userId}

/public-api/users?first_name=john

Classification: Restricted (V2)


HOW TO TEST?

• CLIENT PART THAT USES THIS SERVICE


• NEGATIVE CASES
• HTTP STATUSES
WEB SERVICE • AUTHORIZATION
• RESPONSE TIMEOUT
• LOAD TESTING
• SECURITY TESTING

Classification: Restricted (V2)


ROUND TABLE
How was the today
session?

Focus
Applications
Information
Clarity
Interactivity
Subject

Classification: Confidential (V3)


THANK YOU ALL!

Gabriela Trinca
Monica Marfa

Classification: Confidential (V3)


LINKS:

https://www.guru99.com/soapui-tutorial.html
https://www.tutorialspoint.com/restful/index.htm
https://www.guru99.com/restful-web-services.html
https://www.guru99.com/postman-tutorial.html
https://www.toolsqa.com/postman-tutorial/
https://gorest.co.in/
https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html

TITLE PRESENTATION July 21, 2020

Classification: Restricted (V2)

You might also like