Top Banner
Automated testing of web-services
51

SOA Automation testing - Intetics

Feb 03, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SOA Automation testing - Intetics

Automated testing of web-services

Page 2: SOA Automation testing - Intetics

SOA architectureWhat is a web-service?Automation using SOAP UIAutomation using HP QT ProA case from practice

Page 3: SOA Automation testing - Intetics

SOA architecture

Page 4: SOA Automation testing - Intetics

A web-service is a remote program module, providing its functional

using http

Web-service?

Page 5: SOA Automation testing - Intetics

SOA principles

Information system components do not depend on the technical features

of implementation,

Components communicate with each other via open standards,

Using services which do not depend on concrete applications, with the

uniform interfaces of access to them,

Each component, making up the information system implements an

independent, repeatable business function,

Organization of services as loosely-coupled components for system

integration.

Page 6: SOA Automation testing - Intetics

Enterprise Service Bus(ESB)

SOA Registry

Workflowengine

Servicebroker

SOA supervisor

Business service

Network

Service-Oriented Architecture

(SOA)

Page 7: SOA Automation testing - Intetics

What is a web service?

Page 8: SOA Automation testing - Intetics

A web-service is a remote program module, providing its functional

using http

Web-service?

Page 9: SOA Automation testing - Intetics

<definitions>

<!—abstract descriptions-->

<types>

Definition of types........

</types>

<message>

Definition of message....

</message>

<portType>

Definition of port........

</portType>

<!– concrete description-->

<binding>

Definition of binding.......

</binding>

</definitions>

WSDL(Web Services Description Language) is an XML-oriented language,

describing a web-service

WSDL?

Page 10: SOA Automation testing - Intetics

SOAP?

• SOAP Simple Object Access Protocol

• SOAP is a communication protocol

• SOAP is used for binding between applications

• SOAP is a format for message communication

• SOAP provides communication via Internet

• SOAP does not depend on the platform

• SOAP does not depend on the language

• SOAP is based on XML

• SOAP is easy and extendible

Page 11: SOA Automation testing - Intetics

SOAP?

SOAP specification defines an XML- “envelope” for message communication

<soap:Envelope mlns:soap="http://www.w3.org/2001/12/soap-envelope"

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Header>

...

</soap:Header>

<soap:Body>

...

<soap:Fault>

...

</soap:Fault>

</soap:Body>

</soap:Envelope>

Page 12: SOA Automation testing - Intetics

UDDI?

UDDI system (Universal Description, Discovery and Integration ) allows

companies to make their web-service available to the public

Page 13: SOA Automation testing - Intetics

And what to test?

Business logic. We test to meet the requirements

Standards compliance, if one has used a nonconventional

platform.

Interfaces. Validators and data converters.

Error handling

Page 14: SOA Automation testing - Intetics

Why is automation needed?

In most cases GUI is not provided

Reduces the time for testing easy scenarios

Regressive testing has not been cancelled by anyone

Irreplaceable when carrying out load-testing

Page 15: SOA Automation testing - Intetics

Automation using SOAP UI

Page 16: SOA Automation testing - Intetics

Web-services testing

Web-services calling

Web-services development

Web-services simulation and mocking

Page 17: SOA Automation testing - Intetics

Functional testing

Page 18: SOA Automation testing - Intetics

Functional testing

Page 19: SOA Automation testing - Intetics

Functional testing

Page 20: SOA Automation testing - Intetics

Functional testing

Page 21: SOA Automation testing - Intetics

Functional testing

Page 22: SOA Automation testing - Intetics

Functional testing

Page 23: SOA Automation testing - Intetics

Functional testing

Page 24: SOA Automation testing - Intetics

Load-testing

Page 25: SOA Automation testing - Intetics

Load-testing

Page 26: SOA Automation testing - Intetics

Testing using simulators

Page 27: SOA Automation testing - Intetics

Testing using simulators

Page 28: SOA Automation testing - Intetics

Testing using simulators

Page 29: SOA Automation testing - Intetics

Testing using simulators

Page 30: SOA Automation testing - Intetics

Testing using simulators

Page 31: SOA Automation testing - Intetics

Testing using simulators

Page 32: SOA Automation testing - Intetics

Testing using simulators

Page 33: SOA Automation testing - Intetics

Testing using simulators

Page 34: SOA Automation testing - Intetics

Automation using HP QT Pro

Page 35: SOA Automation testing - Intetics

Web service

Methods

QTP

(WSDL for scanning)

Using a WebService object allows to set up a qtp communication process– a web-

service

Page 36: SOA Automation testing - Intetics

Defining a web service object

Page 37: SOA Automation testing - Intetics

Defining a web service object

Page 38: SOA Automation testing - Intetics

Defining a web service object

Page 39: SOA Automation testing - Intetics

Defining a web service object

Page 40: SOA Automation testing - Intetics

Defining a web service object

Known issues:

Microsoft .NET Framework WSE

1. An array in an array as parameters

2. Requests from DIME attachments

Apache Axis

1. Entity objects

2. Conflict of methods names

3. Testing of headers

4. Protected IIS server

Page 41: SOA Automation testing - Intetics

Definition of in parameters

Page 42: SOA Automation testing - Intetics

Definition of in parameters

Page 43: SOA Automation testing - Intetics

Results review

Page 44: SOA Automation testing - Intetics

Results review

Page 45: SOA Automation testing - Intetics

VerifyXMLFile – compares two XML files;

VerifyXMLValue- checks for tags for the expected result;

ValidateXML – checks an XML file for compliance with thedefined scheme;

OutputXMLValue – returns the value of the defined tag.

..\%QuickTest Professional HOME%\dat\BPT_Resources\

Intrinsic functions

Page 46: SOA Automation testing - Intetics

A case from practice

Page 47: SOA Automation testing - Intetics

Alternative VBS variant

Page 48: SOA Automation testing - Intetics

XMLHttpRequest.open(…)

XMLHttpRequestclose(…)

XMLHttpRequest.send(…)

XMLHttpRequest.responseXML

XMLHttpRequest

Page 49: SOA Automation testing - Intetics

DOMDocument.load(…)

DOMDocument.GetElementsByTagName(…)

DOMDocument

Page 50: SOA Automation testing - Intetics

To sum up:

The strategy of testing web-services does not differ in any way from testing other

products

Automation is the matter of importance here considering the absence of the user

interface

Any means of automation can suit, it is to your choice which one is better

Page 51: SOA Automation testing - Intetics

Thank you for your attention

Your questions