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...

what is functions in qtp?i know the userdefind &bulit
funation or i know that Private public function ?plz tell
me what is funations in qtp?how to create a funation in qtp

Answer Posted / pankaj sharma

1.Function in QTP : Function in QTP if nothing but the set
of line of code written in .vbs , .txt or in .qfl format to
which we pass n number of parameters and it return one
value .
You can add function in QTP using navigation as :
Setting > Resources
Where we can add user defined function which will be
accesible every where in QTP Suite .
To create funtion in QTP we can use funtion generator
option given in in QTP where we can set input and output
values also insert > Function Defination Genetator

Check a small example below
Call sum(8,4)

Function sum(x,y)
sum=x+Y
MsgBox sum
End Function

For any further doubt you can directly come to me on my
blog
http://quality2deliver.blogspot.com/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we do the frame work in qtp

1987


Is qtp supports uni-code?

983


How will you find the current time of the remote machine using QTP script?

1006


Where you get the run time data table?

976


Why do we use breakpoints in QTP?

998


Explain about the quicktest professional (qtp) automation object model?

945


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

2138


How many types of run modes are there in qtp?

978


Where can I find and view run-time data table?

911


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

1911


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1743


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

1054


What is a checkpoint? How many check points are there in qtp?

934


What is the process of synchronizing qtp and aut?

978


What are the features and benefits of quick test pro (qtp 8.0)?

1058