Showing posts with label Browser. Show all posts
Showing posts with label Browser. 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 



Sunday, August 5, 2012

Generation of Scripts for Web Application

Record and Playback:

Browser("name of the application in the browser").Page("name of the page in the browser").object("name of the object identified").Operation

So, This is the basic steps of how QTP generates the scripts while Recording.

The above scripts will be play back once the browser is in default open state, If the browser is closed and you need to play back the script automatically in qtp just you need to add the below script,

Systemutil.run"C:\Program Files\Internet Explorer\iexplore.exe","www.google.co.in"
Browser("name of the application in the browser").Page("name of the page in the browser").object("name of the object identified").Operation