what is diff b/w function and action?

Answer Posted / deven

♦It returns single value.
♦ we can call functions within actions but we can't call
actions within functions

♦ Generally functions are saved with ".vbs" extension
whereas actions will save with ".mts".

♦ Every Action will have its own Datatable whereas function
does not.

♦ Action can have a object repository associated with it
while a function can't. A function is just lines of code
with
some/none parameters and a single return value while an
action can have more than one output parameters.

♦ Action can contain Object Repository, Data table, Active
screen etc. whereas function do not have these features.

♦ Action is internal to QTP whereas Function is just lines
of code with some/none parameters and a single return value.

♦ Action can/cannot be resuable whereas functions are
always reusable.

♦ Action Parameter have default values whereas VB script
functions do not have any default values.

♦ Action parameter type are byvalue only where vbscript
functions can be passed byref.

♦ Action can have multiple output(returning) values whereas
function can return only single value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to give a call to another action from one action?

629


What is the quicktest professional testing process?

529


terminal services client

1786


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1657


can i change the runtime properties of an object ? How can i check if a parameter exists in database ?

1415






Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1351


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1636


How will you handle java tree in qtp?

623


why should we give deliver good quality software?

1627


Hai anyone please "Explain about Framework in QTP?"

1621


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1849


In qtp, how you can exit for loop?

527


What contains Data Driven Framework document in qtp?

1465


Can we record an application running on a remote machine using qtp?

721


How to Test the mainframe application?

1820