Testing XML


Published on

Published in: Technology
1 Comment
  • Could you please send me this PPT to me on: mbiradar23@rediffmail.com
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Testing XML

  1. 1. Testing XML Pallavi Patwa CSTE,ISTQB (Foundation)
  2. 2. Agenda <ul><li>About Checking XML </li></ul><ul><li>XML Verifications & Validations </li></ul><ul><li>Tools available </li></ul><ul><li>Use of Tools </li></ul>
  3. 3. About Checking XML <ul><li>XML files contain text with simple tags that describe the data within an XML document . </li></ul><ul><li>Testing of XML can be done by verifying data content of XML files </li></ul><ul><li>A few common XML verifications & validations are described as follows </li></ul>
  4. 4. Schema Validation XML Elements Verification DTD Validation XML Data Verification XML Verifications & Validations
  5. 5. XML Data Verification <ul><li>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 </li></ul><ul><ul><ul><li>for example, country names, zip codes, or area codes. </li></ul></ul></ul><ul><li>Although this data can change over time, it is normally quite static. </li></ul><ul><li>( Cont..) </li></ul>
  6. 6. XML Data Verification (cont..) <ul><li>You can test an XML file by verifying that the data has not changed from one application release to another. </li></ul>
  7. 7. XML Elements Verification <ul><li>An XML file can consist of elements with attributes and values (character data). </li></ul><ul><li>There is a parent and child relationship between the elements, and elements can have attributes associated with them. </li></ul><ul><li>( Cont..) </li></ul>
  8. 8. XML Elements Verification (cont..) <ul><li>If any part of this structure (including data) changes, your application’s ability to process the XML file may be affected. </li></ul><ul><li>For an XML testing, you can verify the content of an element to make sure that its tags, attributes, and values have not changed. </li></ul>
  9. 9. DTD Validations <ul><li>XML files are often an intermediary that retrieves dynamically changing data from one system. </li></ul><ul><li>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. </li></ul><ul><li>( Cont..) </li></ul>
  10. 10. DTD Validation (cont..) <ul><li>You can parameterize the XML data values in order to check an XML document or file whose data changes in a predictable way. </li></ul>
  11. 11. Schema Validation <ul><li>XML documents and files often need a well-defined structure in order to be portable across platforms and development systems. </li></ul><ul><li>One way to accomplish this is by developing an XML schema, which describes the structure of the XML elements and data types . </li></ul><ul><li>( Cont..) </li></ul>
  12. 12. Schema Validation (cont..) <ul><li>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. </li></ul>
  13. 13. Automation of XML checking <ul><li>Following tools are available to automate XML testing </li></ul><ul><ul><li>Mercury interactive Quick Test Pro </li></ul></ul><ul><ul><li>Segue Silk Test </li></ul></ul>
  14. 14. Use of Tools (QTP) <ul><li>QTP supports automation of XML file by way of </li></ul><ul><ul><li>XML Web Page/Frame Checkpoint:- Checks an XML document within a Web page or frame. </li></ul></ul><ul><ul><li>File Checkpoint :- Checks a specified XML file. </li></ul></ul>
  15. 15. Use of Tools (QTP) <ul><li>Apart from checking , element(s), attribute(s), and/or value(s) that you want to check. </li></ul><ul><li>QTP also helps to check that the XML structure adheres to a specific XML schema, by Activate Schema Validation feature </li></ul>
  16. 16. Use of Tools (Silk Test) <ul><li>To test XML with help of Silk test XMLParserClass is available </li></ul>
  17. 17. Thank You !!