Forum Discussion

TesterNo1's avatar
TesterNo1
Contributor
9 years ago

Datsource parametrization from groovy

I have 20 properties that is coming in from excel sheet to data source.Current code (below )is repeated 20 times.I am looking to parametrize the data source property name and value to be set in prope...
  • nmrao's avatar
    9 years ago

    Change from

    def myvar= context.expand('${DS-Master-Excel#+"${PropVal}"+}').trim()

    to

    def myvar= context.expand('${DS-Master-Excel#'+"$PropVal}").trim()