I'm logging the testresults to DB while testNG runs the testcases. I'm using excel sheet to provide input data .
For eg:
tablename
row1 col1
row2 col2
tablename
I want to know, which row is getting executed ? There might be any function in dataprovider class which will be storing the counter.
Please help me get the counter value.
Thanks in advance.
Not completely sure that I get what you try to do; but data provider can hardly allow you to get information you want. It will be possible to access method arguments directly if one will implement ITestListener interface.