Originally posted by joscva on May 21, 2025
Today I’ve been building a test case for a repetitive task I needed to plow through. Everything was fine, it was working perfectly. Then out of the blue, for no reason at all that I can see, one of the very first steps in the test began to fail due to WPFObject not existing.
I’m testing a WPF Desktop app, and it has a main menu called “Menu”. When clicked, it drops down to reveal other items including one called “Connections”. Within that, are various datafeed sources the user can select.
This is brain-dead simple, and it’s a core component of many of the tests I’ve created. I have never, ever, had it fail in the months I’ve ben working in TestComplete. It works on Visual Studio source branches, and it works on compiled/obfuscated builds. Never an issue, until now.
U stick to Keyword Tests at all times unless there is absolutely no other option. I can manually record a test of me clicking Menu, then Connections, then a sub-menu item, and the result is an extremely simply Menu Action operation like this:
“MENU|Connections|[4]”
It doesn’t get much simpler. But now, out of nowhere, it just fails 100% of the time. It doesn’t even get to selecting Connections, which is where the failure is. It clicks Menu, then just loops infinitely looking for WPFObject (until I kill it).
I thought maybe somehow there was something in the TC update I installed this morning before I began building the test, so I uninstalled and rolled back. No change.
I thought maybe somehow something had gone wrong with the new build of our app that came out today, so I removed it and rolled back to what I began with this morning. No change.
I thought maybe it was obfuscation related (we’ve seen strange things crop up occasionally due to it) so I ran from source. No change.
Relaunched TC and our app several times, no change.
Rebooted my PC, no change.
I’m at my wits’ end. This worked perfectly, right up until the moment it didn’t, and I hadn’t changed anything between it working, and not working. Anyone have any suggestions on what to do or look for here?










