Tuesday, January 8, 2019
5:00 PM
World Business Zone
UFT Automation
No comments
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:
Generation of Scripts for Web Application 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").OperationSo, This is the basic … Read More
Concept of Object Repository (OR) Concept of Object Repository (OR) Add Objects:Resources --> Object Repository (Ctrl+R) --> Objects --> Add Objects to Local --> Choose the Auto (or) Object --> All object TypeBy doin… Read More
Debug the QTP Scripts Debug the QTP Scripts 1. Pause2. Step into3. Stepout4. Stepover5. Debug Viewer … Read More
How may Types of Recording in UFT / QTP? How may Types of Recording in UFT / QTP? Three types of Recording in UFT/QTP. 1. Normal Recording:2. Analog Recording:3. Low Level Recording:… Read More
Enhancing the Scripts for Automation Enhancing the Scripts for Automation 1. VB Scripts2. QTP Methods3. Parameterization4. Checkpoints5. Synchronization6. Regular Expression7. Recovery Scenarios8. Environment Variable… Read More
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment