Book Image

Designing and Implementing Test Automation Frameworks with QTP

By : Ashish Bhargava
Book Image

Designing and Implementing Test Automation Frameworks with QTP

By: Ashish Bhargava

Overview of this book

<p>As software testing is maturing, the focus is shifting towards test automation. The key is to learn and grow skills in framework designing and start contributing to project organization goals.</p> <p>Through a helpful mix of conceptual and practical aspects, you will learn everything you need to know related to the implementation of frameworks using QTP. Through simple examples, you will gradually develop the skills needed to execute concepts and code blocks used to design and implement the test automation framework.</p> <p>This tutorial-based guide demonstrates an easy way to implement concepts to create a portable framework across the various versions of QTP. You will learn about the automation lifecycle and gradually develop technical concepts related to each phase. Within a short amount of time, you will be able to deal with challenges in test automation. "Designing and Implementing Test Automation Frameworks with QTP" uses a simple, yet elegant approach and gives the reader all the skills and knowledge they need to implement the framework.</p>
Table of Contents (15 chapters)
Designing and Implementing Test Automation Frameworks with QTP
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Automation Life Cycle and Automation Goals
Index

Document Object Model


The Document Object Model (DOM) allows representation of an HTML document as a tree structure as well as allows dynamic access and updating of content, structure, and style of an HTML document.

HTML DOM

HTML DOM defines objects and properties of HTML elements and methods to access them. In simpler words, HTML DOM allows standard ways to add, retrieve, change, or delete HTML elements. In the HTML DOM everything is considered as a node:

  • The entire document is a node called node document

  • Each HTML element is an element node

  • Text inside element is a text node

  • Every attribute in a node is an attribute node

  • Comment is a comment node

Node relationships – parents, children, and siblings

HTML is a mark-up language which defines tags; these tags are associated with each other in a relationship which is shown as following:

  • Each document has one root element and that does not parent.

  • A node can have many children but only one parent.

  • Nodes sharing the same parents are called siblings.

Look...