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
Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com
What is Unicode Compatibility?
How to capture a window in QTP?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
What is checkpoints for quicktest professional (qtp)?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
Explain the concept of object repository and how QTP recognizes objects?
Generic function to search for the unique link in webtable and click on it
If the objects hierarchy is changing from build to build, then how you will handle that condition?
what could go wrong with test automation?
What is the difference in testing a client-server application and a web application?
how to test load test and block box testing an a web based application pls give ans briefly
what is the hierarchy to use properties in descriptive programming
how can i pass a "cript"as a parameter in to a function
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)