Forum Discussion

d4h8a1's avatar
d4h8a1
New Contributor
14 years ago

How TC names objects



I am running testComplete 7 and it seems like every time I walk away from my machine the scripting language changes.  I worked for a few hours yesterday recording, editing, and successfully running scripts that looked like this:


   SiteName++;

   // Click create new site button

   toolStrip = explorer.mainToolStrip;

   toolStrip.ClickItem("&New");


Today I open testComplete and my script wont run at all.  I recorded a script to see if there was something fundamentally wrong, and I got something that looked like this:


  wndWindowsForms10Window8app033c0d9d = esiMain.wndWindowsForms10Window8app033c0d9d;

  wndWindowsForms10Window8app033c0d9d.Click(407, 15);

  wndWindowsForms10Window8app033c0d9d.WindowsForms10Window8app033c0d9d.Click(15, 12);

  esiMain.wndWindowsForms10Window8app033c0d9d1.btnCancel.ClickButton();


Why are these names different?  What has happened to my stuff?  The program I have been testing didn't change, the script or testComplete didn't change, my machine didn't change.  Why would everything suddenly go bananas?