Forum Discussion

sparrowenclave's avatar
sparrowenclave
Occasional Contributor
4 years ago
Solved

How to read data from properties test step and add assertion

I have properties test step with some data which is generating on runtime based on the request message, I wanted to read the data from Properties test step and adding a assertions on groovy test step...
  • PrathapR's avatar
    4 years ago

    def name = context.expand( '${Properties#Name}' )

    or
    def name = testRunner.testCase.getTestStepByName("Properties").getPropertyValue("Name")