Dynamically Loading libraries locally at run-time - QTP

QTP provides the ExecuteFile function to dynamically load a library at run-time. When this method is used the library and its contents are only visible in the Action in which the ExecuteFile is used. Below are the few examples:

'Load a file using absolute path
ExecuteFile "C:Test.vbs"

'Load a file using relative path
currentTestDir = Environment"TestDir")
vbsFilePath = currentTestDir& "....C:Test.vbs"

' Load a file Library from Quality Center
ExecuteFile " IQC-ATTACHIj;SubjectVCoaraonLibsj; YTest. vbs"

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

QTP Topics