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 diff b/w function and action?

Answers were Sorted based on User's Feedback



what is diff b/w function and action?..

Answer / gaurav

a function is VB Specific, whereas action is QTP specific.

Is This Answer Correct ?    4 Yes 2 No

what is diff b/w function and action?..

Answer / siqtp

1.Action is QTP specific whereas Function is VBScript
specific
2.A function can be called from an Action,But an Action
cannot eb caleed from Function
3.Actions can be associated with OR,DataTables etc where as
Functions cannot
4.Actions can be created and stored only from QTP where as
Functions can be created and saved anywhere inside or
outside QTP
5.Functions can be loaded to memory and then execute which
makes the performance of functions better whereas Actions
cannot be loaded to memory

Is This Answer Correct ?    2 Yes 0 No

what is diff b/w function and action?..

Answer / ganesh kumar

Function can return a single value wheras actio can create
multiple values at a same time

Is This Answer Correct ?    3 Yes 2 No

what is diff b/w function and action?..

Answer / murali

When ever u call the (external) Actions, respective OR,
Datatable, Active screen, check pts if any, will come to
your current test, but if u call a function only a peice of
code will come.
Actions are (most) useful when u r using per action repo.
functions are (most) useful when ur using global repo.

Is This Answer Correct ?    1 Yes 1 No

what is diff b/w function and action?..

Answer / deven

&#9830;It returns single value.
&#9830; we can call functions within actions but we can't call
actions within functions

&#9830; Generally functions are saved with ".vbs" extension
whereas actions will save with ".mts".

&#9830; Every Action will have its own Datatable whereas function
does not.

&#9830; 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.

&#9830; Action can contain Object Repository, Data table, Active
screen etc. whereas function do not have these features.

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

&#9830; Action can/cannot be resuable whereas functions are
always reusable.

&#9830; Action Parameter have default values whereas VB script
functions do not have any default values.

&#9830; Action parameter type are byvalue only where vbscript
functions can be passed byref.

&#9830; Action can have multiple output(returning) values whereas
function can return only single value.

Is This Answer Correct ?    0 Yes 0 No

what is diff b/w function and action?..

Answer / anna

both will perform the same functionality but both r having
advantages and dis advantages

Is This Answer Correct ?    0 Yes 4 No

what is diff b/w function and action?..

Answer / srinivas

Function Can return a value
Action is value can't return a value.

Is This Answer Correct ?    0 Yes 6 No

what is diff b/w function and action?..

Answer / praveen

Function can return a value.
Action can't return a value.

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More QTP Interview Questions

How can we close all webbrowsers which are opened in out desctop?

8 Answers  


Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.

2 Answers  


give one example where you have used regular expression?

6 Answers   Ordain Solutions,


Can objects recognised without repository?

5 Answers  


DIFFERENT RUN MODE IN QTP..1-VERIFY MODE 2-UPDATE MODE 3- dEBUG MODE. My question is in whic sitution we use these modes Explain me with example

1 Answers  


Give me some real time point of way where exactly we can conduct audits?

0 Answers   CTS,


How can we log a defect in Testdirector from Q.T.P ?

2 Answers   EDS,


Did u use check points during ur work experience ?

3 Answers   FedEx,


How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field?

1 Answers   Adobe, Patni,


Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.

3 Answers  


how to click the link in webpage by using QTP Script????????

3 Answers  


In QTP, Which are the concepts are needed to do Functional testing and Regression testing?

3 Answers   IBM,


Categories