HI i need to setup datasink using groovyscript
HI I have soapui pro
I have a project with a large number of test cases.
Using groovy script i need to add a datasink test step to each test case which will write response values to excel.
I do not want to manually go and add datasink test step in each test case.
So where do i start?
Thanks in Advance.
Thanks for expanding on this. Here are some configurations that should help:
- You can pickup your files with a DataSink type directory: e.g. https://www.soapui.org/docs/data-driven-tests/using-files.html
- Then you can have a nested DataSource type XML where you could walk through repeating tags: e.g.
http://blog.smartbear.com/api-testing/how-to-use-xml-datasources-for-response-processing-in-soapui/
The one setup I'm not 100% on how you should map is the lookup against the Excel. The way that data is structured with looping through columns will make it hard to be dynamic. If you had a lightweight database instead of Excel, you could use a JDBC Test Step to do a SQL lookup