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

What is the difference between two actions?

1 Answers   Wipro,


what is the use of VIRTUAL OBJECTS? explain ?

10 Answers   ABC Infotech, IBM, TCS,


How will you check that your test cases covered all the requirements?

0 Answers  


how to test Web application using QTP software

4 Answers   BITS,


hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?

16 Answers   Syntel,


What is the difference between client server application and web based application?

3 Answers   IBM,


Tell me few important difference Between QTP and WinRunner?

9 Answers   TCS,


Difference between keyword driven test and DDT?

1 Answers  


where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code

3 Answers  


when there is a task that gets repeated in multiple scripts what do you do in QTP?

2 Answers   Ordain Solutions,


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

0 Answers  


Wher to use DATA TABLE METHODS in Qtp?What is the use of it?

8 Answers   Wipro,


Categories