What is the difference between functions and actions in
QTP?
Answer Posted / sreeprasad
Reusable Action is peice of code that perform an action on
the application , which has application logic.
On the other hand , Functions does not have the application
logic . It performs a specific action on the data retrieved
from the application and returns the result to the calling
action.
For Ex: Your application has TextBox and Button,
Input : In the textbox we need to enter a numeric value
say 5.
Action : Calculate the Factorial
Expected : Factorial value should be displayed in the
textbox.
Here setting a value to textbox , performing the click
operation and corresponding verification is maintained in
the Action , calculation of the factorial value to arrive
at the expected output we use a Function.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
what is the difference between the modular framework and datadriven frame work
How do you perform Regreession Testing?
How often were they executed?
How to add synchronisation points in qtp?
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 i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
How to use checkpoints in qtp ?
What is qtpro?
Is qtp supports uni-code?
How many ways is to parameterize the value?
how can we compare descriptive programing with a regular expression
How to modify object property in qtp ?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?