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

hi,
i was adding the two numbers in qtp scripts but i didn't get
the answer. see my below script, i dont know wht is the problem.

i passed the value a=3 b= 2, i got the ans 32 instead of 5.
i thing the problem is to be c = a+b

my mail id karthis4u@gmail.com

Dim a, b, c
a = inputbox("enter the a ")
b = inputbox("enter the b ")
c = a + b
print c

Answer Posted / rayudu

a= inputbox("Enter the value a")
b=inputbox("Enter the value b")
c=int(a)+int(b)
msgbox c

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1754


Diff b/w test scenario's and test Procedures?

2136


When and why to use descriptive programming?

1056


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1884


What is the difference between local and shared object repository in qtp?

1057


Does QTP run in any environment?

1097


How to suppress warnings from the test results page?

1042


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

992


Through array we can execute the testcase how ? give me example

1901


Explain how you can find length of array in qtp?

1070


Does QTP record on Objects created on XWindows Environment?

2207


how u will evaluate the tool for test automation?

1863


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

4611


Have you faced any problems with object repository?

1061


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

2062