What is the exact difference bet function and action in QTP
Anybody can explain it in detail..Thanks in advance..

Answer Posted / vijay

Actions can Return mutiple values, where as function will
return one value
Check points insertion wont be possible in functions where
it can be possible in Actions .
functions can be called outside the tool , where as Actios
are called only within QTP
scripts written in higher version of qtp wont be compatable
with Actions , where as functions since they are not QTP
related can be work in any version

functions can be even written in notepad , wiht .vbs file
name

ex :

Public Function F1
msgbox(" I am function")
end function
call F1

run the code in notepad and verify

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the particular property value?

603


What is the difference between per-action and shared?

580


How to run a test using quicktest professional?

520


Suppose I want fail that check point? How can you do that?

594


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3207






How to test login module with different username and password by using data driven testing in QTP?

601


What are the various types of Actions in UFT?

581


What is checkpoint in qtp?

543


Explain more about the Test Fusion Report of QTP?

597


How will you report the bug and explain the defect tracking sheet you handled?

2537


What Folder Structure following in Keyword Driven Frame work?

2270


is it possible to add sheets to excel at runtime

3226


How to explain a banking project in interview as a test engineer???

2589


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

1860


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

583