User's Guide > About the User's Guide > Codebeamer QA: Test Management > Reference Test Cases and Test Step Reuse > Detecting and Automatically Converting Test Step Duplicates to Step Reuses
Detecting and Automatically Converting Test Step Duplicates to Step Reuses
Duplicated test steps are automatically found and converted to reused steps. This feature can be used when importing data from Microsoft Excel. You can also use REST API to find duplicate steps in a set of test cases and convert those duplicate steps to reused step. For more information on data import, see Importing Data from Excel to Codebeamer.
Converting Test Step Duplicates During Import
During import, the importer scans the test cases for duplicated test steps and automatically creates test step reuses between the duplicated steps. This feature can be turned off or configured on the importer screen.
Any test step reuse that existed before the import are kept unchanged.
For all test steps in the import data, the importer performs the following actions:
Checks whether the exact same step already present in the import data.
Reuses the same step if a reuse reference already exists. If there are multiple reused test steps, the algorithm picks the one that is reused the most times.
Picks the first test case within the imported items to be the original test step if there are no existing reused steps for the duplicate.
Scans and finds the duplicated steps in test case libraries and reuses steps from these libraries. In this case, it only creates a reuse to the test cases that are marked as Reusable. The test case library is a special tracker that contains test cases for test step reuse. For more information, see Importing Data from Excel to Codebeamer.
Converting Test Step Duplicates with REST API
With REST API, users can scan a set of test cases and find duplicated test steps. As a best practice, do this after adding multiple test cases to Codebeamer. The scan of the test cases can find the duplicates with one REST call.
For more information about the parameters of this REST call, check the Swagger editor for this functionality by opening the following URL in the Codebeamer instance: .
Was this helpful?