ContributionsMost RecentMost LikesSolutionsRe: How to pass variables to USEUNIT command to dynamically load external script units That exactly is my constraint. I cannot have all the scripts marked as "USEUNIT" in the driver. Given there will be 1000+ test scripts, it wont be advisable to import all the test scripts in the driver. It will heavily increase the memory footprint of the program, and also will become difficult for maintenance as the project grows. The above proposed solution is exactly what I am willing to do, but with USEUNIT <scriptname>. Could you suggest a solution to achieve anything equivalant to "USEUNIT <scriptname>" where scriptname is a variable Re: How to pass variables to USEUNIT command to dynamically load external script units 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. How to pass variables to USEUNIT command to dynamically load external script units In my test project, All my test scripts have a method named "Test()" which perform the test activity. I am currently working on creating a Driver script which will read the names of the script files to be executed from an excel file and then invoke TestcaseName.Test() method for all the script names returned from the excel file. scriptName = ... read script names one by one from excel ... strCommand = scriptName + ".Test" Runner.CallMethod(strCommand); This snippet is being iterated for all the script names returned by the excel file. Currently, using the Runner.CallMethod, I am conveniently able to eliminate the need for having a "//USEUNIT <scriptname>" call. Since the Runner.CallMethod is deprecated, I am looking for an alternative method to iterate executing the Test() method for all the script files. To achieve that, I am thinking of approach where I call the USEUNIT at runtime with the specific script name as a parameter. However, I am not able to pass a variable as a parameter to USEUNIT command. Could any of the experts help me resolve this problem? How do I achieve this: var scriptName = "TestScript_TC01" //USEUNIT scriptName Regards, Dev