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
How do you open adobe acrobat file in QTP and do some testing on that file ?
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
How many types of recording modes in qtp? Which will be used when?
What is CMMP and CMMH?
explain how to write vb script in qtp?when will you write own script?
What is throw Object?
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
What test cases can you automate using QTP?
How many add-ins comes by default with quicktest professional?
what is ODC and GDC?
How you are developing the script? Using record and play back or manual?
What are the types of object repositories? Which one is you using?
What are the differences between quicktest professional (qtp) and winrunner?