TC14.2 \ Chrome 77 close browser \ process issue
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TC14.2 \ Chrome 77 close browser \ process issue
All,
I have a web-based framework that I had for a good while been executing my test scripts against Chrome 76 using TC14.1 into TC14.2. Then Chrome updated to 77.
The issue that I get conssistently now is when my script at the end will logout of my web app, and then closes the Chrome browser.
i.e. code example:
.
.
// Logout
WebMyAccountSignOut(page);
Log.Message(" ");
Delay(30000); --- 3000 used to work for me, then I went to 6000 , still see issue at 30 sec wait
// Close Chrome browser
Sys.Browser(browser).Close();
Warning from TC14.2
Process "chrome" stayed in the system after the close command was used.
Chrome is working in the background and cannot be closed.
I have in Chrome 77 @ chrome://settings/system
Turned Off: Continue running background apps when Google Chrome is closed
I have to logout and close browser like a user as to clear out tokenid that the web app
tracks some on the next script when Chrome is started to login, the web app is still not
considered that user still logged in.
Need some help here
Thanks,
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you close all other instances of Chrome before you test? Perhaps there's a lingering one from email use or something.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All instanaces of Chrome are closed prior to the test scripts running.
This all worked great in TC 14.1 and Chrome 76.
Trying to narrow down what's changed.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding just another tidbit here:
There is 1 or 2 test scripts here and there that will PASS.
All the test scripts start up the same with chrome and logout, close Chrome the same way.
Not sure if there is an easy way to downgrade Chrome 77 back to 76 to try that approach to debug.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What does task manager show is still running on Chrome when test fails?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @jkrolczy,
Was the issue resolved? Please share the solution with us.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has not been resolved yet.
Now that Chrome 78 is out, I'm doing some more testing to see if this is Browser side related.
Will keep all posted.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue still happens every so often.
Chrome 78 now 79
TestComplete 14.3 being used.
I will keep monitoring anf report back if this starts getting worst again.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We've solved a similar problem with IE where sometimes the application stays memory resident. So, when we close the browser in script, we then use the following code to make sure that it's no longer memory resident. You might be able to adapt something similar for Chrome.
function closeIEInstance() { var counter = 0; var browser; browser = Sys.WaitBrowser('iexplore', 1000); while((browser.Exists) && (counter < 60)){ counter++; browser.Terminate(); browser = Sys.WaitBrowser('iexplore', 1000); } }
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
