Forum Discussion

nwyatt's avatar
nwyatt
New Contributor
11 years ago

TestComplete 10 Loses Focus While Scripting on Multiple Monitor Setup after Code Completion window

When scripting in TestComplete 10  after the Code Completion pops up (either through autocomplete or by pressing CTRL+Space) and then Code Completion closes (by selecting an item, finishing typing the item, or by pressing Esc to close it), TestComplete then loses focus and I can no longer type in the scripting window.  This happens every time the Code Completion window pops up.  Where the focus goes has not been consistent, but the Explorer bar seems to be the most common.

 

The issue happens while I am using a multiple monitor setup.  If I switch my display to only be on one monitor, I have not observed that TC10 loses focus.

 

Another workaround that appears to work is if I leave the object spy open on the same monitor as the scripting window, then I don't lose focus.  If I move the object spy over to the other monitor, I will again lose focus after the Code Completion window closes.

 

Has anyone else encountered this issue?  If so, how did you resolve it?

 

TC10 Version = 10.60.3387.7

7 Replies

  • Hi All ,

     

    I have 2 files to be included from commonfiles folder as shown in main(). How do i read both in my include function ?. Please look into this.

  • MulgraveTester's avatar
    MulgraveTester
    Frequent Contributor

    I have the same issue. While scripting, at random (~2 minute) intervals my scripting pane loses focus and what I have typed gets lost.

     

    It is not limited to the scripting window. Any object that has focus (e.g. the log-in to this thread) loses focus.

     

    I am also using dual monitors.

    TC 10.60.3387.7

    • MulgraveTester's avatar
      MulgraveTester
      Frequent Contributor

      Is anyone at SmartBear going to reply to this topic with a fix?

       

      No matter what has focus (Excel or TC Script Editor) loses focus and any key presses are lost. After a second the object may be given focus again or you may need to click (the TC script editor) to regain focus. It is very frustrating.

       

      I think that it may be caused by wermgr.exe which pops up frequently in the task manager.  To test this open Excel while TextComplete is open. Also open the task manager and sort processes by CPU. Give a cell in Excel focus. When the cell loses focus inspect the Task Manager - wermgr.exe has just popped to the top of the list.

       

      wermgr.exe is a Windows System Process but this issue does not occur if TestComplete is not running.

      • nwyatt's avatar
        nwyatt
        New Contributor

        Hi MulgraveTester,

         

        I think you and I might be having slightly different issues.  I only lose focus from TestComplete 10 when the code completion window is used, but not at the random intervals like you are experiencing.  I haven't experienced a loss of focus with browser windows or Excel like you have.

         

        I recreated my issue and watched the task manager, and I never see a wermgr.exe process appear.  The only thing of note is the TestComplete.exe process is given a little CPU after the code complete, otherwise most of the CPU remains in the System Idle Process.

         

        I'm currently working around my issue by turning off the Code Completion "Auto Pop-Up" and rarely use the Code Completion at this point, but that might not be a viable workaround for you based on the symptoms you're experiencing.