Forum Discussion

vthomeschoolmom's avatar
vthomeschoolmom
Super Contributor
14 years ago

shortened object name

I recorded a bit of script just now.

  Dim my_App

  Dim control>

  Set my_App = Sys.Process("My Application")

  Set control = my_App.maMainForm



I am NOT using name mapping. For whatever reason, my company has decided not to. (I have yet to fight that fight. We will get there. But that is not what this question is about.)



If I look at the object browser, this



my_App.maMainForm



reports as



Sys.Process("My Application").VBObject("maMainForm")



Nowhere in the object browser does maMainForm list as a property.



Where is Test Complete getting this shortened name?



Thanks



S
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    There is a setting in TC that indicates to use shortened names where possible.  See screenshot attached.



    It is actually recommended in the TC 8.50 release notes to no longer use this option so you're actually best off turning it off as shown.