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

which type of testing process are you following in ur company? how to recognize a qtp page?

1415


What is Curd testing?

1888


What is test object model in quicktest professional (qtp)?

559


what are the utilities and drivers

1853


Give the syntax to import/export xls into qtp.

594






How many types of actions are there in quicktest professional?

518


How many ways is to parameterize the value?

623


how can we do the frame work in qtp

1610


What is the use of sendkeys and what are send keys

1963


How you can write contexts to text file in qtp?

597


What is Port testing. Whhen will you perform?

1506


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1774


WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

1712


What is Unicode Compatibility?

1463


How to get the particular property value?

620