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

What are the flaws in water fall model and how to overcome it?

1006


How do know the number of browsers opened?

1038


How can you exit from an action?

1016


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1794


How many types of status are there?

993


How to open a new test using quicktest professional?

977


How many types of recording modes in qtp?

1005


How you calling actions in qtp?

1008


For which type of project the iterative model is suitable?

1731


Is any limitation to xml checkpoints?

977


How can you identify the browser and its information using the qtp script?

961


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

1010


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1888


explain abt dyanamic changing object with example?

2288


what frame work you are following?

1884