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
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
What is the expert view?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
can u please explain what is the exact difference between qtp8.2 and 9.0
how to test Web application using QTP software
In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls
Explain the difference between check point and output value?
Explain types of descriptive programming?
What is the registration process and examination fees?
Tell me one scenario, the complex functionality you have automated in your project?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
is there any addin for remedy user application
what are the utilities and drivers
What is Test Fusion Report in QTP?