Open Testinator-X opened 1 year ago
If others are interested on this feature, please leave your feedback here and tell a bit more about your specific use case.
I have described my use case in detail here: https://github.com/gurock/trcli/issues/136#issuecomment-1551552385
In general, the point is that our automated regression suite is gradually being extended with new TestCases and we would like to add new TestCases to a Run in an automated way. Currently we have to do the following relatively complex workaround:
@Testinator-X ,
@bitcoder
From our point of view, the smartest thing to do would be to fix the following bug in the TestRail application itself:
"TestCases created via the API are not automatically added to a TestRun that uses dynamic filtering."
If this were possible, newly programmed tests would be created in TestRail using the CLI tool and automatically added to the run at the same time. The cases would then be in the run and the CLI tool would no longer complain when adding results that the new tests could not be found in the run. In this error situation, no rollback would be performed and the newly created TestCases would remain in TestRail.
If this worked, we could save ourselves the whole workaround with the temporary run and the manual synchronization of the TestCases. The only thing missing would be the ability to create runs with dynamic filtering via the CLI tool (or the API itself)
What would you like the TestRail CLI to be able to do?
Add an option to only create TestCases, but skip adding them to Runs and skip adding Results.
Why is this feature necessary on the TestRail CLI?
You cannot automatically update an existing run with newly created TestCases. On the one hand, this is currently not supported by the CLI tool, on the other hand, test cases created via the API are not added to runs even though they match the dynamic filter criteria of the run. (If you think the dynamic filtering vs API problem should be fixed, vote for my feature request by creating a support request here and reference my Request #265113) . When the CLI tool is currently running, the cases are created, cannot be added to the existing run, the CLI tool throws an error and deletes all cases that were created in the first step. (A workaround would be to create a new run each time, but this would unnecessarily spam our instance with runs.) We would like to be able to just create new TestCases via the CLI in TestRail without also having to create a new Run each time, into which the results then have to be fully reported. If needed, we could then manually update our existing run after creating the TestCases via the CLI.
More details
See also:
https://github.com/gurock/trcli/issues/99 https://github.com/gurock/trcli/issues/148 https://github.com/gurock/trcli/issues/136
Interested in implementing it yourself?
No