Re: Runner.CallMethod not working when passing function name as param from spreadsheet
This is working fine
Runner["CallMethod"]('FOF_CFD.FOF_CFD_7R_InvalidAltID_VerifyCFDLog');
But when i am using below line, here var tr = "FOF_CFD.FOF_CFD_7R_InvalidAltID_VerifyCFDLog"
Runner["CallMethod"](tr);
I am getting this error, but i have this unit and function.
---------------------------
TestComplete
---------------------------
JScript runtime error.
Unable to find the specified element. Project: SEI Front Office Functional, UnitName: 'FrontOffice_CFD, RoutineName: FOF_CFD_VerifyCFDPOSAddMemberImmediate'
Error location:
Unit: "SEI_Front_Office_Automation\SEI Front Office Functional\Script\FrontOffice_SanitySuite"
Line: 474 Column: 27.
---------------------------
OK
---------------------------
I am using C# script, any ideas how to resolve this issue?