Subscribe by Email


Showing posts with label Document Object Model. Show all posts
Showing posts with label Document Object Model. Show all posts

Wednesday, October 24, 2012

Explain advantages of DOM extension over VO extension?


In this article we shall discuss the advantages DOM has over VO. First, we shall discuss about these two silk test browser extensions individually. 

About VO Extension

- VO browser extension is related to the concept of virtual object. 
- An extension is a supplementary add–on component required for carrying out certain tests for web sites and web applications using silk test. 
- This virtual browser extension operates using a technique called the “sophisticated pattern recognition technique”.
- This technique helps in facilitating the object identification process and provides an actual view of the web sites and web applications.
- However, the HTML tags cannot be recognized with the help of this extension. - One thing to be noted is that only the objects present in the web pages can be recognized by the virtual object browser extension. 
- This extension however does not care about the implementation of these objects. 
- Identification of the object is done based up on the following:
  1. Control type
  2. Caption
  3. Associated text
  4. Control index
  5. Location and
  6. Window ID
- This browser extension is one of the methods used by the silk test for object recognition. 

About DOM Extension

- The second method is the Document Object Model and makes use of the DOM browser extension. 
- DOM browser extension is basically used for establishing a direct communication between the web application and web browser.
- The following tasks can be carried out:
  1. Recognition of the objects
  2. Categorization of the objects and
  3. Manipulation of the objects
- The DOM browser extensions works with the HTML code rather than working up on the visual patterns like the virtual browser extension does.
- Firstly, it identifies the browser window of the application which consists of the application that is currently being executed. 
- The object among the other web UI objects is identified based unique HTML elements that represent that particular UI object. 
- This is done by concatenating the following two things:
  1. HTML element identification and
  2. Browser window identification
- This DOM browser extension is known to operate on the standards laid down by the W3C or world wide web consortium.
- However, till date there are only two browsers which support this extension namely internet explorer 5+ versions and netscape 6. 
- These two web browsers provide the provision to silk test for making direct queries to them.

Advantages of DOM over VO

Now let us see what all advantages DOM has got over the VO browser extension:
  1. A rectangle is displayed over the VO or virtual object by the recorder as the recording is carried out by the quality assurance engineer.
  2. The text size as well as the actual name of the objects is easily recognized by the DOM extension as compared with the VO browser extension.
  3. The DOM extension is not dependent on the text size setting and browser size like the VO browser.
  4. DOM extension provides a better support to the border-less tables.
  5. More classes and properties are available in DOM extension as compared to the VO browser extension.
  6. Using DOM extension, you can maintain a great consistency over the object recognition process.
  7. DOM extension is quite fast in working as compared to the slow VO browser extension.
  8. One can expect some gain in the playback speed in DOM extension but the same is not possible with the VO browser extension.
  9. There is less crashing or freezing events in the recorder with the DOM extension and more in the VO browser extension.
  10. In VO browser extension the conversion of scripts is more like a daunting task but this not so with DOM.


Thursday, October 18, 2012

What is the Document Object Model (DOM) browser extension?


In this article we shall talk about the DOM browser extension of the silk test. But before coming to this topic we shall discuss a little about the DOM or the document object model. 

What is Document Object Model (DOM)?

- There was a need for a language and cross platform independent convention for the representation and interaction with the objects consisted in XHTML, HTML, XML etc documents. 
- Out of this need, only document object model was born. 
- Certain object methods are used for addressing as well as manipulating the objects present in the DOM tree.
- It is in the API or application programming interface where the public interface of the document object model is specified. 
- For rendering any of the documents mentioned above, an internal model quite similar to the document object model is used by most of the web browsers. 
- The nodes of all the documents are organized in a tree like structure which is commonly known as the DOM tree. 
- The top most node of this tree is termed as the document object.
- The HTML is downloaded in to the local memory and is parsed whenever a document is rendered in a browser. 
- Parsing is done using the DOM for the construction of the internal data structures that are employed for displaying the page in the browser window. 
- DOM’s application programming interface is also used by the java script for the inspection and modification of a web page. 

Use of DOM Browser Extension in SilkTest

- It acts as an add – on component that helps a big deal in the testing of the web applications. 
- A direct communication with the web browser is established by the DOM browser extension so that the recognition, categorization and manipulation of the objects on a web page can be made possible. 
- This direct communication with the web browser is established by the DOM browser extension.
- It is done by actually working with the HTML code rather than making use of the visual pattern recognition as relied on by the other such extensions or add ins. 
- The technique of visual pattern recognition is usually used by the virtual object browser extension. 
- The DOM browser extension identifies an object in a web application through the following steps:
  1. The web browser window in which the application is current executing is identified.
  2. Then the web UI object is identified that is based up on the HTML element representing the UI object.
- The whole identification of a UI web application object is possible only with the concatenation of the HTML element identification and the browser window identification.
- This document object model of the silk test makes use of the DOM standard stated by the W#C or World Wide Web consortium. 
- However, this DOM standard is currently supported by two web browsers namely Netscape 6 and internet explorer 5+ versions. 
- These two web browsers allow the external applications such as the silk test for making direct queries to the browser for obtaining information regarding the web page that is currently being displayed. 
- When the DOM browser extension is enabled on the host machine, an extension file is included so that the extension classes are made available to the user. 
- The silk test always makes sure that the extension classes are always visible in the library browser. 
- This is done so by addition of the of the help file of the extension (browser.ht) to the help files. 
- The properties defined for the DOM browser extension are merged with the default property sets which include the following:
  1. Color
  2. Font
  3. Values and
  4. Location


Facebook activity