• Save
Testing XML
Upcoming SlideShare
Loading in...5
×
 

Testing XML

on

  • 20,496 views

 

Statistics

Views

Total Views
20,496
Views on SlideShare
20,433
Embed Views
63

Actions

Likes
9
Downloads
0
Comments
1

2 Embeds 63

http://www.slideshare.net 62
http://translate.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Could you please send me this PPT to me on: mbiradar23@rediffmail.com
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Testing XML Testing XML Presentation Transcript

  • Testing XML Pallavi Patwa CSTE,ISTQB (Foundation)
  • Agenda
    • About Checking XML
    • XML Verifications & Validations
    • Tools available
    • Use of Tools
  • About Checking XML
    • XML files contain text with simple tags that describe the data within an XML document .
    • Testing of XML can be done by verifying data content of XML files
    • A few common XML verifications & validations are described as follows
  • Schema Validation XML Elements Verification DTD Validation XML Data Verification XML Verifications & Validations
  • XML Data Verification
    • An XML file can be a static data file that is accessed in order to retrieve commonly used data for which a quick response time is needed
        • for example, country names, zip codes, or area codes.
    • Although this data can change over time, it is normally quite static.
    • ( Cont..)
  • XML Data Verification (cont..)
    • You can test an XML file by verifying that the data has not changed from one application release to another.
  • XML Elements Verification
    • An XML file can consist of elements with attributes and values (character data).
    • There is a parent and child relationship between the elements, and elements can have attributes associated with them.
    • ( Cont..)
  • XML Elements Verification (cont..)
    • If any part of this structure (including data) changes, your application’s ability to process the XML file may be affected.
    • For an XML testing, you can verify the content of an element to make sure that its tags, attributes, and values have not changed.
  • DTD Validations
    • XML files are often an intermediary that retrieves dynamically changing data from one system.
    • The data is then accessed by another system using Document Type Definitions (DTD), enabling the accessing system to read and display the information in the file.
    • ( Cont..)
  • DTD Validation (cont..)
    • You can parameterize the XML data values in order to check an XML document or file whose data changes in a predictable way.
  • Schema Validation
    • XML documents and files often need a well-defined structure in order to be portable across platforms and development systems.
    • One way to accomplish this is by developing an XML schema, which describes the structure of the XML elements and data types .
    • ( Cont..)
  • Schema Validation (cont..)
    • You can validate schema to passing negative & positive data in XML file to check that each item of content in an XML file adheres to the schema description of the element in which the content is to be placed.
  • Automation of XML checking
    • Following tools are available to automate XML testing
      • Mercury interactive Quick Test Pro
      • Segue Silk Test
  • Use of Tools (QTP)
    • QTP supports automation of XML file by way of
      • XML Web Page/Frame Checkpoint:- Checks an XML document within a Web page or frame.
      • File Checkpoint :- Checks a specified XML file.
  • Use of Tools (QTP)
    • Apart from checking , element(s), attribute(s), and/or value(s) that you want to check.
    • QTP also helps to check that the XML structure adheres to a specific XML schema, by Activate Schema Validation feature
  • Use of Tools (Silk Test)
    • To test XML with help of Silk test XMLParserClass is available
  • Thank You !!