04-23-2012, 03:57 PM
The error that u were getting was because u were assigning a value to the variable..
But there was no value being returned by the function. Hnece no value was getting assigned and QTP was throwing error.
In function we were not getting any error because u were doing a assignment using wrong name. This name was being treated as a variable by QTP. Hence no error.
Code:
Action_Result = fnAccountInfoPageOSA(iInitialDeposit, sFundAccFrom, sAccNickname, sChangeOwnerToJoint, sASPOption, sASPAmount, sASPAccFrom, sASPFreq, sASPStartDate)
But there was no value being returned by the function. Hnece no value was getting assigned and QTP was throwing error.
In function we were not getting any error because u were doing a assignment using wrong name. This name was being treated as a variable by QTP. Hence no error.