Tuesday, January 8, 2019


Keyword Driven

Object:

         As very simple to describe about object, "Each and everything that we seeing in Application is called an Object", The identified objects are been stored in object repository,

                          QTP --> OR --> Application

        When the QTP play back the recorded scripts, At first QTP will look for objects that we stored in the repository, "Object Repository" is the place where it holds its properties and its values, Here we can store all the object information's which is available  in the application, and it acts as a interface between QTP and Application

Steps to go for Object Repository:

1. Open QTP
2. Click on "Resources" menu
3. Click on "Object Repository" (Ctrl+R)

After the above steps, Click on "Add Objects to local" Menu 






















In above screenshot i just captured the all objects of "www.google.co.in", Here the selected Test Object is "Google" the object Properties of the google is the same highlighted in Right side of the page,

Name: Google
Class: Browser
Repository: Local (Stored in Local system)

By having the above object properties we can generate the script without recording, since the captured object is get stored in local,

Browser("Google").Page("Google").WebEdit("q").Set"QTP"
Browser("Google").Page("Google").WebButton("Google Search").Click

the above script will "Google Search" the word "QTP" once it get playback from the "Object Repository"






Related Posts:

  • Descriptive Programming (DP) in QTP Descriptive Programming (DP) in QTP Descriptive Programming in QTP will be write in the case of the objects are not present in the Object Repository (OR), This method of programming reduces the time for automation… Read More
  • QTP Methods QTP Methods QTP methods are used to extract the properties of a selected object in an application, There are some list of properties that comes under QTP methods, Capture Bitmap Child Objects GetRoProperty GetToProperty G… Read More
  • Web based Test Objects and Test Operations 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 syn… Read More
  • Capture Bitmap Method in QTP Capture Bitmap Method in QTP Capture Bitmap:            This method is used to capture the image from the selected object. The captured image will be save in the given path in the bitmap… Read More
  • QTP Crypt Object QTP Crypt Object Crypt Object in QTP is used to Encrypt the given password, This scenario is just to confirm whether the given password is saving as Encrypted, This object is used in different ways in different methods,Belo… Read More

0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

151,890

Blog Archive