You’re correct: the object is either there or not. But TestComplete is designed to be “helpful” — it tries extended search strategies and visual recognition when objects are missing, which introduces delays. These steps are focused on disabling or avoiding those fallback behaviors.
- Set Operation‑Level Timeout
Don’t change the global 10 s timeout. Instead, adjust the operation-specific timeout to something like 1s.
👉 https://support.smartbear.com/testcomplete/docs/keyword-testing/dialogs/set-auto-wait-timeout.html
- Disable Self‑Healing (if it’s turned on)
While self-healing won’t stop recognition hints, it can add extra fallback work.
👉 https://support.smartbear.com/testcomplete/docs/testing-with/running/self-healing-tests.html
- Use If…Then with WaitAliasChild() instead of IfObject
IfObject may trigger deep fallback and hint generation. Using WaitAliasChild() (with a short timeout) is more direct and efficient.
if (Aliases.MyForm.WaitAliasChild("ComboBox1", 1000).Exists) {
Aliases.MyForm.ComboBox1.ClickItem("Option A");
}
This checks only the immediate alias-child, limiting unnecessary search.
- Disable Extended Find / Auto‑search Features in Name Mapping
Prevent TestComplete from automatically expanding its search beyond the mapped path.
- Go to Tools > Options > Engines > Name Mapping.
- In the Name Mapping Options, uncheck “Use extended find when possible”.
- Optionally disable “Map object names automatically” or other auto‑search behaviors.
👉 https://support.smartbear.com/testcomplete/docs/reference/options/engines/name-mapping.html
- Use WaitAliasChild() for Object Detection
Rather than relying on full deep path resolution, dynamically wait for a child object via WaitAliasChild(), with a short timeout, which avoids deep fallback lookups.
To isolate the problem, try creating a new lightweight TestComplete project with:
- Only essential NameMapping entries
- A single test case using WaitAliasChild() logic
This helps determine whether your current mapping or project structure is contributing to the slowdown.
🤖 AI-assisted response
👍 Found it helpful? Click Like
✅ Issue resolved? Click Mark as Solution