Web Service Testing - PowerPoint PPT Presentation

1 / 34
About This Presentation
Title:

Web Service Testing

Description:

FM: Fault ... FM with No such operation' FMP. int, byte, short, long. null accepted. FMP ... choose between Web Services that accomplish the same task ... – PowerPoint PPT presentation

Number of Views:518
Avg rating:3.0/5.0
Slides: 35
Provided by: Malcol104
Category:
Tags: fm | service | task | testing | web

less

Transcript and Presenter's Notes

Title: Web Service Testing


1
Web Service Testing
  • Malcolm Munro
  • Samer Hanna
  • Department Computer Science
  • Durham University

2
Service-Oriented Architecture
  • SOA is an approach for building software systems
    that is based on loosely coupled services that
    have been described in a uniform way and that can
    be discovered and composed.

3
Web Services
  • Implementation
  • discovered using UDDI
  • interface describe using WSDL
  • interact using SOAP

4
Web Services Advantages
  • Based on open standards
  • Increased reusability and consequently reduced
    time to build Web based distributed applications
  • Facilitates the communication between
    heterogeneous applications using open standards
    and the Internet

5
Web Services Problems
  • Malicious Service Requesters
  • Because Web Services are advertised on the
    Internet then any service requester or consumer
    can access them - some might be malicious
    requesters
  • Trustworthiness
  • Service requesters can only see the contract
    (WSDL) of a Web Service but not the source code
  • Selection
  • Service requesters have no criteria to choose
    between Web Services that accomplish the same task

6
WSDL
  • An XML-based language for describing Web Services
  • the operations it provides
  • the data types of the operations input and
    output parameters
  • how it can be invoked
  • where it resides

7
A Model for Web Service Invocation
8
Web Service Testing Challenges
  • Lack of technologies for Web Services testing
  • Current technologies cannot ensure Web Services
    trustworthiness
  • Existing traditional software testing techniques
    deserve re-inspection in the domain of Web
    Services and new techniques are required
  • Unavailability of the source code of a Web
    Service to the Service Consumers.
  • After analysis of WSDL documents it has been
    found that the descriptions provided for the
    input parameters must be extended to enable
    efficient test cases generation (increase
    testability)

9
Trustworthiness Quality Model
Trustworthiness assurance that a system will
perform as expected
Robustness the degree to which a system or
component can function correctly in the presence
of invalid inputs or stressful environment
conditions
10
Software Testing
  • Testing is a Software Engineering technique that
    is used to
  • Detect faults
  • Assess quality attributes
  • Testing techniques can be categorized as
  • Black-box vs White-Box testing
  • Validation vs Defect or Fault-based testing
  • Testing includes
  • Designing test data
  • Using the test data as input to the system under
    test
  • Comparing the results with the expected results

11
Fault Based Testing
12
Web Services Robustness Failure Modes
13
Web Services Robustness Testing Architecture
14
WSDL Data Types
  • Simple Data Types
  • Built-in primitive (integer, string)
  • Derived from built-in primitive
    (nonPositiveInteger)
  • User-derived (constraining facets integer 2..5)
  • List
  • Union
  • Complex Data Types
  • consists of one or more elements and attributes
    of simple data types

15
Hierarchy of XML Data Types
16
A Schema for Test Case Generation Rules
17
Constraining Facets
18
Example of Generation Rules
19
W3C XML Schema Simple Data Types
20
Notation
  • N Numeric Data types
  • S String Data types
  • DT Date-Time Data types
  • B boolean

21
Test Case Generation Rules for Primitive Data
Types
22
Test Case Generation Rule
23
Test Case Generation Rule
24
Numeric XML Schema Data Type Boundaries
25
Test Case Generation Rules for User-Derived Data
Types
26
Test Case Generation Rule
27
WS-Robust Tool
  • Java version 1.5.0_06.
  • WSDL4J (Java API for WSDL)
  • Eclipse plug-in that provide an API and
    implementation for XML Schema.
  • Document Object Model (DOM) (W3C, 2005) XML
    parser.
  • MySQL
  • Axis 1.4
  • Apache Tomcat

28
Notation
  • FMP Fault Message with Proper fault string sent
    by the Web Service platform
  • RM Response Message
  • FM Fault Message
  • NA Not Applicable.
  • null accepted null has been accepted as input
    and response message has been received

29
Responses for Numeric Data Types
30
Responses for Numeric Data Types
31
Axis vs GLUE
  • Java version 1.5.0_06.
  • Axis 1.4
  • Apache Tomcat
  • GLUE 1.2

32
Double Parameter
33
String Data Type
34
Conclusions
  • Automated the process of generating test cases to
    assess Web Services
  • Addressed the Service Requesters trustworthiness
    problem by assessing the robustness quality
    attribute
  • Addressed the Service Consumers selection
    problem by giving the Consumer the robustness
    criteria to choose between Web Services that
    accomplish the same task
  • Addressed the problem of the lack of technologies
    for the verification of Web Services
  • Addressed the Web Services testing problem of the
    unavailability of the source code by designing
    test cases based only on WSDL
  • Addressed the Web Services testing challenge of
    modifying the traditional software testing
    techniques to make them work with Web Services
  • Addressed the effect of the specific Web Service
    Platform on Web Services testing and quality
    attributes assessment
Write a Comment
User Comments (0)
About PowerShow.com