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 / prasad v
hello
which ever the code you have written will be doing
cancatenation by accepting as characters.
if you provide inputs as a="abc" and b="xyz" then output
will be "abcxyz" right.
if you add two numbers you can go for this below code
function sum(a,b)
c=a+b
msgbox c
end function
calling the function
sum 2,3 then you will get output as 5
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
how to idetfy which test cases are automated?who will deside that plz tell me
Explain the terms test and business component?
what type of automation is follwed in the project?
What are the different properties of an web object
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
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
How does you test a weblink which is changing dynamically?
Can we Test Welcome Screens and Process Images with QTP
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
Is it possible to use two instances of UFT on the same machine? If not why?
What are the different types of action?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
how to disable the pop ups through QTP using a script
Explain the types of properties that quick test learns while recording?