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

How to execute a winrunner script in quicktest professional (qtp)?

0 Answers  


if you run one test script in internetexplorer the same test you run in mozilla ffirefox is it possible or not how is it.

1 Answers   Satyam,


How to handle Run-time errors?

1 Answers   Crea,


Pls anyone, tell me the script in QTP to find the number of links, and images in a webpage. Verry very urgent. I shall really be very thankful

3 Answers  


How to create an Action Template?

1 Answers  


Difference between action & Reusable action?

0 Answers  


Can you expect major bugs in Net banking Application?

1 Answers  


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

0 Answers   HSBC, T Mobile,


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

0 Answers   NA,


How to find the name of the machine where you are running your automation scripts in qtp?

0 Answers  


what is a file system object in QTP

7 Answers  


How to Test Dynamic links ?

4 Answers   Wipro,


Categories