I have created a global sheet and stored the values. I want to use them in an other script .How can I use those values in other script?
Where is the global sheet stored?
If you are storing your tests in ALM/Quality Center you can store the global sheet as a Data Resource in QC and then modify your QTP Test Settings to reference the Data Resource in QC.
(Opinions and information contained in this post are wholly my own and do not reflect the opinions of my employer.)
my suggestion would be to isolate the global sheet data and add it during run time.
when things gets harder ,the harder gets going
Are both scripts running at the same time? The run time book cell values evaporate at the end of the QTP run unless an export is done.
After an export, you could do an DataTable.import() and use the path of the default.xls workbook. You could also import only the Global sheet. I have not tried this, but I think it would work.
When in Florida, Don't Tampa with the code. I made this up.