Forum Discussion
devnyk
10 years agoNew Contributor
My requirement is to run only specific test scripts that are marked active in the Excelsheet. The challenge is that name of the script to be executed will become known only at the runtime.
Will I be able to add the Script Unit Names fetched from excel to the Project Variables at Run time?
I would appreciate if you could share some sample program of using combination of Project Variables and the Exec command as you suggested.
cunderw
10 years agoCommunity Hero
Assuming you already have all of your useunits in your driver script you could do something like this:
scriptName = ... read script names one by one from excel ... strCommand = scriptName + ".Test();" eval(strCommand);