Closed manorfreeman closed 7 months ago
I believe I was able to resolve my issue after reading a bit of the trcli source code, it seems like the code expects "custom_automation_id" field to be defined, rather than "automation_id", as specified as in the docs (although, I could just be missing some details here). I also needed to specify the '-y' option, where I had assumed I could just not specify specify this option and get prompted interactively.
TestRail CLI Version
v1.6.2
CLI Environment
MacOS Monterey 12.7, Python 3.11.4
TestRail Version
TestRail v8.0.2 Default (3138)
TestRail Instance Type
Professional Cloud
Current behavior
I have a project that I would like to move from a specification-first approach to a code-first approach. I do not need to keep any of the old test cases, so I wanted to see if I can simply take the junit file I was originally including to use for the specification-first approach (and was working with Test Rail, since I had added all the case IDs for this other project into test rail), create a new "Single Repository" Project, and upload this junit file to the new project to see if it would generate the test-cases. However, when trying to upload the file, the trcli would seem to parse the file and create a test run, but not create any associated test cases. Note: I did create an automation_id text field on my project that applies to all projects for the code-first approach as well.
I used the following trcli command with a brand new single repository project, and would recieve the following output:
When navigating to the uploaded test-run in test-rail, we can see that the test run was created without any test cases and results, despite the TRCLI correctly noting that it parsed 180 test cases in its output.
I attached the example junit "test-output.xml" as well, in case it is helpful to see what the contents of the junit file are. I had to convert it to a text file to be compatible for upload with github: test-output.xml.txt
Desired behavior
Uploading the above test run to a single repository project will automatically:
More Details
I originally opened this as a support issue in Testrail, Request #297154, but was asked to open a Github issue instead.