Micro Focus QTP (UFT) Forums
Local script to make compatible with QC - 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: Local script to make compatible with QC (/Thread-Local-script-to-make-compatible-with-QC)



Local script to make compatible with QC - automation2012 - 01-20-2015

Hi All,

I have prepared a script in local machine which is working good.
I used below methods/statements for attaching resources/libraries during run time in the start of the script. For this, I used environment variables(GenericLibraryPath = C:\CorpApps\...genericlibrary.vbs) to set the path for resources.

Code:
strConfigFilePath = Environment("TestDir")&"..\..\..\Environment File\Config.xml"
Environment.LoadFromFile strConfigFilePath
GenLibPath = Environment.Value("GenericLibraryPath")
InitLibPath = Environment.Value("InitializationLibraryPath")
AppLibPath = Environment.Value("ApplicationLibraryPath")

LoadFunctionLibrary GenLibPath
LoadFunctionLibrary InitLibPath
LoadFunctionLibrary AppLibPath

Actionname =Environment.Value("ActionName")
RepPath = Environment.Value("Rep")
fnORUpdate Actionname,RepPath


Now I want to run the same script in QC but I need to make changes in Environment variables to make it work in QC. Please help me anything can be done without disturbing the script. If script needs to be modified pls guide me the procedure.

Thanks.


RE: Local script to make compatible with QC - automation2012 - 01-28-2015

Any pointers on this??