Showing posts with label Syntax. Show all posts
Showing posts with label Syntax. Show all posts

Thursday, August 9, 2012

Web based Test Objects and Test Operations


Test object is an object that qtp creates in the test to represent the actual object in the application.
Below are some of the web application Test Objects, based on the below syntax the test objects are been placed.

Syntax:

In which browser.In which page.In which object.what operation

As per above syntax the below script will be generate,

Browser("BrowserName").Page("PageName").Object("ObjectName").Operation

For Example:

Browser("Google").Page("Google").webedit("q").set "QTP 11.0"
Browser('Google").Page("Google").webbutton("Googlesearch").Click

Properties of an Object Names:

Browser Name: Google
Page Name: Google
Edit box: q
Button Name: Googlesearch

Test Objects:














Test Operations:

There will be no change in Test Operations, For and Windows the test operations will be same