When you attempt to export a test solution to TestRail, the export process stops and displays the error message: "Sequence contains more than one matching element." This error prevents the synchronization of test results or test cases between the two platforms.
Cause
The error occurs when two or more test suites within your solution share the same internal ID. Ranorex Studio requires a unique parent test suite ID to map suites correctly to TestRail. If the solution contains duplicate IDs, the export fails.
Workaround
To fix the duplicate ID issue, do the following:
- Ensure that all test suites in the solution have unique IDs.
- If duplicates exist, identify the test suite causing the error.
- Create a new, empty test suite in Ranorex Studio. This automatically generates a fresh, unique internal ID.
- Move all test cases from the old suite into the new one.
- Delete the old, duplicate Test suite.
- Save your changes and retry the TestRail export.