Forum Discussion

Akash1's avatar
New Contributor
3 years ago

Ready API datasource with groovy error

Hello All,   I am having the following error when I run this groovy script for my datasource in readyapi: Error in datasource script of Data source. Cannot get property of "current row" on null obj...
  • ChrisAdams's avatar
    3 years ago



    Just focusing on the error message initially....


    Your line def row = testRunner.testCase.testSteps["DataSource"].currentRow should work.  It works for me, but only after I checked that the bit in speech marks is correct.  E.g. is your datasource step definitely called DataSource.  Also, is your Groovy step after the Datasouce step and within the datasource loop?