cancel
Showing results for 
Search instead for 
Did you mean: 

How to read data from properties test step and add assertion

SOLVED
Highlighted
Occasional Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: How to read data from properties test step and add assertion

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

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

View solution in original post

2 REPLIES 2
Highlighted
Contributor

Re: How to read data from properties test step and add assertion

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

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

View solution in original post

Highlighted
Occasional Contributor

Re: How to read data from properties test step and add assertion

Hi Reede,
Thanks,
Is there any way we can get mutiple value from properties test step using loop?
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors