Hi,
so if I understood you correctly you want to access some counter inside DataSource, but there is no such a counter but it can be simulated. In your groovy step add variable for example myCounter which if not exist is initialized and incremented. Next time just fetch the same variable and increment it. The code can look like this
if( !context.hasProperty("myCounter") ){
context.setProperty("myCounter", 0)
}
def myCounter = context.getCounter("myCounter")
myCounter ++
context.setProperty("myCounter", myCounter )
// use this variable in you groovy script
Hope this helps
regards
nebojsa
SmartBear Software