Forum Discussion

rajs2020's avatar
rajs2020
Frequent Contributor
4 years ago

Accessing results from other steps - How to make context expand short?

Say we get one row from a database and then we access that row in a groovy script. I see many test scripts which access multiple columns in the row like this:   context.expand('${GetRowFromDatabas...
  • nmrao's avatar
    4 years ago

    Try changing from

     

    context.expand('${${row}/EMPLOYEENAME[1]}')

     

    to

    context.expand('${' + row  + '/EMPLOYEENAME[1]}')