difference between loadfunctionlibrary and executefile - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: difference between loadfunctionlibrary and executefile (/Thread-difference-between-loadfunctionlibrary-and-executefile) |
difference between loadfunctionlibrary and executefile - payal - 09-21-2011 can anybody plz let me knw the difference between exceutefile statement (when used for attaching function library at run-time) and loadfunctionlibrary (new function in qtp11) also how to load or at run-time if i m using qtpapp.test.actions(1).addObjectRepository then or remains associated with the test even after test execution is done. bt i want tht or should get attach only at run-time RE: difference between loadfunctionlibrary and executefile - Saket - 09-22-2011 loadfunctionlibrary - Loads the specified function library when this step runs Executefile - Executes a vbs file. when you run this, the definitions (functions, subroutines, classes, etc.) in the file are available from the global scope of the action's script. I think the main difference would be you can not debug with the statements when you use executefile. answer to your second ques - at the end of your test execution before quitting QTP, remove the objectrepository you added . |