-
Notifications
You must be signed in to change notification settings - Fork 1
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
not able to get/retrieve Custom fields status #52
Comments
Hi @cyrusG123. I wasn't able to implement a clean solution for the custom fields while I was developing this, and no longer have TestRail access to continue development. That said, all of the object data is stored in the
Hope that helps. If it doesn't, let me know and I can dig in more |
Thanks, Levi for your quick response. I tried but getting None for all, perhaps I'm not doing it right or don't know how to get the automaton customer fields key. test = client.project(30) Results: Many thanks in advance. |
Which object are you trying to get the custom fields for, test objects? If so, try something like this:
That should print out the Once you know the key names, you should be able to access them as outlined above: Let me know if that helps |
Thank You, tried that and it returns the key value , not name, we do have these option for automation_status:
I belive it returns the field key in this case Result: |
Awesome, we're close. Try this:
|
I do really appreciate it, I tried that before but it gives me the below, instead of actual value, I believe these are the keys. |
Alright, getting closer, try this:
|
the automation_status does return all other fields, not match the 'custom_automation_status' field, using the name to print the object like below, as I can see, passed, and defer status are not part of status of 'custom_automation_status' field. for test in client.tests(run): custom_status6 |
did not find a match, label and name are not matching the status from custom_automation_status drop down/options
Result:
|
I could not get the right text for those key, instead I used client.run() and I found out that the first option in custom_automation_status maps to 1, 2, 3 and it correspondings/maps to the text, so I've created a dictionary to map the key value to the text and retrieve them as below:
Results:
That being said, how do I get the status from the existing Report (View Report) or Test suite if any without adding a new run? |
We're able to get most of the fields from your code except the custom fields, is there any way to retrieve/get all custom fields status such as "Automation Status", "Automation Assignee", "QA-Assignee" from this api-warper?
Many thanks in advance.
The text was updated successfully, but these errors were encountered: