What is the difference between functions and actions in
QTP?
Answer Posted / uday kumar_anem
Both Actions and Functions are used to access a peace of
code, that is frequetly used.
The main difference is :
Functions have only application logic, means that we dont
have access to the resources of a test.
For ex: we need to write a script to access Object
Repository, Data Table etc....
Actions also have application logic and the resources
associated with that action.
For Ex:
Say if you want to call a function, here you need to pass
function name and all other resources like(OR, Data Table
etc...).
Where as if you call an action, all these resources come
with action(based on the type of the action).
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is the extension of the qtp local repository?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
How to use output values in qtp ?
What is Unicode Compatibility?
How many types of actions are there in quicktest professional (qtp)?
Which scripting language used by quicktest professional?
can any body give the banking domain concepts/links
What are the different types of functions available in qtp and explain ?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
Mention the test steps of qtp.
Will down time for server and content maintenance/upgrades be allowed? how much?
How would you directly trigger javascript in a test?
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?