Forum Discussion
Visualizer will do that for you.
Do you have it enabled?
Thanks for the reply.
The problematic keyword "test" is actually a support function is used at least twice in every test and so extends overall test run times, and massively increase log sizes if desktop screenshots are made.
We set the visualiser "Capture Style" set to "top-level parent". If we set it to "Desktop" it applies to every screenshot. With a dual monitor system this has a significant storage and performance hit on a 5-6 hour test run.
We want to do a desktop screenshot in one particular test if it's in Debug mode.
It does not appear possible so we will work around it by adding a flag to our tests eg "Debug_Use_Desktop_Screenshots_In_XYZ" . This will cause a screenshot to be made of the Windows Explorer Desktop object.
Actually, you can access Debug status this way
https://support.smartbear.com/testcomplete/docs/reference/program-objects/dbgservices/options.html
You can also enable or disable Visualizer inside a test
https://support.smartbear.com/testcomplete/docs/testing-with/visualizer/enabling-and-disabling.html