cancel
Showing results for 
Search instead for 
Did you mean: 

multiple datasinks in one test step.

Syavosh
New Contributor

multiple datasinks in one test step.

I am executing 4 separate JDBC steps in a test case and want to write each result as a new row into EXCEL using DataSink.

is this possible in ReadyAPI?

2 REPLIES 2
avidCoder
Super Contributor

Re: multiple datasinks in one test step.

Yes, We can do it. Put all the results and iterate using for loop and store inside DataSink like this:-

 

int j

def result = "get it from JDBC and iterate through all the results and store inside result"

 

for(int i=0; i<result.size(); i++) {

testRunner.testCase.testSteps["DataSink"].setPropertyValue(result[j], Value) //where "j" will give you the number of result

}

Syavosh
New Contributor

Re: multiple datasinks in one test step.

Thanks, Will give it a go.

Regards

Syavosh

 

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