what is diff b/w function and action?
Answers were Sorted based on User's Feedback
Answer / gaurav
a function is VB Specific, whereas action is QTP specific.
Is This Answer Correct ? | 4 Yes | 2 No |
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 |
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 |
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 |
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 |
Answer / anna
both will perform the same functionality but both r having
advantages and dis advantages
Is This Answer Correct ? | 0 Yes | 4 No |
Answer / srinivas
Function Can return a value
Action is value can't return a value.
Is This Answer Correct ? | 0 Yes | 6 No |
Answer / praveen
Function can return a value.
Action can't return a value.
Is This Answer Correct ? | 0 Yes | 7 No |
When you open QTP, how many sheets you can see?
Please anybody can tell the where can i get the information about pharma and bank testing, i put the pharma&bank projects in my resume, so i dont know what to tell about them, so where can i get the information and what we test for these, i need domain information, what r the screen we test?
what is On Error Resume Next ?
in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do
What is throw object?
Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.
How to find the name of the machine where you are running your automation scripts in qtp?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
Hi I am from delhi, Now I can surely say that no institution of QTP here in Delhi After reading you people I want to get cry, from last six month I am trying to learn QTP, I have knowledge too but dont know VB Script. Now it appears that without learning QTP no one can learn complete QTP, I want to get a formal learning in QTP. Can you suggest me the best institution. and please let me know the charges and span of the course too. thanks in advance to you alkaa.dugaal@gmail.com
hi, for QTP TRAINING......SURESH REDDY SMART SOLUTIONS sr.nagar IS BEST OR NOT? how faculty teaches?
what is the difference between DP and keyword driven framework?
how to write vbscript on web applications in qtp. explian with one example?