gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
47 stars 42 forks source link

Field :type_id is not a valid case type. #126

Closed awirl-foreflight closed 1 year ago

awirl-foreflight commented 1 year ago

TestRail CLI Version

1.4.2

CLI Environment

No response

TestRail Version

7.5.6

TestRail Instance Type

NA

Current behavior

When I upload this file to the trcli, the result fails when trying to add these new test cases to my suite. I've been able to get other files to work but it doesn't work with this specific file for some reason. It's interesting because the type_id field is actually a integer which seems to fit the requirements for the cli tool but something is strange is happing at the /add_case API call.

cypress.txt

image

Desired behavior

The file gets uploaded to testrail

More Details

No response

d-rede commented 1 year ago

Hello @awirl-foreflight

Thanks for bringing this to our attention.

From the logs there is clearly something wrong on the API call because it's sending the type_id as 1,, which won't be considered an integer. Where and how are you passing the type_id?

awirl-foreflight commented 1 year ago

Hello @awirl-foreflight

Thanks for bringing this to our attention.

From the logs there is clearly something wrong on the API call because it's sending the type_id as 1,, which won't be considered an integer. Where and how are you passing the type_id?

yeah thats why i was getting confused i wasnt passing it anywhere at all - i separately from this issue used the jrm package to merge all of my tests and the cli is working perfectly now so i feel it might have just been user error

d-rede commented 1 year ago

Glad to know you've overcome it! I'm closing this issue, but feel free to reopen in case you run into trouble again!