Ask a Question

TC is closing an appliaction and it should not be

jim_davidson
Occasional Contributor

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 2
TanyaYatskovska
Community Manager

Re: TC is closing an appliaction and it should not be

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/

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Ryan_Moran
Valued Contributor

Re: TC is closing an appliaction and it should not be

Sounds like it is possibly tripping the unexpected window handler.

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

 

1.png


''-Praise the sun and Give Kudos.''
cancel
Showing results for 
Search instead for 
Did you mean: