Forum Discussion

blearyeye's avatar
blearyeye
Contributor
14 years ago

Controlling IDE focus during script development

When I run a script, pause on a checkpoint, and choose to stop it, a script test log is produced telling me that I interrupted execution and the IDE's focus is put on that tab. This interferes with my work since after I've stopped a script, I usually want to make some changes. But I have to wait until the log is produced and IDE focus shifts to it, then click again on my script to get back to it.



The same thing happens when there's an error. Can I suppress that behavior? I know I can go look at the log if I need to. I'd rather not be forced to.
  • Thanks, that's what I was looking for. 



    I'd like to go ahead and display the log if the script ends on its own (finishes normally, or hits an error). Any way to do just that?
  • Hi,



    There's no way to set conditions for this. You can either enable or disable automatic log showing on stop, no matter how the playback stopped.
  • Is there some way in a script where I can force the log to open in a tab and switch focus to it? Something like Log.Show()?



    That way I could put it at the end of a script on normal termination.
  • Hi,



    There's no way to control this. Tests cannot work with TC's panels, and you cannot display the log from a script because the current log in your project doesn't exist until the script stopped. TC displays it after execution at the moment which is inaccessible to any script commands.