| || |
Environment Variables file
Each of my QTP tests uses an environment variables file.
When I run the QTP tests from a batch I want to override that setting and ignore the environment variables file. Is this possible?
I want to use the Launchers object instead...
Another question, can I overwrite the environment variables file in my batch script? If I am loading A.xml in individual tests and want to use B.xml when tests are run in batch mode. Is it possible to control this from the batch script?
Re: Environment Variables file
You could use a common function to figure out which environment variables file to use. Each script would run the function.
You would still need to have some way of knowing if the script were running individually or in batch mode. I guess the Batch script would share a common .vbs file with all individual scripts that declares a variable blnInBatchMode. The default = False. When the batch mode script runs, it sets the value to True. and the common function just checks blnInBatchMode to figure out which environment variable XML to load up.
I'm making this all up. I didn't try it, but it's what I would try.