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
What is the use of ordinal identifier in qtp?
Name the properties you would use for identifying a browser and page when using descriptive programming?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
images are dynamically changes how to compare two images with out using the bitmap
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
how u will evaluate the tool for test automation?
What are the advantages of parameterization ?
How will you check that your test cases covered all the requirements?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
How to use setroproperty?
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
How to find array size in qtp?
Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,