Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space CTPMaster and version DEV

...

...

Configuring a Repository Data Source

Parasoft’s Data Repository is designed to help teams define, extend, and review large and/or hierarchical data sets for use in Parasoft messaging tools.

...

A repository data source is a "wrapper" for the repository data source that allows you to consume it in Parasoft messaging tools—in the same manner as you would consume data from an Excel data sheet or CSV file.

To configure a repository data source:

  1. Use the Rows controls to indicate the range of rows you want to use. If you only want to use selected rows, click the Range button, then enter the desired range (assuming a one-based index) by typing values into the From and To fields. For example, to use only the first 10 rows, enter 1 in the From field and 10 in the To field. To use only the fifth row, enter 5 in the From field and 5 in the To field.

  2. Specify the repository to which this data source will connect.
    1. For Host, specify which Data Repository server you want to connect to. You can select one of the servers connected through TDM—or you can specify a new server. If the named server does not yet exist, it will be created.
    2. For Port, specify the port for that Data Repository server.
    3. For Repository name, select or enter the name of the repository you want to use. You can select one of the repositories connected through TDM—or you can specify a new repository. If the named repository does not yet exist, it will be created. 
  3. Enter the username and password for connecting to this Data Repository server .
  4. Specify the data set to which this data source will connect. It’s okay to specify a data set that does not yet exist. However, that data set will need to exist (and contain data) by the time you start applying tools to use this data source. 

     

...

  1. Use the Rows controls to indicate the range of rows you want to use. If you only want to use selected rows, click the Range button, then enter the desired range (assuming a one-based index) by typing values into the From and To fields. For example, to use only the first 10 rows, enter 1 in the From field and 10 in the To field. To use only the fifth row, enter 5 in the From field and 5 in the To field.
  2. Specify the database to which this data source will connect.
  3. For Database type, select the type of database you want to connect to. The driver for the specified database type must be available on your CLASSPATH.
     

     

    Info
    titleUsing a different type of database

    If the database you want to use is not listed under Database type, select Custom. You can then specify a driver class in the Driver class field. Type the path to the appropriate JDBC driver class, including the package name.

  4. Specify the settings for that particular type of driver. Settings will vary from driver to driver.
  5. In the SQL Query area, type or copy the SQL query that expresses which data you want to use. A preview of the resulting data will be shown in the Columns area.
  6. (Optional) Enable Close connection if you want to close the connection to this database. It is recommended when you plan to use the data source only once, and it doesn't need to wait for another command. It is not recommended when you plan to have multiple data sources all connecting to the same database. In that case, all of the data sources can share a connection—and do not need to waste resources on a new connection each time.

     

...

You do not need to select a data source here in order to use values stored in a Data Bank tool.

Anchor
useparam
useparam
Specifying Parameterized Values

You can use the ${value} notation to reference data bank and data source values (as well as variables) that are defined for the test suite or responder suite.

...