Forum Discussion

brijesh_23388's avatar
12 years ago

Unable to pass object to Script Routine

Hi all,



My name mapping string is some thing like "XXX...Form("yyy").Table(5).Cell(0,0)..."



I'm trying to pass this object to my script routine through Onscreen Object parameter type.

But when I'm running the script, I get the following error, even before entering the function (I checked it by putting a breakpoint on first statement):

"You are trying to call the cell method or property of the following name mapping object. Name mapping object: "table" "



I think while executing the script routine, the testcomplete engine tries to evaluate the parameters, and in doing so, it considers table() or cell() as methods. Is there any way by which I can pass the object in the script function?

1 Reply


  • Hi Brijesh,


     


    I'm using TestComplete 9.30, and I can successfully pass an object with the Onscreen Object mode to a script routine.


    Are you using TC 9.30? If you aren't, please update to this product version. If the problem persists, post here screenshots of the Operation Parameters and Edit Parameter dialogs opened over the Run Script Routine operation.