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
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
What is the difference between keyword view and expert view?
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
after initiating one project for testing, when exacltly QTP tester role starts?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
how to explain a claims and insurance project?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
Explain different types of action in qtp?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
How do you open adobe acrobat file in QTP and do some testing on that file ?
What are the differences between table and db checkpoints?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
what is the difference btn risks & Therads in the Test plan documentation?
what is the difference between modular framework & datadriven framework