0% found this document useful (0 votes)
45 views2 pages

Testing XML

This document discusses testing of XML documents. It outlines various types of XML testing including validating XML data, elements, and structure against DTDs and schemas. It also discusses tools like Quick Test Pro and Silk Test that can automate XML testing. These tools allow testing that XML data, elements, attributes and structure adhere to expectations and have not changed from previous releases.

Uploaded by

saprajpal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views2 pages

Testing XML

This document discusses testing of XML documents. It outlines various types of XML testing including validating XML data, elements, and structure against DTDs and schemas. It also discusses tools like Quick Test Pro and Silk Test that can automate XML testing. These tools allow testing that XML data, elements, attributes and structure adhere to expectations and have not changed from previous releases.

Uploaded by

saprajpal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Testing XML - Presentation Transcript

1. Testing XML Pallavi Patwa CSTE,ISTQB (Foundation)

2. Agenda

o About Checking XML

o XML Verifications & Validations

o Tools available

o Use of Tools

3. About Checking XML

o XML files contain text with simple tags that describe the data within an XML document .

o Testing of XML can be done by verifying data content of XML files

o A few common XML verifications & validations are described as follows

4. Schema Validation XML Elements Verification DTD Validation XML Data Verification XML Verifications & Validations

5. XML Data Verification

o 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.

o Although this data can change over time, it is normally quite static.

o ( Cont..)

6. XML Data Verification (cont..)

o You can test an XML file by verifying that the data has not changed from one application release to another.

7. XML Elements Verification

o An XML file can consist of elements with attributes and values (character data).

o There is a parent and child relationship between the elements, and elements can have attributes associated with them.

o ( Cont..)

8. XML Elements Verification (cont..)

o If any part of this structure (including data) changes, your application’s ability to process the XML file may be affected.

o For an XML testing, you can verify the content of an element to make sure that its tags, attributes, and values have not
changed.

9. DTD Validations

o XML files are often an intermediary that retrieves dynamically changing data from one system.

o 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.

o ( Cont..)
10. DTD Validation (cont..)

o You can parameterize the XML data values in order to check an XML document or file whose data changes in a predictable
way.

11. Schema Validation

o XML documents and files often need a well-defined structure in order to be portable across platforms and development
systems.

o One way to accomplish this is by developing an XML schema, which describes the structure of the XML elements and data
types .

o ( Cont..)

12. Schema Validation (cont..)

o 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.

13. Automation of XML checking

o Following tools are available to automate XML testing

 Mercury interactive Quick Test Pro

 Segue Silk Test

14. Use of Tools (QTP)

o 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.

15. Use of Tools (QTP)

o Apart from checking , element(s), attribute(s), and/or value(s) that you want to check.

o QTP also helps to check that the XML structure adheres to a specific XML schema, by Activate Schema Validation feature

16. Use of Tools (Silk Test)

o To test XML with help of Silk test XMLParserClass is available

17. Thank You !!

You might also like