Test Data Service

Tricentis Tosca Test Data Service is a web-based application that enables you to manage your test data in distributed environments.

Installation

The installation of Tosca Test Data Service is part of the Tricentis Tosca Server installation.

If you perform an unattended installation, make sure to install Tosca Administration Console for authentication in Test Data Service.

For information on supported browser versions and hardware requirements, see the system requirements.

Tosca Commander and Tosca Server must be of the same version to allow communication.

Change settings in the Internet Information Services (IIS) Manager

The Recycling settings in the IIS Manager contain relevant settings for Tricentis Tosca Test Data Service. You can find them under Application Pools->Advanced Settings.

Recycling - Regular Time Interval

The automatic recycling in the Internet Information Services (IIS) Manager is disabled for Tricentis Tosca Test Data Service to avoid deletion of all saved data, if the service is configured to use the in-memory database.

The setting Disable Recycling for Configuration Changes is not changed during the installation of Tricentis Tosca Test Data Service and the default value is False. If you change the web.config file, you will lose all data in your in-memory databases.

Turn on Windows authentication for the Test Data Service

If you want to enable Windows authentication on IIS for Tricentis Tosca Test Data Service, follow the steps below: 

  1. Go to Control Panel->Programs and Features->Turn Windows features on or off.

  2. Navigate to Internet Information Services->World Wide Web Services->Security. Check the options Windows Authentication and URL Authorization.

  3. Restart your computer.

  4. Open Internet Information Services (IIS) Manager and navigate to the TestDataService entry.

  5. In the Authentication section, disable Anonymous Authentication and enable Windows Authentication.

  6. You can define who is authorized to access the service in the Authorization Rules section. Define rules for Users, Usergroups and Roles. By default, Allow All Users is active, but you can override this by adding Deny or Allow rules.

Integrate authentication token for the Test Data Service

You can reuse the authentication token provided by the Tricentis User Administration to automate authentication for your Test Data Service TestCases. To do so, follow the steps below:

  1. In the Tricentis Service Configuration, make sure to select the Enable Security check box on the Test Data Service tab.

  2. In the Tricentis User Administration, navigate to Tosca Server->User Administration->My Account.

  3. Click Add new to create a token, and copy the value of the token to the clipboard.

  4. In Tosca Commander, create a test configuration parameter (TCP) called AuthenticationAccessKey.

  5. Paste the value of the authentication token to the Value field of the TCP.

  6. In Tosca Commander, enter the IP address of your Tosca Server under Settings->Tricentis Services->ServerEndpointAddress.

    Alternatively, you can create a TCP called ServiceDiscovery, and enter the IP address of the Tosca Server in its Value field.

All your Test Data Service TestCases that use this TCP are able to authenticate without further user interaction.

Access Tricentis Tosca Test Data Service API documentation

Use the following endpoint to access the Tricentis Tosca Test Data Service API documentation: http://<ip>:<port>/testdataservice/swagger/index.html.

By default, the documentation for version v2 appears. You can switch to previous versions by clicking the Select a spec drop-down menu in the top-right corner.

Replace <ip> with the IP address of the Tricentis Tosca Server and <port> with the port you entered during the installation of Tricentis Tosca Test Data Service.