Hello,
I want to import JUnit formatted results into Xray using the JUnit multipart API. Since my tests don't currently exist in Xray, I want Xray to automatically create tests with specified fields such as priority and owner etc...
My test suite comprises numerous testCase results, each potentially having different properties.
Is it feasible to include fields like priority and custom fields for each test case, enabling Xray to create test cases with these designated attributes?
I've attempted to use testInfo file when call endPoint /api/v2/import/execution/junit/multipart , but it seems that the same properties are applied to all newly created tests.
Thanks in advance.
here is is my junit file
To import JUnit results into Xray and automatically create test cases with specified fields like priority and custom fields, while your current approach using the testInfo file applies the same properties to all tests, here's a streamlined solution:
Splitting JUnit Reports: Consider splitting your JUnit report into multiple reports based on the properties you want to assign (e.g., priority). Each report can then be imported with its own testInfo file specifying the desired properties for that group of tests.
Custom Fields in JUnit: Your approach of including custom fields directly in the JUnit XML is a good initiative. However, the effectiveness of this depends on Xray's capability to map these custom fields during the import process.
Scripted Workaround: A more flexible solution involves writing a script that:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.