01-20-2015, 03:11 PM
(This post was last modified: 01-20-2015, 03:12 PM by automation2012.)
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.
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.
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.