Forum Discussion

sanj's avatar
sanj
Super Contributor
7 years ago

How do I access data from a data source using groovy

Is there anyway to acess a specefic row using groovy?  
  • lakshmiarun's avatar
    7 years ago

    Hi Sanj,

     

    Thank you for your post. Yes, it is possible. Please try the below script:

     

    def x = context.expand('${DataSource#columnName::0}') #make sure you mention the specific column name and run the whole loop(test case) to see specific values during an iteration. Hope this helps.

     

    Best,

    Lakshmi