Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create Userdefined Function.Please write the steps
ans also provide example where exatcly we use it.



How to create Userdefined Function.Please write the steps ans also provide example where exatcly w..

Answer / chandu

Hi,
u can create user defined functions in notepad by saving
the file with .vbs extention.
eg:
public function add
x= 20
y= 30
z= x+y
msgbox z
end function
paste the above code in notepad and save it as .vbs ext.
then go to QTP file>settings>resources tab
add the .vbs file there. and then write-- call add---in ur
QTp editor.the use of this is u can reuse the same function
wherever u want. so u can call it multiple times in ur
test.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More QTP Interview Questions

Batch testing in howmany ways u perfrom in QTP

3 Answers   Lehman Brothers,


how to disable the pop ups through QTP using a script

0 Answers  


What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


Please tell me the steps to record the test in Analog recording mode in QTP version 9.2???

2 Answers  


what testing activities u may want to automate in a project?

2 Answers  


how to use command prompt using qtp?

8 Answers   HCL,


Define virtual object?

0 Answers  


How to test background color and dynamic images during run time can you put the check point for moving objects?

0 Answers  


if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?

2 Answers   Ordain Solutions,


what type of test cases tou will automate?

4 Answers   Google,


How to add a page checkpoint to your test?

1 Answers  


could any help me please, how to work on visual foxpro application using UFT

0 Answers   NA,


Categories