Forum Discussion
shankar_r
Community Hero
I had the slowness with our AUT(Java Swing application) as well.
I fixed using Java Clear Cache on each run, ExtendedFind and etc.
Try cleaning java cache still, if you see preformance hit then you can create support for your issue here,
https://support.smartbear.com/message/?prod=TestComplete
danalu
6 years agoContributor
many thanks,
how to clear Java cache in each run? can you give a code sample?
- shankar_r6 years agoCommunity Hero
Here you go,
function JavaWSClearCache() { try { Sys.OleObject("WScript.Shell").Exec("cmd /c javaws -clearcache"); Log.Message("Java Cache cleared"); } catch(ex) { Log.Error(ex.stack); } }
- danalu6 years agoContributor
Thank you!
Did you mean call clear cache before test case? seem i have no luck with it. Still same waiting message.
- shankar_r6 years agoCommunity Hero
Another possible reason could be, if you are checking the object existence before that rendered then it will start to prepare an object recognition hint