Open piotroxp opened 11 months ago
Hello @piotroxp
As you may understand, I can not provide support or speak to any issue that relates to usage of a fork of this repository.
Nevertheless, what you are suggesting works perfectly fine with trcli v1.5. I tested your scenario using the report you provided and the specification-first approach using the --case-matcher name
option works perfectly.
The only difference to the fork (as far as I know), and note that this is by design, is that you must have valid case IDs in your report. We do not intend to change this because it simply does not make sense to have IDs in the report if they do not exist in TestRail.
Let me know if this helps.
Waiting for your feeback @piotroxp to decide on how to handle this issue
If no further feedback is received, I'll close this issue
What would you like the TestRail CLI to be able to do?
Utilize the fact our test cases have TestRail Case ID's in the name (testcase level). Allow trcli to create a run based solely on the test case ids from the automation report
Our requirement is to create a Test Run that will: 0) Process a JUnit file like this (report from automation run):
1) Go through ALL cases available in the used TR Project (when passing the "--project [proj_name]" option) 2) Upload the JUnit automation report of the above structure with creating a run that will contain valid cases referenced
Ideal scenario: 1) We have a Project 2) The project has suites 3) Case IDs not in the project are ignored 4) Case IDs in the project become part of the uploaded run 5) The TR run result contains the existing cases from the automation report
Inb4: our test structure is not reflected in the code and we cannot revamp thousands of test cases to use the "automation_id" field. The whole reason we need this feature is to bind the case id from testrail to an automation test case and get the suites in order.
Why is this feature necessary on the TestRail CLI?
More details
Currently, when using the following cmd:
only an empty Automation Test Run is created
I am also using a trcli fork that contains the following PR: https://github.com/gurock/trcli/issues/148
Example result from running the cmd:
When using the verbose mode of trcli, it shows the list of cases from the automation report, but then the automation ids from the particular run is ignored - as trcli grabs a list of IDs from a specific suite.
Using the cmd without --suite-id creates a new suite - instead, what we expect is a test run with the cases combined from many suites while passing a project when we have -n as argument.
Interested in implementing it yourself?
Yes