When you are importing a file that was previously exported from Qase, you'll see this checkbox option - replace matching test cases.
What does it do?
If this option is selected while importing, Qase goes through the the file (CSV/XML/JSON) and matches the test case ids in the file with the actual tests in your project repository.
If there's a matching test case, it updates that particular test case with the data from the file you're importing.
If a test case in your file doesn't have a matching counterpart in the repository, then such test case will be created anew.
matching is done with test cases' id
Things to note:
Attachments may be lost!
In summary, if you modify any test steps in your import file, be aware that importing with Replace matching test cases enabled will overwrite all existing steps and remove any attachments linked to them.
Scenario:
Suppose a test case in Qase already has attachments linked to specific steps. If the version of that same test case in your import file has its steps changed (for example, reordered, edited, or replaced), Qase will overwrite the existing steps with those from the import file.
As a result, all attachments associated with the test steps will be removed, even if only one step was modified. This happens because Qase replaces the entire set of steps rather than updating them individually.


