Thank you for reaching out to Microsoft Q&A.
The behavior you are seeing is expected when Test Suites are imported from one Azure DevOps project into another. When you use the Import Test Suites feature, Azure DevOps imports the test cases as references to the original test case work items rather than creating independent copies. As a result, both Project 1 and Project 2 point to the same underlying test cases. Any modification made to a test case in Project 2 is reflected in Project 1 because the test case is shared between both projects. Azure DevOps currently does not provide a direct "Undo Import" or "Unlink Imported Test Suite" option after the import has been completed.
Refer below points to resolve this issue or as a workaround:
1. Create Independent Copies of the Test Cases
Instead of using the imported references, create cloned or copied test cases in Project 2.
Steps:
- Open the imported Test Suite in Project 2.
- Select the required test cases.
- Choose More Options (...) → Copy Test Case or Clone Test Case.
- Select Project 2 as the destination project, test plan, and test suite.
- This creates new test cases with new IDs that are completely independent from Project 1.
2. Remove the Imported Test Case References from Project 2
After the cloned copies have been created successfully:
- Remove the imported test cases or the imported test suite from Project 2.
- This action removes only the references in Project 2.
- The original test cases and test suites in Project 1 remain unaffected.
3. Verify the Test Case IDs Before Removing Anything
Before deleting or removing any test cases:
- Open the test case in Project 2.
- Check the Test Case ID and linked items.
- If the ID is the same as the test case in Project 1, it is still a shared reference.
- If the cloned test case has a different ID, it is an independent copy, and changes will no longer affect Project 1.
4. Use Copy/Clone Instead of Import for Future Migrations
For future scenarios where you need separate test cases across projects:
- Use Copy Test Case or Clone Test Case.
- Avoid Import Test Suite when the intention is to maintain independent test cases.
- Microsoft documentation states that imported test suites add test cases as references and not as cloned copies