Unified Functional Testing Practitioners Forum

Disable Code Caching

Occasional Advisor

Disable Code Caching



We are developing code in notepad++ and running it from uft. However we're having issues with uft caching code. So whenever we make some changes to our code and save it, uft is still using the old cached code. We have to either restart uft or reopen the library in the uft code editor in order to recache it.


Is there any way to stop uft from caching the code, and instead always run the code in the files? Alternatively is there a way to force yft to always recache all code at the start of a run?

HPE Expert

Re: Disable Code Caching

Hello Eric,


   Try LoadFunctionLibrary in order to Load the libraries each time test run.


   At the begining of the test load all the libraries needed by code.

   LoadFunctionLibrary "c:/temp/library1.qfl" 

   LoadFunctionLibrary "c:/temp/library2.qfl" 

   LoadFunctionLibrary "c:/temp/librariesneeded.qfl" 




If you find that this or any post resolves your issue, mark it as an accepted solution.

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

Acclaimed Contributor

Re: Disable Code Caching



Unfortunately this doesn't help when libaries are loaded directly from Quality Center. UFT stores the files somewhere in a temp folder and reloads them from there, when the test is started. If I edit the library outsite of UFT (we're using Test Design Studio) and save it to QC, the file won't be downloaded again and my changes won't be visible until I manually reopen the file in UFT.


Additionally I couldn't debug a library loaded via LoadFunctionLibrary, breakpoints inside this lib were ignored. It only worked if I set a breakpoint before calling LoadFunctionLibrary and used Step-Into feature.

Acclaimed Contributor

Re: Disable Code Caching



We're experiencing the same problem. We load some libraries with the LoadFunctionLibrary function. When we change code inside these files with notepad and re-run our tests, UFT runs the cached code instead.

The only way to fix it is to restart UFT.

Regular Collector

Re: Disable Code Caching

We are getting this too and using UFT 12.02 patch 1 and QC 12.01.


Made a change to one of the tests yesterday in order to identify a web button. It worked fine and tested it yesterday on machine A.  This morning running the same test, machine A picked up the change but Machine B was still using the previous code, even though both machines had been turned off overnight.


It's very frustrating to say the least.

//Add this to "OnDomLoad" event