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

I am just a beginner in QTP. Could any one explain me in
detail how to automate adding two numbers and getting the
result in QTP. Also I would like to parameterize the
inputs. I have tried but getting an error like 'Can't use
sub.....'(can't recollect the exact error)

Answer Posted / ram

you can write function to add two numbers and call in qtp.

file-->New-->function Library

Public function add(a, b)
add=a+b
End Function


Save it where ever u want with add.vbs

Now File-->settings-->Resources-->Add function library--
>click at add(+) button below one button will appear click
that and add the saved library file(add.vbs).

in qtp normal file

write print add(4,5) and u can parameters as your wish.



add this in

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4957


Explain different checkpoints in qtp.

1277


Which functionalities of QTP used in banking project?

2451


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1896


What are the different types of recording modes?

1028


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

1108


How can i check items sorted or not in a weblist ? Give me the script for this...

2042


How to suppress warnings from the test results page?

1045


What Folder Structure following in Keyword Driven Frame work?

2780


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

2203


What is Curd testing?

2326


What are the steps involved in recovery scenario wizard?

981


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1954


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

2032


In what occasion we can specify global sheet and action sheet?

1039