26 September 2008 - 2.5-beta1 |
Often you want save the data when doing Web Service testing. This can be in to take a response and use it in later Requests, save info for logging purposes or even to actually populate a business database.
This can be done in soapUI by writing a Groovy script, but is simplified in soapUI Pro.
soapUI Pro includes a specialized DataSink TestStep that greatly eases the task of saving of data collected during a test to an external storage. The following DataSink types are supported:
The DataSink editor is divided into 4 parts;
The list of Properties should contain those properties that will be passed to the configured Datasink, they are added/removed using the Add/Remove toolbar buttons. The DataSink dropdown selects the DataSink to use
The DataSink Options dialog is as follows:
The following settings are available:
Every time the TestCase execution flow passes the DataSink Step it will call the configured DataSink with the current property values. Values should have been previously set by either a Groovy script or a property transfer, or can alternatively contain a PropertyExpansion syntax.
It is possible to drag properties from the Navigator tree into the Properties table to either add new a new property containing a PropertyExpansion for the dragged property, or if dragged onto an existing propertys' value; to create a PropertyExpansion there instead.
The "Shared" option in the toolbar controls if the DataSink should be shared between threads during a LoadTest, meaning that all running threads will write (synchronized) to the same DataSink instead of each creating their own.
The JDBC DataSink has the following configuration panel:
The 4 available options are pretty straight forward:
The Excel DataSink has the following configuration panel:
The 4 available options are pretty straight-forward:
The File DataSink has the following configuration panel:
Files will be written in a simple row format, using the specified separator. The available options are:
The Groovy DataSink has the following configuration panel:
This step allows any kind of DataSink to be created for a DataSink Step. Available context variables are: