Forum Discussion

jim_davidson's avatar
jim_davidson
Occasional Contributor
9 years ago

TC is closing an appliaction and it should not be

At certain points in our program’s execution, we will launch a secondary application and it will display a browser control. This secondary app might be used multiple times in a row, or might close and be reopened later on.. whenever we have closed it, the next time it launches, we get errors in our test logs. This is not an error condition, it is how our software works. We would like to know how we could tell TC to expect a window to be launched at a certain point in a new process (or re-launched by an existing process).

 

 

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Jim,

     

    You are running your application from TestComplete’s Tested Application, right? In this case, specify the IgnoreRunning parameter to True:

     

    //JScript
    TestedApps.<AppName>.Run (-1, True);

     

     

    Refer to the following online article for more information: http://support.smartbear.com/viewarticle/55086/

    • Ryan_Moran's avatar
      Ryan_Moran
      Valued Contributor

      Sounds like it is possibly tripping the unexpected window handler.

      In Tools > Current Project Properties > Playback check Ignore unexpected window

       

      1.png