What is the exact difference bet function and action in QTP
Anybody can explain it in detail..Thanks in advance..
Answer Posted / paresh patel
1. Action is a QTP Feature. Function is a VBScript/JScript
Feature.
2. Actions can return multiple outputs. Function can return
only one output.
3. Actions can have only basic data type (String, Number,
Boolean, Date, Password, Any) as input & output parameters.
Where 'Any' is a variable type data. Functions can have
basic Data Types, Object Data Types as well as Array
Variables as Input Arguments and Output value.
4. Function is a code block stored in a Text Type File.
Action is stored as a Folder and has many other entities
like data-table, object-repository associated with it.
Note:
1. Both Action and Functions are block of code.
2. You can call Function in an action, By associating its
file to QTP Script. You can aslo have QTP features called in
a Function, i.e. you can also call an Action in a function.
However, that Function can only used by QTP.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the types of object repositories? Which one is you using?
What is difference between run time object and test object?
How you calling actions in qtp?
Will down time for server and content maintenance/upgrades be allowed? how much?
• What type of testing questions will be asked for 2+ yrs exp people in interview?
Does QTP run in any environment?
Where to use function or action?
What are the advantages of Object Repository?
Can any one send me the QTP Basic Coding Samples?
How to find a window is minimized or not
How to modify the text checkpoint?
What is the parameterization?
What is the difference between run time object and test object?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
How can you close the second opened browser?