wht is the difference between action and functio?

Answers were Sorted based on User's Feedback



wht is the difference between action and functio?..

Answer / santosh182

1)function gives only one output value

action gives more o\p values
but functns are vry consistency than actions

Is This Answer Correct ?    2 Yes 0 No

wht is the difference between action and functio?..

Answer / lak

Functions :
1) Functions are generic to VB Scripting
2) We can use Functions anywhere outside of QTP that
supports VB Scripting
3) Functions doesn't require object repository
4) Functions returns only one value

Re-Usable Actions :
1) Re-usable actions are specific to QTP
2) We can't use Re-usable actions outside of QTP
3) We can associate object repository to re-usable actions
4) Re-usable actions returns many values

Is This Answer Correct ?    0 Yes 0 No

wht is the difference between action and functio?..

Answer / kashif

Adding something more:

Action in QTP uses their own Object Repository, Datatable
and they can be reusable in another action.

whereas
Function does not use object repository and datatable.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Browser ("Browsername").Page("Pagename").Weblist ("weblistname"),"items count")) msgbox intFieldItemsCnt

1 Answers  


How to export QTP results to an ".xls" file?

3 Answers  


Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman

1 Answers  


I am struggling to understand QTP more from descriptive programming point of view. Is it easy to learn good QTP in South india by good faculty than north india? I found a great lack of institution in here. can you suggest me better instituion. I am holding two years of experience in same company, is there possibility in south india for me?

1 Answers  


how to download mercury qtp9.2 ny internet ?

0 Answers  






What is Port testing. Whhen will you perform?

0 Answers  


What is checkpoints for quicktest professional (qtp)?

0 Answers  


write a qtp script to verify that the business price is twice the economy price in flight reservation window

1 Answers  


Can you write a script for to insert array elements in an excel A to Z columns only. if the number oe elements in the array is greater than the number of columns (A to Z), come to next row and proceed furthur. eah cell should contain only one array value.

1 Answers  


How can we fill data in a text box without recording using object spy. Can you please provide the steps...

1 Answers   Hotel Jobs, TCS,


Suggest and Define a solution for an application whose objects are not recognized by UFT?

0 Answers  


How to find given string is palindrome or not without using strreverse() function?

2 Answers  


Categories