Skip to content

DataSources

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.

Overview - DataSources

data-source-window

OptionDescription
1_snag_eviPropertiesDataSource properties table
2_snag_eviToolbarDataSource toolbar
3_snag_eviConfigurationDataSource configuration pane
4_snag_eviData LogTest results when running the DataSource

Properties Table

data-source-properties

OptionDescription
add_propertyAddAdd new property
remove_propertyRemoveRemove selected property
renameRenameRename selected property
up_arrowMove UpMove selected property up one row
down_arrowMove DownMove selected property down one row

DataSource Toolbar

data-source-toolbar

OptionDescription
runGets the first 10 rows from the configured DataSOurce
clear_propertiesClears the Data Log
optionsConfigure this DataSource
DataSourceDataSource type
help-browserOnline Help

icon-options-dialog Data Source Options

data-source-options

OptionDescription
SharedControls whether this DataSource should be shared between threads in a LoadTest
Restart SharedControls if a shared DataSource can be restarted during a LoadTest
Restart on RunControls if the DataSource should be restarted every time the TestStep is executed
PreloadPreloads the data before running the TestCase
Fail on EmptyFails the DataSource step if no data is available. This option can be used to do data-driven assertions, if for example the SQL query of a JDBC data source contains a WHERE clause that uses property expansion to select data corresponding a previously returned response
GoTo Loop on EmptyIf the DataSource is empty on initial execution, this option will transfer TestCase execution to the first matching DataSourceLoop step after the DataSource in the TestCase
Start RowThe first row in the configured DataSource to use (first row = 0)
End RowThe last row in the configured DataSource to use
TrimTrims values retrieved from the DataSource
EntitizeEntity values retrieved from the DataSource
ExpandExpand property-expansions in DataSource values

DataSource Type

source-type

OptionDescription
Data ConnectionPerform queries on any JDBC compatible database (uses shareable project-level connections).
GridA user-defined table within soapUI. The results will be put in properties, whose order will map the grid columns. E.g. the first column will go into the first Property.
FileReads the contents of a file into the first Property of the Test Step.
XMLFetches data from a property containing XML via XPath.
GroovyA datasource whose output is defined by a Groovy Script. Results go into Properties by using: result[“myProperty”] = “This string is the result, which will go into the Property named myProperty”.
ExcelReads from an XLS-file. The results will be put in properties, whose order will map the grid columns. E.g. the first column will go into the first Property.
DirectoryReads the content of files in a directory. Each iteration will read from a new file. The file contents are stored in the first Test Case Property.
JDBCPerform queries on any JDBC compatible database (uses TestStep specific connections).
JSONFetches data from a property containing JSON via JPath.

icon-settings Data Connection DataSource Configuration

data-source-dataconnection

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

options icon Grid DataSource Configuration

data-source-grid

OptionDescription
1_snag_eviPropertiesManually editable list of properties values

options icon File DataSource Configuration

data-source-file

OptionDescription
1_snag_eviFileFile to read
2_snag_eviSeparatorSeparator between columns
3_snag_eviCharsetFile char set to use
4_snag_eviTrimIndicates if values should be trimmed
5_snag_eviQuote valuesIndicates if values are quoted

options iconXML DataSource Configuration

data-source-xml

OptionDescription
1_snag_eviSource StepThe TestStep containing the XML property to read from (could be another DataSource)
2_snag_eviSource PropertyThe Property containing the XML to use
3_snag_eviRow XpathThe XPath expression to use for selecting the “Rows” for the data
4_snag_eviColumn XpathsOne XPath expression for each DataSource property relative to the Row XPath

options iconJSON DataSource Configuration

data-source-json

OptionDescription
1_snag_eviSource StepThe TestStep containing the JSON property to read from (could be another DataSource)
2_snag_eviSource PropertyThe Property containing the JSON to use
3_snag_eviRow PathThe JPath expression to use for selecting the “Rows” for the data
4_snag_eviColumn JPathsOne JPath expression for each DataSource property relative to the Row JPath

options icon Groovy DataSource Configuration

To see an example of a Groovy DataSource, please see Scripting Tips & Tricks.

data-source-groovy

 

OptionDescription
1_snag_eviGroovy Script EditorThe Groovy script must set desired properties in the available “result” object (a StringToStringMap)

options icon Excel DataSource Configuration

data-source-excel

OptionDescription
1_snag_eviFileFile to read
2_snag_eviWorksheetWorksheet in file
3_snag_eviStart at CellA cell to start (for example B5)
4_snag_eviIgnore EmptySelects if raw containing empty data should be skipped

options icon Directory DataSource Configuration

data-source-directory
 

OptionDescription
1_snag_eviDirectoryThe directory to scan for files
2_snag_eviFilename FilterA standard FileName filter used to narrow down which files to read
3_snag_eviEncodingEncoding to use when reading files

options icon JDBC DataSource Configuration

data-source-jdbc

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

Back to Top