3.12.9.7 Changing the column used in a central test data set for multiple Test Cases

If you have used a central test data set in multiple Test Cases and later realize that you have two columns in the central test data set that contain the same information, then you can change all Test Cases that use this central test data set to just use one column. Once you have done this, you can remove the unnecessary column from the central test data set.

\includegraphics[height=2cm]{danger} In order to perform this action, all Test Cases to be changed must not be in use by anyone else using the Project - you should ensure that this is the case before performing the action, otherwise the action cannot be carried out.

  1. Search for all places where the central test data set whose column usage you want to change is used. Use Show where used on the central test data set to see all places 3.29.4.
  2. In the Search Result View , you will see all places where the selected central test data set is reused in this Project , including any original specifications of Test Cases that use it, and any reused Test Cases that use it (as Test Cases or as Event Handlers . We recommend selecting all entries to perform the action, otherwise you may have incomplete test data after only changing a subset.
  3. You will only be able to perform the changes if:
  4. If the Project is protected, or Test Cases are missing, the context-menu entry will be disabled. If any of the other prerequisites are not fulfilled, you will see an information dialog that lets you automatically deselect any invalid Test Cases .
  5. From the context menu, select:
    Change central test data set column usage

  6. In the dialog that appears, you can select a parameter to change on the left-hand side, and the column to change it to on the right-hand side. You can only change the usage of columns whose types are the same. If you have e.g. TEXT1 (string) and TEXT2 (string) in your central test data set and Test Cases , but you only require TEXT1, then select TEXT2 on the left-hand side and TEXT1 on the right hand side.
  7. Click "Finish" to perform the action.
  8. All selected Test Cases will be altered to use the newly chosen column in place of the previously used column.
  9. If the newly chosen column was already used in one or more of the selected Test Cases , then all places within the Test Case that referenced the old column are changed to reference the newly chosen column. Using the example from above, all places where TEXT2 was referenced in the selected Test Case will be changed to TEXT1. The changed name remains at the interface of the Test Case ; TEXT2 is not deleted from the Test Case , but it is no longer used. If the newly chosen column was not yet used in one or more of the selected Test Cases , the old parameter name of the Test Case is renamed to the newly chosen column.



Copyright BREDEX GmbH 2014. Made available under the Eclipse Public License v1.0.