Ask a Question

Way to clear all Internet Explorer memory within a script?

jgoetz
Occasional Contributor

Way to clear all Internet Explorer memory within a script?

I am having an issue where while running scripts/keywordtests on our web based application, the iexplore memory is building up until TestComplete can no longer "find" the internet explorer window even though it is there, open and active.  Once I close down Internet Explorer completely and reopen it, the application and navigate back to the point it stopped, it works fine.  While monitor memory useage while running the scripts, IE (iexplore) increase to a million plus kilobytes. 

 

What I am wondering is does anyone know how to clear the memory within a keywordtest or vb script without actually closing the internet explorer window?  I am trying to find a work around, which doesn't involve manual input. 

2 REPLIES 2
Colin_McCrae
Community Hero

You don't say which OS and which version of IE, both of which would be helpful.

 

However, there are some suggestions in the first/only response here:

 

http://stackoverflow.com/questions/12976235/how-to-clear-cache-in-ie9-windows7-using-vbscript

 

... which may be a reasonable starting point.

 

And some more here:

 

http://superuser.com/questions/450014/clearmytracksbyprocess-all-options

 

Google is your friend. Smiley Wink

meaton
Member

There is an patch for TC (CC-5019) that will fix this. We were having the same problem with memory inflation in IE and after we installed the patch, the issue was resolved. If you are using TC11, you can request the same patch we did.

 

See here for more info, this is a known issue on all browsers:
http://community.smartbear.com/t5/Functional-Web-Testing/Incompatibility-of-patches-for-TC11-with-Fi...

cancel
Showing results for 
Search instead for 
Did you mean: