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

What are the benefits of qtp?

743


How do you convert manual test cases to automated test cases?

780


How do client side image and server side image work?

1595


Should have experience in framework means?

1620


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1743


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1715


Describe how Smart Identification is used

1886


How to use Environment parameterization? Explain with an example.

1715


How to check feasibility of the appliction?in automation testing?

1711


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2358


What are some test assets and related extensions of qtp?

768


What is QTP testing process?

815


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1477


How to break the object spy ?

874


what frame work you are following?

1707