Forum Discussion
What I've done in the past is created an INI file with different environmental values. Then, using the Storages.INI object, I'd read those values in from the INI into the project variables... need to run under a different environment? Change the INI values or drop in a different file.
With another tool I've used a single variable to indicate the particular environment under test, then used that to select a .csv file containing the values needed. I wonder if I could do this with a DB Table variable using a script to change the file that is pointed to at run time?
- NisHera7 years agoValued Contributor
Yes you could do the same.
Add a single variable in your init script.
and use DDT driver to read .csv file.
you can re-assign project variable values like
Project.Variables.DatabaseName = DDT.CurrentDriver.Value('Database')
where you have variable call "DatabaseName" and csv file has column Database
.....and of course there are many other ways to do that
Related Content
- 4 years agoLogiv
- 2 years agoLRuoc
- 5 years agoKrishna_Kumar
- 2 years agoTestQA1