Friday, May 27, 2011

Record and Run Settings:

Record and Run Settings:

For every new test one has to compulsorily do these settings before recording or running. These settings will make to understand on which applications it need to concentrate while recording or running.

Navigation:     
1) Activate the menu item test
2) Select the option record and run settings
3) Select one of the following options
i) Record and run test on any opened windows based application
ii) Record and run on this application (opened on session start)
4) If at all second option is selected then click on add button
5) Browse the desired application part
6) Click on OK
7) Click on apply & OK.

Operational overview of Recording:
1) It will generate corresponding script statements for every user action on the application.
2) It will store the required related test object information in the object repository.

Operational overview of Running:

During running QTP will doing the following.
1) It will read the script statement and understands what action to be performed on which object.
2) Then it realizes it need to identify the object first to perform the action
3) To identify the object it requires some information for that information it will go the object repository and search.
4) Once the information is found using this information it will try to identify the original object.
           Once the object is identified it will perform the action on it.

(Record and Run Settings)

Record and Run Settings:


QTP Automation Object Model:

Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.