Skip to main content
Version: 2.6.0

Data Variation

Definition

Data Variation is used to execute the same test multiple times, but each time with different values for Attributes and Asserts.

Data Variation can be defined on the Test Suite or Test Case level.

To change the value of an Attribute or Assert per Test Run, it needs to be explicitly included in the Data Variation. It is possible to combine Test Suite datavariation and Test Case variation in the same Test Suite.

note

On the Test Case level, a choice has to be made between the Test Suite / Test Case datavariation when varying on an Attribute or Assert. Once the choice is made, it can only be undone by excluding the varied Attributes and Asserts.

An included Attribute or Assert is referred to in the MTA Documentation as a Data Variation Items.

For each data variation of a Test Suite, a Test Suite Run will be created. For each data variation of a Test Case, a Test Case Run will be created. Therefore, if there is a Test Case with Test Case datavariation and another Test Case with Test Suite datavariation in the same Test Suite, this will have a multiplier-effect.

It is not possible to execute one single column in the data variation.

Business rules

None.

Note that it is possible to have a data variation that does not consist of data variation items. This happens when all data variation items are deleted. The result is that the Test Suite or Test Case will simply be ran multiple times but with the exact same data.

To resolve this, use below guide to remove all Data Variation.

Actions on Data Variation

View Test Suite Data Variation

  • Open the Test Configuration and click " Configure" to open the Test Suite.
  • Navigate to " Data variation" in the left menu.

Migrate Test Suite Data Variation to Test Case Data Variation

  • Click on on the top right of the Data Variaton page.
  • Click on " Move to test case data variation".
  • Select the Test Case that you want to migrate from Test Suite Data Variation to Test Case Data Variation.

Remove all Test Suite Data Variation

To completely remove all Data Variation Items and also remove all Data Variations:

  • Click on on the top right of the Data Variaton page.
  • Click on " Delete test suite data variation".

View Test Case Data Variation

  • Open the Test Configuration and click " Configure" to open the Test Suite.
  • Click on on the Test Case.
  • Click on " View data variation".

Migrate Test Case Data Variation to Test Suite Data Variation

  • Click on on the top right of the Data Variaton popup.
  • Click on " Move to test suite data variation".
  • Confirm.

Remove all Test Case Data Variation

To completely remove all Data Variation Items and also remove all Data Variations:

  • Click on on the top right of the Data Variaton popup.
  • Click on " Delete test case data variation".

The page will close.

Add items to Data Variation

Create a data variation item.

Add a Data Variation run

  • Open the Test Suite data variation page or Test Case data variation popup.
  • Click on the column of the Data Variation run you want to create a copy from, for instance the column labeled # 1.
  • Click "Copy".

Delete a Data Variation run

  • Open the Test Suite data variation page or Test Case data variation popup.
  • Click on the column of the Data Variation run you want to delete, for instance the column labeled # 2.
  • Click .

Note that you cannot delete the first column labeled # 1.

Edit Data Variation values

  • Open the Test Suite data variation page or Test Case data variation popup.
  • Click on the column of the Data Variation you want to edit, for instance the column labeled # 2.
  • Click " Edit values".

Edit Data Variation description

  • Open the Test Suite data variation page or Test Case data variation popup.
  • Click on the column of the Data Variation you want to describe, for instance the column labeled # 2.
  • Click " Edit description".

Feedback?

Missing anything? Let us know!

Last updated: 19 april 2023