Forum Discussion

amorans1's avatar
12 years ago

NameMapping Save/Load in a script

Hello,



We use NameMapping to drive an external tool written in Borland C++ in our JScripts.  It seems that somewhere in the middle of a script, the name mapping gets corrupted (calls to ClickTab() method of a panel object affects radio buttons etc.)  This migt or might not be a known issue.  We are looking for a work around at the moment.



Is there a way to save the name mapping to a file and then load it in the middle of a script?  We are aware of File menu Save command to start the "NameMapping.tcNM" file.  We are looking for an option to load the file directly from a script, something like the following call:



NameMapping.Load(<filenamehere>);



Thanks,

Alex

  • Hi Alex,


     


    Do you modify NameMapping when executing the test? Actually, I don't quite understand what you mean by "the name mapping gets corrupted". Could you please describe the behavior you've faced in detail? Do you get any error? Please post a screenshot of it here.