Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the exact difference bet function and action in QTP
Anybody can explain it in detail..Thanks in advance..

Answers were Sorted based on User's Feedback



What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / jaspreet

1. Function is a feature of Vb Script whereas Action is specific to QTP.
2. Action is associated with object repository whereas Function is not associated with object repository
3. Function can have at maximum one output value whereas Action can have many outputs.
4. Functions is just logical instructions which are not associated with objects whereas Action is associated with objects

Is This Answer Correct ?    7 Yes 0 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / vijay

Actions can Return mutiple values, where as function will
return one value
Check points insertion wont be possible in functions where
it can be possible in Actions .
functions can be called outside the tool , where as Actios
are called only within QTP
scripts written in higher version of qtp wont be compatable
with Actions , where as functions since they are not QTP
related can be work in any version

functions can be even written in notepad , wiht .vbs file
name

ex :

Public Function F1
msgbox(" I am function")
end function
call F1

run the code in notepad and verify

Is This Answer Correct ?    6 Yes 0 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / sreekanth

Action -> Action is nothing but a script written for certain
function point .
Action types ; Non-reusable , reusable , external
Action may return multiple values .
Action requires its own object repository( requires objects)
Actions concept i restricted to QTP only ..

Function -> it consists of Set of statements written to
achieve a particular task.
Function returns one value.
Functions concept is used all programming
languages,scripting languages.

Types of functions in QTP->Built in ,Local Script,Library
functions.
WIthout using objects Functions can be written ( in
descriptive programming )

Is This Answer Correct ?    12 Yes 8 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / pratap

Action will have object Repositery associated with it
Function will not have .
Function has only one return value
Action can have many return values
A function can be external declared and called from
liberary files.
Action cant.

any Query contact : prataphs@gmail.com

Is This Answer Correct ?    8 Yes 5 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / sandeep

diffrence is Function can return only single value whereas
Action can return multiple values.

Is This Answer Correct ?    8 Yes 6 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / arun

the difference between action and function is
action has object repository.
function doesnot have object repository.
we can edit copy of actions.it may not effect on main action
we cannot edit the copy of function. it my effect on main
function.

Is This Answer Correct ?    6 Yes 5 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / paresh patel

1. Action is a QTP Feature. Function is a VBScript/JScript
Feature.
2. Actions can return multiple outputs. Function can return
only one output.
3. Actions can have only basic data type (String, Number,
Boolean, Date, Password, Any) as input & output parameters.
Where 'Any' is a variable type data. Functions can have
basic Data Types, Object Data Types as well as Array
Variables as Input Arguments and Output value.
4. Function is a code block stored in a Text Type File.
Action is stored as a Folder and has many other entities
like data-table, object-repository associated with it.


Note:
1. Both Action and Functions are block of code.
2. You can call Function in an action, By associating its
file to QTP Script. You can aslo have QTP features called in
a Function, i.e. you can also call an Action in a function.
However, that Function can only used by QTP.

Is This Answer Correct ?    1 Yes 0 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / nagk24

Actions and functions both purpose is reusable but there is some technical differences 1.e
1)function can't return multiple values bur action does
2)functions are can use in vb script and qtp but acton only available in qtp
3)functions dint have a object repository concept,bur actions have
4)functions supports backward compatable,bur actions are not
5)action has check point conncept,but functions doesn't

Is This Answer Correct ?    1 Yes 0 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / prem

Action- Action is nothing but a step performed by user.
Action is catagorized in two parts
Reusable action,usable action.

Function-In that action what functionality u r written to
check that function is working properly or not.
e:g - if you write a script for the login page,the total
script is written for the login page is a action,and the
script was written for the login page is the
function,because main functionality in the script is login
the page.

if it wrong reply me

Is This Answer Correct ?    0 Yes 1 No

What is the exact difference bet function and action in QTP Anybody can explain it in detail..Than..

Answer / raman verma

1.FUNCTION WILL RETURN ONLY SINGLE VALUE BUT ACTION CAN
RETURN MORE THAN ONE VALUE.
2.ACTIONS CAN USE IN OTHER ACTION AS FUNCTIONS BUT WHEN WE
COPY THE ACTION IN OTHER ACTION AND EDIT THAT ACTION ...iT
WILL EFFECT THE MAIN FUNCTION BUT FUNCTION CANT.
3. ACTION IS OBJECT REPOSITORY ABUT FUNCTION DONY

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More QTP Interview Questions

what is the criteria for choosing test cases for automation? Ex: if you have some 300 test cases, then how many you choose for automation. what is criteria of selecting?

3 Answers   Aricent, Delhi University, TCS,


How you will rate urself in QTP in the range of 0 to 5

0 Answers   Genpact,


During test run,How will you copy/paste from/to clipboard?

3 Answers  


anyone can explain about "Hybrid framework" in QTP

5 Answers  


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

0 Answers  


how to identify the objects if application consists of objects that have same properties.

4 Answers  


How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies.

5 Answers   Semantic Space,


I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..

4 Answers   Keane India Ltd,


Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible

1 Answers   IBM, INCA,


What are the various versions of QTP that have been released so far? Please also mention the year of release for each version

4 Answers  


what is the Exact Meaning of Environment Variables?

2 Answers   Semantic Space,


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

0 Answers   IBM,


Categories