jeev
6 years agoNew Contributor
How to store value from groovy script into DataSource
Using groovy script I have gathered all the ID one by one from response. I want to store these values into datasource, and pass them into next request, is it possible??
=========================================================
My script:
for ( j = 0 ; j < dresRows ; j++)
{
def response = context.expand( '${ABCD#Response#$['+j+'][\'href\']}' )
testRunner.testCase.testSteps["IdDataSource"].setPropertyValue("account_id", response)
}
DataSouce is Grid :
ERROR:
I am getting ERROR java.lang.runtimeException: Trying to set read-only property [account_id)
===================================
How to store value from groovy script into DataSource