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
What is an expert view and keyword view?
How many number of actions possible in qtp?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
How you will rate urself in QTP in the range of 0 to 5
HOw to add the recovery file at runtime to the test file .
What is Curd testing?
How to save your test using quicktest professional (qtp)?
Does QTP run in any environment?
What is Unicode Compatibility?
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
How qtp identifies objects?
Diff b/w test scenario's and test Procedures?
When to use descriptive programming?
what is the frame work in J-meter?
How will you check a web application for broken links using qtp?