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 / deepak singh
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
send mail if you have any query:
ccna_deepak@yahoo.com
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
Write a QTP script to enter a keyword in to Google search engine?
How to explain a banking project in interview as a test engineer???
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
what are the limitations of smart identification in qtp 9.0
Explain the checkpoint in qtp?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
in my application,validation message has in japanise language.how to validate this message is appears properly or not
how to post xml data from QTP scripts to any application?
How to use the object spy in quicktest professional (qtp) 8.0 version?
How many types of recording facility are available in quicktest professional (qtp)?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?