This is my first time posting here, so I apologize if this has already been posted. I have done a search and not found anything.
I am running TC 4.23 and seem to be encountering difficulties with recording and playback. I am testing a java program and every time I record a section, it will work fine. If I leave the program open and go on to record a second function, that is where I have difficulties. My main screen object no longer maintains its proper name and is replaced with "###focusable SwingPopup###". When this happens, I am not able to playback the recording because the names don't match. Has anyone else had this problem?
Is there some sort of check that I can use to make sure that it is recording the information correctly?
I am not sure if this is also true in your Java App, but form many apps, including those that access IE, the order and number of the wondows can be different from run to run.
I would recommend that you use your original script, but then for each location where the error for a missing object occurs, generalize the parameters using the '*' wildcard, and using -1 for the window count.
In addition, if you have a uniquely named field in place, then you might consider using .FindWindow in place of .Window, which will access the full set of windows to find a match.
Since the product sometimes does not see the last object created, a call to .Refresh before your .Find will help make sure the internal files have the data you need.
I hope this helps,
Software Test Engineer
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.