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 / kavi
Hi,
prasad's code was right.. but we should pass values for the
function sum
dim a,b,c
function sum(a,b)
c=a+b
msgbox c
end function
x=sum(3,2)
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
How QA specialist can identify when programmatic descriptions are useful?
How to use the object spy in quicktest professional 8.0 version?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
how to test Web application using QTP software
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
Can any one send me the QTP Basic Coding Samples?
breef description of batch testing ?
What is smart identification in QTP?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
Can U Explain about QTP tool from older version to latest version also its differences?
I want to do QTP Certification what is the pattern of Question paper.
What are the two types of repositories available, explain them?
How to use parameterization in qtp?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.