Contributions
Re: How to store value from groovy script into DataSource
Its kind of solved my problem. I want to loop the ID into my next REST request step. Now I have to store my IDs into DataSink Excel and Load the data (IDs) into datasource in my next step is there any other easy way to do it ??6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes2CommentsHow 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 DataSource6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes4Comments