Forum Discussion

prabhjot88singh's avatar
prabhjot88singh
Contributor
5 years ago
Solved

DDT.CURRENTDRIVER IS null or not an object

Hi Team,   I am using below code:   function driveContributionFile() { DDT.CSVDriver("C:\\Users\\singhp\\Desktop\\PENFAX_REGRESSION_SUITE\\Input Data\\createContribution.csv"); DDT.Curren...
  • LinoTadros's avatar
    LinoTadros
    5 years ago

    That is because you are executing the function createContributionFile() instead of executing the driveContributionFile()

    Once DDT.CurrentDriver.DriveMethod(...) is involved, you can no longer call the driven method yourself.  It has to be called from the driver method only otherwise the DDT object will be null and will fail on first use.

     

    Cheers

    Lino