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

♦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

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

Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

0 Answers   TCS,


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  


HOW TO DO THE BATCH TESTING USING QTP?

2 Answers   Ordain Solutions,


how to identify an object which is not in the object repository identification can be done using descriptive programming.

2 Answers  


How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?

1 Answers  






Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!

3 Answers  


What are the challenges u faced in testing with crm domain? How u overcome with?

0 Answers  


what is the object properties settings in the QTP

5 Answers   DigiTech,


In qtp, how you can remove the spaces from string?

0 Answers  


What are software testing metrics

3 Answers  


QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON

1 Answers  


Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance

1 Answers  


Categories