In this section:
You can parameterize tests with values from a data source, which you can add to the test suite and save in the .tst file. You can specify one or more data sources for a test suite and can use any specified data source throughout a test suite’s tools. In addition, you can create an aggregate data source in which you can combine the values of other available data sources into a single data source.
For example, you can configure SOAtest to send data source values as part of a request to a server. The values that SOAtest receives in response can then be compared to another data source value to check if the response received is correct. SOAtest will check each available combination of data source rows. This behavior is particularly useful if you want SOAtest to perform functional testing on a number of different inputs stored in a data source.
The following shows a request message element that is parameterized to use keywords stored in the Keywords column of the Books data source:
Parameterized values can be used for other tools as well; for example, they could be used in assertion validations:
For details on how data source values can be applied in functional testing, see Performing Functional Tests Using Data Sources.
You can achieve this with data groups. See Configuring a Data Group Data Source that Lets You Switch Between Multiple Data Sources for details.
SOAtest can perform functional testing using values from any of the following types of data sources:
Manually creating a data source for parameterizing large, complex XML messages can be time-consuming and tedious.
For a fast way to accomplish this, have SOAtest automatically generate a CSV data source template based on the structure of the request or response message that you want to parameterize. Columns in the generated data source are automatically mapped to the appropriate elements in the request or response message. The only thing you need to do is add values to the generated data source template.
For details, see Generating a Data Source Template for Populating Message Elements.
SOAtest lets you create and use two types of combined data sources:
A Data Group is similar to an Aggregate Data Source in the sense that they are both made up of other data sources. However, a Data Group allows access to only the common columns shared across all data sources; an Aggregate Data Source aggregates all of the columns from the various data sources. Moreover, an Aggregate Data Source makes all data values available at a single time. A Data Group allows you to determine which set of values is used at any given time.
Video Tutorial: Using Data Sources to Parameterize Tests