Forum Discussion

thilakasiri1978's avatar
thilakasiri1978
Occasional Contributor
11 years ago

How should I call a TestComplete script at runtime ?

Hi, I stored my test complete scripts names in an excel files and I need to call it in my driverscript. I used the below code and I'm getting and vb error. appreciate your help. Sub Driv...
  • Colin_McCrae's avatar
    11 years ago
    So does:



    Sc_Name = "TC8_CAMP_TerminalValidations.method1()"



    Eval(Sc_Name)



    Work OK?



    scriptCall = Project.Variables.DriverScript.Value("Sc_Name") & ".method1()"



    Eval(scriptCall)



    Should also work. As long as the value in the project variable is correct ....