QTP Interview Questions-II
QuickTest records the operations we perform, displays them as steps in the Keyword View, and generates them in a script (in the Expert View).
It Records exact mouse and keyboard operations, we can use this mode for recording continues mouse operations like digital signatures, paints etc..
This mode doesn't generate statements for each and every operation, generates all operations in a Track file.
Object: Object is something, which has structure and properties.
Software Object: an object is any entity that can be manipulated by the commands of a programming language, such as a value, variable, function, or data structure.
GUI (Windows) Environment: Window, Dialog box, Edit Box, Button, Check Box, Radio Button, List Box and Combo Box etc...
Web Environment: Browser, Page, Link, Image, edit Box, Button, Grid, Frame Etc..
There are 4 types of Objects available in QTP.
1) Run-time Objects
2) Test Objects
3) Utility Objects
4) Automation / User Defined Objects
These are QTP reserved objects, used for Testing and Result reporting.
e) environment etc...
An object that is exposed to other applications or programming tools through Automation interfaces.
Object: It is something which has structure and properties
Property: an attribute of an Object.
Value: Value of the Property
It is a Storage place for Storing Objects, QTP has 2 types of Repositories.
a) Local Repository
b) Shared Repository
QTP Creates a Local Repository for every Action during Recording automatically and also QTP maintenance Local Repositories, but user can edit these repositories.
It is a QTP Internal file, extension is .mtr
User Creates Shared Repositories by adding objects in Object Repository Manager.This can be shared among nuber of tests.
User has to maintain shared repository files
Shared Repository files are External files, extension is .tsr
QTP is providing a feature called "Define New Test Object" for creating new objects without Application. This feature available in Local Repository and Object Repository Manager.
We Can combine Repositories using Object Repository Merge Tool. It is available in Object Repository Manager
a) Statement: an Instruction or a minimal executable unit
b) Action: Set of Statements
c) Test: One or more Actions
RepositoriesCollection.Add "path of the Repository file"