cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the DataSink property values printed?

SOLVED
avidCoder
Super Contributor

How to get the DataSink property values printed?

Can we print the datasink property values?

1 ACCEPTED SOLUTION

Accepted Solutions
avidCoder
Super Contributor

Re: How to get the DataSink property values printed?

Oh, I got the solution:--

 

def data = context.testCase.getTestStepByName("DataSink");

propToGet = data.getPropertyNames();
for ( int j = 0 ; j < propToGet.size(); j++ ){
def value = data.getPropertyValue(propToGet[j])

}

View solution in original post

3 REPLIES 3
msiadak
Community Hero

Re: How to get the DataSink property values printed?

What do you mean by "print the datasink property values"? 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
avidCoder
Super Contributor

Re: How to get the DataSink property values printed?

Oh, I mean, How to get the propertyValue and propertyName from the DataSink.. using groovy code.

avidCoder
Super Contributor

Re: How to get the DataSink property values printed?

Oh, I got the solution:--

 

def data = context.testCase.getTestStepByName("DataSink");

propToGet = data.getPropertyNames();
for ( int j = 0 ; j < propToGet.size(); j++ ){
def value = data.getPropertyValue(propToGet[j])

}

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors