Skip to content

DataSinks

Overview - DataSinks

This page contains information on standalone SoapUI Pro that has been replaced with ReadyAPI.
To try enhanced data-driven testing functionality, feel free to download a ReadyAPI trial.

data-sink-window

OptionDescription
1_snag_eviPropertiesDataSink properties table
2_snag_eviToolbarDataSink toolbar
3_snag_eviConfigurationDataSink configuration pane
4_snag_eviData LogTest results when running the DataSink

Properties Table

data-sink-properties

OptionDescription
add_propertyAddAdd new property
remove_propertyRemoveRemove selected property
up_arrowMove UpRename selected property
down_arrowMove DownMove selected property up one row
arrow_downSortSorts properties alphabetically
clear_propertiesClearClears all curent property values
load_propertiesLoadLoads property values from an external file
SaveSaves current property values to a file

DataSink Toolbar

data-sink-toolbar

OptionDescription
runWrites the current property values to the configured DataSink
clear_propertiesClears the Data Log
optionsSets options for this DataSink
DataSinkDataSink type
help-browserOnline Help

icon-options-dialog DataSink Options

data-sink-options

OptionDescription
SharedControls whether this DataSink should be shared between threads in a LoadTest

DataSink Type

data-sink-type

OptionDescription
SubReportWrites property values to a subreport that can be used for custom reporting (see The Report DataSink)
Data ConnectionWrites property values to a database via a Prepared SQL statement, uses a DB Connection defined at the Project Level
FileWrites property values to a CSV file
PropertyWrites and aggregates property values to a new result property (see example in Saving Data from your Tests)
GroovyInvokes a script for handling property values
ExcelWrites property values to an XLS file
JDBCWrites property values to a database via a Prepared SQL statement, uses JDBC

icon-settings-tab SubReport DataSink Configuration

data-sink-subreport

The SubReport DataSink collects data and exposes it to generated reports

icon-settings-tab Data Connection DataSink Configuration

data-sink-dataconnection

OptionDescription
1_snag_eviConnectionDatabase Connection to be used
2_snag_eviConfigureConfigures Database Connection settings on project level (Read Reference)
3_snag_eviTest ConnectionTests if connection can be established for current configuration(Read Reference)
4_snag_eviQueryEditor for SQL query to be executed
5_snag_eviStored ProcedureIndicates if query should be executed as a stored procedure call
6_snag_eviUse a wizardCreates query using a wizard (Read Reference)

icon-settings-tab File DataSink Configuration

data-sink-file

OptionDescription
1_snag_eviFileFile to read
2_snag_eviSeparatorSeparator between columns
3_snag_eviTrimIndicates if values should be trimmed
4_snag_eviAppendIndicates if properties should be appended to existing file

icon-settings-tab Property DataSink Configuration

data-sink-property

OptionDescription
1_snag_eviResult PropertyThe target property in this TestStep to write to (must be defined!)
2_snag_eviPrefixThe prefix for the property value
3_snag_eviContentThe suffix for the property value
4_snag_eviSuffixOne XPath expression for each DataSource property relative to the Row XPath

icon-settings-tab Groovy DataSink Configuration

data-sink-groovy

This step allows any kind of DataSink to be created for a DataSink Step. Available context variables are:

OptionDescription
”context”The current TestRunContext for storing context-specific values
”properties”A Map containing the current property values
”testRunner”The current TestRunner object
”log”A log for logging

To see an example of how to implement a Groovy DataSink, please see Scripting Tips & Tricks.

icon-settings-tab Excel DataSink Configuration

data-sink-excel

OptionDescription
1_snag_eviFileThe source excel file to use as a template for adding data
2_snag_eviOut FileThe target excel file to write. If not specified the data is written to the source file
3_snag_eviWorksheetWorksheet in file
4_snag_eviStart at CellA cell to start (for example B5)
5_snag_evi(Re)Generate PropertiesUse a wizard to add/remove properties

icon-settings-tab JDBC DataSink Configuration
data-sink-jdbc

OptionDescription
1_snag_eviDriverDriver to be used for a connection
2_snag_eviConnection StringConnection string to be used for a connection
3_snag_eviPasswordPassword to be used for a connection
4_snag_eviConfigureConfigures DatabaseConnection settings on project level (Read Reference)
5_snag_eviTest ConnectionTests if connection can be established for current configuration(Read Reference)
6_snag_eviQueryEditor for SQL query to be executed
7_snag_eviStored ProcedureIndicates if query should be executed as a stored procedure call
8_snag_eviUse a WizardCreates query using a wizard (Read Reference)

Back to Top