10-23-2008, 07:27 AM
Hi Ankur,
I am new to QTP, just started few days back,
I understood the concept of functions that you explained.
Now whatever the functions that I am creating if i want to see the ouput of that function, how I can see that.
exapmple: Function sum (val1,val2)
sum = val1 + val2
End Function.
now I know that if I call this function in my script i have to give value to my arguments val2 and val2. but
(1)how to check that whatever the function I created is giving me the correct value?
(2) Do i have to create new test and then just call this function, if this is the cade then how I call the function in the test and then what statement i use to execute that script?
please guide me with your best.
Thanks
Tapan Dalal
I am new to QTP, just started few days back,
I understood the concept of functions that you explained.
Now whatever the functions that I am creating if i want to see the ouput of that function, how I can see that.
exapmple: Function sum (val1,val2)
sum = val1 + val2
End Function.
now I know that if I call this function in my script i have to give value to my arguments val2 and val2. but
(1)how to check that whatever the function I created is giving me the correct value?
(2) Do i have to create new test and then just call this function, if this is the cade then how I call the function in the test and then what statement i use to execute that script?
please guide me with your best.
Thanks
Tapan Dalal