Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resetting a variable list vbs file
#1
Not Solved Shy 
I have a VariableList.vbs file that I load using File->Settings->Resources and adding as my last Associated Function. Within my VariableList.vbs file I have about 30 or so variables that I set to 0 or null for the current environment.

I also use the statement DataTable.Importsheet"J:\QTP_Tests\NightlyRegressionTesting\GlobalDatatableForStartPerENV.xls", 1, "Global" which for each iteration (dev, ite, cte, prod) will set the user Id, password and a few other variables for each iteration.

The problem is that as I run my tests for each iteration, the 30 or so variables are not getting reset back to 0 or null as I need them to.

How do I change my code to reset my VariableList.vbs?
Do I pull DataTable.Importsheet"J:\QTP_Tests\NightlyRegressionTesting\GlobalDatatableForStartPerENV.xls", 1, "Global" out of my VariableList.vbs and stick the code on my test?

or

Do I remove my VariableList.vbs as an associated function? And call it separately within my test.

Or

How can I set my global datasheet to run through each iteration/environment, then reset /recall the VariableList.vbs for each iteration?

Any thoughts?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting an error to open UFT using vbs file Naresh 1 5,159 06-11-2015, 06:34 PM
Last Post: venkatesh9032
  QTP Report to respective QC test Set Path through VBS Anand Saboo 0 2,307 11-01-2013, 02:36 PM
Last Post: Anand Saboo
  How to print value in QTP Log using .vbs kalyaniR 1 3,188 10-25-2013, 04:32 PM
Last Post: ssvali
  Accessing Environment variable value in Library file vishruth143 1 2,478 09-07-2013, 05:11 AM
Last Post: jacosta
  How to run .vbs files through wscript.exe sams001 0 2,574 03-23-2013, 11:08 AM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)