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
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
Diff b/w test scenario's and test Procedures?
When and why to use descriptive programming?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
What is the difference between local and shared object repository in qtp?
Does QTP run in any environment?
How to suppress warnings from the test results page?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
Through array we can execute the testcase how ? give me example
Explain how you can find length of array in qtp?
Does QTP record on Objects created on XWindows Environment?
how u will evaluate the tool for test automation?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Have you faced any problems with object repository?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek