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 / qa
hi
Use CINT Function:: correct code is
Dim a, b, c
a =cint( inputbox("enter the a "))
b =cint( inputbox("enter the b "))
c = a + b
msgbox c
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How to find Operating system information using QTP script?
Are Shared ORs read-only?
How to handle the exceptions using recovery secnario manager in quicktest professional?
explain keyword driven framework with banking domain?
please any one can explain the keyword driven framework. with gmail example.
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
what is keyword driven testing in qtp?n how is it useful?
What are the different types of qtp test assets and their extensions?
How to test background color and dynamic images during run time can you put the check point for moving objects?
Can launch two instances of qtp on the same machine?
What are the check points can be inserted without recording?
Did the scripts need lot of maintenance? If yes, why?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
what function you write to do database testing with the help of qtp?