TestData - Create & provide new record

Tricentis Tosca Test Data Service enables you to create records and group them by types in your database. This allows you to quickly identify and retrieve the right test data.

In case security is enabled, the functionality described on this page may be restricted depending on the user groups you belong to. To set your access rights, contact your Administrator.

You can create a record via the Module TestData - Create & provide new record.

This Module is part of the Standard subset. You can find it under Standard modules->Test Data Management->Test Data Service.

Example

The following example shows how to add a new record to your database. To do so, follow the steps below: 

  1. Import the Standard.tsu subset to your workspace (see chapter "Import and export subsets").

  2. Navigate to the Configurations folder and expand the imported Configurations folder therein.

  3. Select the TestDataService configuration and define the following test configuration parameters:

    • TestDataEndpoint to specify the location from which you want to retrieve your records

    • TestDataRepository to define the repository to be queried

Define test configuration parameters for TestDataEndpoint and TestDataRepository.

Optionally, you can omit the test configuration parameter (TCP) called TestDataEndpoint. In this case, Tosca Commander automatically retrieves a TDS endpoint from the Service Discovery.

To configure it, go to the Tosca Commander settings and navigate to Tricentis Services->ServerEndpointAddress.

  1. Create a TestCase with the name Sample TestCase Using TDS. Assign the TestDataService configuration to the TestCase by using drag and drop (see chapter "Assign configurations").

  1. Drag and drop the Module TestData - Create & provide new record onto the Sample TestCase Using TDS TestCase (see chapter "Creating TestSteps from Modules"). Tricentis Tosca automatically creates a new TestStep with the XTestStepValues Existing or new TDS type*, Alias name (record) and Data structure.

  2. Add the record to your database by entering a Value for Existing or new TDS type.

The TDS type name is not allowed to contain the following characters: / ? # [ ] @ ! $ & ' ( ) * + , ; = \ :

  1. Define record data underneath the Data Structure XTestStepValue. Only insert the data you really need to find the right record later. When you run the TestCase, Tricentis Tosca creates a record with the type car and the defined XTestStepValues make, fuel, seats, performance, dateofmanufacture, price and mileage.

Create a new record in the Test Data Service database.