Forum Discussion

ray_mosley's avatar
ray_mosley
Frequent Contributor
14 years ago

Recording scripts without Aliases or Variables

I would like to get the scripts recorded without any intermediate name mapping or using variables; in other words, I want to use the full name of objects.



Instead of recording the statements:

  Aliases.topsSchedule1.fmAPPSelectResource.sbFltNew.Click(27, 18);

  Aliases.topsSchedule1.fmAPPSelectResource.pnTool.pnNew.PopupMenu.Click("Equipment / Service");

I would like to have TestComplete record:

   Sys.Process("topsSchedule").VCLObject("fmAPPSelectResource").VCLObject("sbFltNew").Click(24, 18);

   Sys.Process("topsSchedule").VCLObject("fmAPPSelectResource").VCLObject("pnTool").VCLObject("pnNew").VCLObject("PopupMenu").Click("Equipment / Service");



How to I get TestComplete to record scripts this way?



12 Replies

  • Ravik's avatar
    Ravik
    Super Contributor
    Wow !!



    Nice Finding. I am also did all above given setting and try to generate script. it automatically added NameMapping as well as created Aliases.







  • ray_mosley's avatar
    ray_mosley
    Frequent Contributor
    When I tried to record in an existing script, I could not remove the NameMapping without having to rerecord ALL the tests in the project.  THEREFORE, the suggestions I followed above worked in a NEW project suite/project environment.



    It would be a VERY nice feature if this option were just a checkbox that - when selected - would overide previous settings as well.