QTP basics, Templates used, Problems using QTP
AUTOMATION USING QTP
PART-1
Theory Basics
Steps to create Per
Action Object Repository:
1. Open a new script in QTP. (By default each test will have one action i.e, Action1)
2. Ensure that the record and run settings are provided.
3. Click on record button
4. Record the script for Action1
5. Select insert --> Call to new Action
6. Provide the action name and description
7. Click on OK
8. Record the script for Action2
9. Repeat the above 4 steps to create multiple actions.
10. Click on stop recording
1. Open a new script in QTP. (By default each test will have one action i.e, Action1)
2. Ensure that the record and run settings are provided.
3. Click on record button
4. Record the script for Action1
5. Select insert --> Call to new Action
6. Provide the action name and description
7. Click on OK
8. Record the script for Action2
9. Repeat the above 4 steps to create multiple actions.
10. Click on stop recording
Difference between
Object Repository & Object Spy:
1. An Object repository (is similar to Database, but not DB)maintains only the unique information about the object. Whereas Object spy displays all the properties of the object.
2. The contents of object repository are editable. Whereas the contents of object spy are not editable.
1. An Object repository (is similar to Database, but not DB)maintains only the unique information about the object. Whereas Object spy displays all the properties of the object.
2. The contents of object repository are editable. Whereas the contents of object spy are not editable.
Keyword Driven
Framework ?
Keyword Driven Approach means; Keywords, example: Commands, functions,
methods, statements etc., are used for creating Test scripts
For Flight App-
Four Functions needed to be Created with KEYWORDS:
1. Login
2. Insert Order
3. Update Order
4. Close App
Difference between Action and
Function?
♦ Action is a collection of Vb statements in QTP. It does not return any values.Function collection of Vb statements in QTP.
It returns single value.
♦ We can call functions within actions but we can't call actions within functions
♦ Generally functions are saved with ".vbs" extention where as actions will save with ".mts".
♦ Every Action will have its own Datatable where as function does not.
♦ Action can have a object repository associated with it while a function can't. A function is just lines of code with
some/none parameters and a single return value while an action can have more than one output parameters.
♦ Action can contains Object Repository, Data table, Active screen etc. whereas function do not have these features.
♦ Action is internal to QTP whereas Function is just lines of code with some/none parameters and a single return value.
♦ Action can/can not be resuable whereas functions are always reusable.
♦ Action Parameter have default values whereas VB script function do not have any default values.
♦ Action parameter type are byvalue only where vbscript functions can be passed byref.
♦ Action can have multiple output(returning) values whereas function can return only single value.
♦ Action is a collection of Vb statements in QTP. It does not return any values.Function collection of Vb statements in QTP.
It returns single value.
♦ We can call functions within actions but we can't call actions within functions
♦ Generally functions are saved with ".vbs" extention where as actions will save with ".mts".
♦ Every Action will have its own Datatable where as function does not.
♦ Action can have a object repository associated with it while a function can't. A function is just lines of code with
some/none parameters and a single return value while an action can have more than one output parameters.
♦ Action can contains Object Repository, Data table, Active screen etc. whereas function do not have these features.
♦ Action is internal to QTP whereas Function is just lines of code with some/none parameters and a single return value.
♦ Action can/can not be resuable whereas functions are always reusable.
♦ Action Parameter have default values whereas VB script function do not have any default values.
♦ Action parameter type are byvalue only where vbscript functions can be passed byref.
♦ Action can have multiple output(returning) values whereas function can return only single value.
PART-2
common problems
while working with QTP?
PART-3
Different Templates
Comments
Post a Comment