Forum Discussion

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

     

    First, a question... is Test1 actually in Unit1?  Because your screenshot shows it as being in the unit that you currently have open.

     

    If Test1 is actually in Unit1, then you need to add 

     

    //USEUNIT Unit1

    to the top of your current unit of code to make sure that it is properly referenced.  

     

    If, however, Test1 is not in Unit1 but is in your current unit, then you need to do two things.

     

    First, reverse your functions so that your call to the drive method is happening AFTER the Test1 function declaration.  Secondly, replace your call to DriveMethod to indicate, your actual unit name and not Unit1.  Like so

     

    function Test1();
    {
    
    //blah blah blah execute your code yada
    
    }
    
    function DriveMyTest()
    {
       DDT.CSVDriver("C:\\user\\varsha\\TestCompleteDDT.csv");
       DDT.CurrentDriver.DriveMethod("Test_for_Samp23_DDT_Script_csv.Test1");
    
    }