You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result
Parsing JUnit report.
Processed 1 test cases in section apps/applicants.teardown.ts.
Processed 2 test cases in section config/login.setup.ts.
Processed 1 test cases in section apps/applicants/data-transfer/single-applicant-export-and-import.spec.ts.
Checking project. Done.
Found 4 test cases without case ID in the report file.
Updating test run. Test run: https://host.testrail.io/index.php?/runs/view/777
Adding results: 0/0, Done.
No attachments found to upload.
Issue
The problem is that we create new test suites for each release, which duplicates the existing cases into new IDs.
This means I would need to maintain multiple IDs in each test name, which isn’t very efficient.
Question
Is there a way to link JUnit tests with TestRail test cases in a more persistent way — for example, by matching them via the custom automation_id field instead of having to update case IDs for each release?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to ask if it's possible to match automated tests (JUnit) with existing test cases in TestRail.
Setup
In TestRail, I created a custom field named automation_id (type: text).
Then I added the following to my JUnit XML report:
<property name="automation_id" value="C88396"/>I tried to import the results using this command:
trcli -n
--host 'https://host.testrail.io'
--project 'project'
--username 'name@company.com'
--key 'APIKEY'
parse_junit
--file '/home/users/Documents/repo/test/report/results.xml'
--suite-id 304
--run-id 777
--case-matcher property
Result
Parsing JUnit report.
Processed 1 test cases in section apps/applicants.teardown.ts.
Processed 2 test cases in section config/login.setup.ts.
Processed 1 test cases in section apps/applicants/data-transfer/single-applicant-export-and-import.spec.ts.
Checking project. Done.
Found 4 test cases without case ID in the report file.
Updating test run. Test run: https://host.testrail.io/index.php?/runs/view/777
Adding results: 0/0, Done.
No attachments found to upload.
Issue
The problem is that we create new test suites for each release, which duplicates the existing cases into new IDs.
This means I would need to maintain multiple IDs in each test name, which isn’t very efficient.
Question
Is there a way to link JUnit tests with TestRail test cases in a more persistent way — for example, by matching them via the custom automation_id field instead of having to update case IDs for each release?
Beta Was this translation helpful? Give feedback.
All reactions