Re: Is it possible to check whether debug mode is enabled while running a test?
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.