sid
8 years agoOccasional Contributor
How to update 'USEUNIT name at run time
I am reading unit name from excel and passing them to tempVar and using Execute command , I am execute TestCase.
But I am not able to update 'USEUNIT name at run time ? how to do that plz help.,.
I don't want to declare 'n'n number of USEUNIT
Example(DriverScript)
'USEUNIT Unit1 '# want to read from excel or how to assign unit name at run time?
'USEUNIT Unit2
'USEUNIT Unit3
.....
...
...
'USEUNIT UnitN
Sub Main
unitName = "Unit2" '# reading from excel
methodName = "Test" '# reading from excel
Execute unitName &"."&methodName
End Sub