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 in testing a client-server application and a web application?
How can I import environment from a file on disk?
Get the count of files of similar types from a folder.
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
How to test background color and dynamic images during run time can you put the check point for moving objects?
What is quicktest professional?
How to use parameterization in qtp?
Differentiate the type of test cases which can be automated and which cannot be automated?
What is text check point and text area check point?
what is the difference btn risks & Therads in the Test plan documentation?
How many types of Automation frameworks are there in UFT? Describe them.
How to release all resources file from the QTP?
How to delete an object from the object repository?
Differences between text and test area checkpoints?