cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to check whether debug mode is enabled while running a test?

SOLVED
jr348
Contributor

Is it possible to check whether debug mode is enabled while running a test?

We're having problems with particular applications and would like to take additional desktop screenshots if debug mode is active.

 

Is it possible to find out the state of the debug button while running a test?

 

The Runner object seemed the obvious place but it does not have any properties related to this.

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Is it possible to check whether debug mode is enabled while running a test?

3 REPLIES 3
Marsha_R
Community Hero

Re: Is it possible to check whether debug mode is enabled while running a test?

jr348
Contributor

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.

Marsha_R
Community Hero

Re: Is it possible to check whether debug mode is enabled while running a test?

New Here?
Join us and watch the welcome video:
Announcements