Upload test data from Tosca Server

We offer different ways to manage test data: with Tosca Server Test Data Service (opens in new tab) or Tosca Cloud test data management.

This topic explains how to upload the data you store in a Test Data Service repository to Tosca Cloud, so you can use it there.

Understand upload basics and options

An upload creates a copy of the data in Tosca Cloud. There's no synchronization between Test Data Service and Tosca Cloud. For example, if you upload test data, then change this data in Test Data Service, these changes only applies to the Test Data Service version.

You can upload whole repositories or all types (open in new tab) of a specific repository. No matter which option you choose, an upload is always a complete upload of all types within a Test Data Service repository. You can't limit the upload to certain types or data rows.

There's no synchronization between Test Data Service and Tosca Cloud, and reuploads have limitations. In other words, the system isn't designed to keep the two test data repositories in sync. It can quickly become high-effort and error-prone to maintain both in parallel. We recommend that you only upload test data when you're ready to switch to Tosca Cloud.

Upload whole repositories

In this case, each repository becomes a separate asset library in Tosca Cloud, and its types become data sets in that library.

You can consume the test data of this library in other workspaces, but you can't edit, delete, or add to it from other workspaces.

You can upload up to 25 repositories at a time.

Upload all types of a specific repository

In this case, Tosca Cloud uploads the types to a workspace of your choice. Each type becomes a data set in the destination workspace.

This workspace can be one of the following: 

  • An existing asset library. In this case, you can consume the test data in other workspaces.

  • A regular workspace. In this case, only test cases in this workspace can use the data.

You can upload a maximum of 100 types from one repository, with a total size of up to 2GB.

Upload test data

Let's upload some test data.

Before you start

To upload test data, you need to have the following things:

Perform the upload

To upload test data, follow these steps:

  1. On the Tosca Server landing page (opens in new tab), select Test Data Management.

  2. Trigger the upload. The exact steps depend on your use case: 

Understand upload behavior and implications for reuploads

You can upload test data in two ways:

Upload whole repositories

When you upload whole test data repositories, each repository becomes a separate asset library, and its types become data sets in that library.

During the upload, Tosca on-prem checks the following: 

  • If a workspace with the same name as the test data repository already exists, Tosca on-prem skips this repository.

  • If a type within a repository has an issue, Tosca on-prem skips this type, but uploads the others.

This means you can't reupload a whole repository, because Tosca on-prem skips the upload once it detects the workspace with that name.

If you add new types to your repository after the initial upload, use the "Upload all types of a specific repository" functionality to get them into Tosca Cloud. However, you can't use this to remove data sets or update data sets.

Upload all types of a specific repository

When you upload all types of a specific repository, each type becomes a data set in a Tosca Cloud workspace of your choice.

During the upload, Tosca on-prem checks whether a data set with the same name already exists in the destination workspace. If it does, Tosca on-prem skips the upload of this type.

You can reupload to the same workspace, but with limitations:

  • If you add new types to your repository and reupload to the same workspace, this adds new data sets for the new types, provided that their names don't already exist.

  • If you delete types from your repository and reupload to the same workspace, this won't update anything. Tosca Cloud doesn't store this type of information and, as a result, doesn't remove the corresponding data sets. If you want to upload a revised version of your repository, use a different Tosca Cloud workspace.

  • If you change data within existing types and reupload to the same workspace, this won’t update anything. Tosca Cloud skips all types with matching names. If you want to upload a revised version of your repository, use a different Tosca Cloud workspace.

What's next

Once you have your test data in Tosca Cloud, you can work with it. For example: