Forum Discussion

MKV's avatar
MKV
Contributor
7 years ago

how to count the number of rows fetched in data source

Hi,   Is it possible to count the number of datas fetched in a data source in readyapi? Can it be stored in a variable to use in the next steps.   Thanks!
  • HimanshuTayal's avatar
    7 years ago

    Hi MKV

     

    Try below code:

    DSrowCount = testRunner.testCase.testSteps["DataSource"].rowCount
    log.info DSrowCount

     

    Do Like/Accept it as Solution if it solves your query.

     

    Thanks,

    Himanshu Tayal