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 user defined functions in QTP? can any one
expalin me with example..
Thanks in Advance for help

Answer Posted / chandu

u can create user defined functions by saving the file
as .vbs..just open notepad and write as below and save the
file with the ext .vbs

public function test
x=6
For i= 1 to x-1
x=i*x
Next
msgbox x
end function
then in QTP goto
File>settings>resources tab..add the .vbs file u created..
and then write call test.....in ur editor.

thanks
chandu

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different recording modes and how do they work?

1087


what is the difference btn risks & Therads in the Test plan documentation?

2118


How do know the number of browsers opened?

1081


What is Test Fusion Report in QTP?

1174


what is object and child object.. explain ..if possible give some example for better understanding ..

2007


what is output value in QTP and how it can be used in automation testing

1992


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

1037


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

1327


What is checkpoints for quicktest professional?

1000


What is the difference between run time object and test object in QTP?

1058


Describe synchronization point.

1146


what type of run time errors you get while you ar edoing rpg program?

1977


Can anybody post some real time scenario in qtp? please its very urgent.

2289


How to carry out bit map check points in QTP

2197


How you can replace string in qtp?

1080