How to Work with XML with QTP

0
24
Spread the love
  • 2
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    2
    Shares

XML it is extensible markup language rather document mark up language It is not a programming language but simply a meta-markup language for text documents.XML files contain text with simple readable tags .it describes the data within the document.

So it can be said XML players inner role that is the middle layer.I have collected one XML architecture from Internet…It says as

XML operates as a bridge between different OS,Platform,Programming language.It creates a simple architecture based complex datastructure.The XML tags describe the data content, but not the presentation

XML works on two ways:
1.It creates a temporary database .Systems can generate XML to send data to other computers.Even few applications use XML to store tempotrary static data
2.It plays an intergrated role in client server based model where client can sent data through XML file to server to purse.

The XML code looks like

There is a parent child relationship between the elements of XML doc.QTP tries to identify the structured XML tags.So while testing with XML we need to be sure XML is not changing or what ever is changing that is noticed.

let us understand how QTP understand the XML file.If XMl is in the application then you can record and insert checkpoint as XML.
But if you have already downloaded the XML file.You can load it from resources.

Step:1-


Step-2-

Step:3-

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 2
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    2
    Shares
Previous articleQTP and Its Tool Interface
Next articleHow To Capture Events in QTP?
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on [email protected]

LEAVE A REPLY

Please enter your comment!
Please enter your name here