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


Please Help Members By Posting Answers For Below Questions

how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2489


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.?

825


What is the expert view?

754


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

1729


can u please explain what is the exact difference between qtp8.2 and 9.0

1891


how to test Web application using QTP software

1751


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

1639


Explain the difference between check point and output value?

705


Explain types of descriptive programming?

799


What is the registration process and examination fees?

749


Tell me one scenario, the complex functionality you have automated in your project?

1705


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

1657


is there any addin for remedy user application

1962


what are the utilities and drivers

2037


What is Test Fusion Report in QTP?

863