-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"AttributeError: 'TestRailCase' object has no attribute 'result_fields'" even when not using the optional parameter #124
Comments
Hello @EOssesFrazoni Thank you for bringing this to our attention. The bug fix has just been released in |
Hi @d-rede. It is fixed now, it is creating new test cases but I see two issues:
|
Hello again,
The
When using the |
I didn't specify it but In my attempts I tried with and without the case-matcher parameter. command: Test Run 11197 contains the a test case with the same name from my result.xml This is the result:
|
If you use the automation ID, you should see how matching happens in this article: TestRail CLI - Code first documentation. It matches a custom field named |
TestRail CLI Version
1.4.0
CLI Environment
Windows 10 E 21H2 x64, Python 3.9.5
TestRail Version
TestRail v7.8.0 Default (1136)
TestRail Instance Type
Enterprise Cloud
Current behavior
TRCLI fails to generate or update TestCases with the error:
"AttributeError: 'TestRailCase' object has no attribute 'result_fields'" even when not using the optional parameter
This worked on previous version.
Command:
trcli -h "https://company.testrail.net/" -u "user@company.com" -p "api_key" --project "Project Name" --project-id 1 -y parse_junit --title "Pytest POC Suite" --run-description "Pytest POC Suite" -f "junit-report.xml" --case-fields custom_automation_type:3 --case-matcher "name"
CLI Output:
Desired behavior
Test Cases are updated or created in TestRail
More Details
No response
The text was updated successfully, but these errors were encountered: