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 |
hello, i just started searching for a job on QA ,need QTP software full version.plz can any body help me...my email id is padma_ub@yahoo.com.thanks in advance.
how to create the varibles and how these are connect to qtp? plz tell me
Maximum synchronizing time out in QTP
How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the submit button it opens a screen. I want that screen name.How can i get that screen name I dont have any property regarding that screen. If suppose we cliked on the screen , Then QTP captures the screen properties then i can get the screen name by using GETROPROPERTY But i want the screen name without clicking the screen. ("I am using the "settoproperty" for Second screen by using fist screen properties") Please tell me anyone
Hello, I am facing problem to check textpoint for mercury application . I have inserted checkpoint to check flight summary for place of departure and arrival with datatable and script look like "Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").Check CheckPoint("Book a Flight: Mercury_4")" but while I am executing this script at last my check point gets fail and display Text Checkpoint: captured "" between Summary and 4/31/2008FLIGHT , expected "Acapulco" Match case: ON Exact match: OFF Ignore spaces: ON I think value from data table is not fatched so please guide me what I have to do to overcome this problem.. Thanks
I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail
Could some one explain me how to create folder on the desktop from QTP?? This is an interview question
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
1. What is diffrence between Analog Recording And Lomlevel Recording ?
What is log file?How to write log file code?
2 Answers Apps Lab, Value Labs,
hou can we use vb script in qtp could u tell me breafly
How can I change object description or check point values in qtp?