Use uploaded test data assets

You can upload Tosca on-prem test assets to Tosca Cloud. This includes assets that use Tosca Server Test Data Service (opens in new tab).

In this topic, you'll learn the following: 

  • How Tosca Cloud handles uploaded test data modules.

  • How test data modules in Tosca Cloud differ from their Tosca on-prem counterparts.

  • What you need to do after the upload.

Upload behavior

Tosca Cloud automatically merges uploaded Tosca on-prem test data modules with their Tosca Cloud counterparts. As a result, you won't see separate Tosca on-prem and Tosca Cloud versions of the same module.

During the merge, Tosca Cloud discards module attributes that only exist in Tosca on-prem.

For uploaded test cases, Tosca Cloud applies the following changes:

  • Test cases and test steps keep their Tosca on-prem names.

  • Module attributes that only exist in Tosca Cloud are added to the test cases.

  • Module attributes that only exist in Tosca on-prem are removed from the test cases.

  • Module attributes that exist in both stay in the test cases, but under Tosca Cloud names.

Depending on the module, you may need to update your test cases after the upload. For details, check out Module differences.

Additional knowledge resources

New to uploading? You can find additional, general information here:

Module names

Tosca Cloud has the same test data modules as Tosca on-prem, but with slightly different names.

The following naming updates apply to all test data modules in Tosca Cloud:

  • TestData → Test data. For example, Test data - Update item instead of TestData - Update item.

  • & → and. For example, Test data - Find and provide item instead of TestData - Find & provide item.

The following modules also have additional name changes:

Tosca on-prem name

Tosca Cloud name

TestData - Move item to type

Test data - Move row

TestData - Update type

Test data - Rename data set

TestData - Import items

Test data - Import data set

TestData - Expert module

Test data - Expert

Module differences

Most test data modules work the same way in Tosca Cloud. However, some modules have differences in functionality, module attributes, or both.

The following table explains these differences and any actions you need to take after you upload to Tosca Cloud:

Module

Functional differences

Attribute differences

Actions after upload

Test data - Update item

Additional functionality in Tosca Cloud:

  • Prevent Tosca Cloud from marking a row as used.

  • Different module attribute names.

  • Additional module attribute to reuse data.

By default, Tosca Cloud marks test data as used after a test run, so you can run all your tests on fresh data.

If you want to reuse the data, you need to adapt the test cases that use this module: Set Reuse data to True.

Test data - Find and provide item

No difference.

Different module attribute names.

None.

Test data - Export items

No difference.

No difference.

None.

Test data - Delete item

No difference.

Different module attribute names.

None.

Test data - Create and provide new item

No difference.

Different module attribute names.

None.

Test data - Move row

No difference.

Different module attribute names.

None.

Test data - Rename data set

No difference.

Different module attribute names.

None.

Test data - Import data set

Additional functionality in Tosca Cloud:

  • First upload of a file: Tosca Cloud creates a new data set from it.

  • Subsequent uploads: Decide whether you want to create new, overwrite, or append.

  • Different module attribute names.

  • Additional module attribute to define reupload behavior.

Test cases that use this module have additional re-upload options in Tosca Cloud. By default, Tosca Cloud adds the new data to the existing data when you upload the same file again. If you want a different behavior, set a different value for Duplicate handling in your test case.

Test data - Expert

No difference.

Different module attribute names.

None.

What's next

If you also need to upload other Test Data Service resources, check out these topics: