My ImageAccessVariableList.vbs file is rather simple.
As I load the file,
(either by)
File->Settings-> Resources->[+]
(or by)
ExecuteFile "O:\QTP Tests\QTPInputData\ImageAccessVariableList.vbs"
the variables do get added to the variable list tab of QTP. But on exiting ImageAccessVariableList.vbs, the QTP variables tab is then empty.
My goal is to use certain variables throughout my testscript and all of my added library functions that I can call at any time. Currently I must pass values through my function calls or re-intialize variable values.
Example: I need to know the FaxCount value in multiple functions that reside in different libraries.
Thoughts of what i am doing wrong? Must i call the "ExecuteFile "O:\QTP Tests\QTPInputData\ImageAccessVariableList.txt"" in every function?
thx for looking ;-)
(see attached PDF)
Code:
IterationCount = Datatable("IterationCount", dtGlobalSheet)
YesNoRun = Datatable("IterationCount", dtGlobalSheet)
ACCT1 = Datatable("ACCT1", dtGlobalSheet)
CurrentRow = DataTable.GlobalSheet.GetCurrentRow
ENV = Datatable("ENV", dtGlobalSheet)
C = 0
FaxCount = 0
As I load the file,
(either by)
File->Settings-> Resources->[+]
(or by)
ExecuteFile "O:\QTP Tests\QTPInputData\ImageAccessVariableList.vbs"
the variables do get added to the variable list tab of QTP. But on exiting ImageAccessVariableList.vbs, the QTP variables tab is then empty.
My goal is to use certain variables throughout my testscript and all of my added library functions that I can call at any time. Currently I must pass values through my function calls or re-intialize variable values.
Example: I need to know the FaxCount value in multiple functions that reside in different libraries.
Thoughts of what i am doing wrong? Must i call the "ExecuteFile "O:\QTP Tests\QTPInputData\ImageAccessVariableList.txt"" in every function?
thx for looking ;-)
(see attached PDF)