-
Notifications
You must be signed in to change notification settings - Fork 124
New Testrail Version Has Broken This Plugin #151
Comments
That won't necessarily get all the tests, for example - if there are more than 250 tests in the target. The changes described here have now been implemented: These calls now need to be able to handle the paginated responses: |
Does anyone know if this stuff is being worked on already? |
So for the pagination stuff it would have to be written something like this correct? def get_tests(self, run_id):
|
I have no idea if this is still being maintained. This worked for me: `
` |
This is a blocker, and anyone looking at it? Cause we have virtual env in prod, and cannot create hot fix to run this. |
@chayanmazumder-cpi I've noticed there are lingering pull requests on this repo so I'm not sure if a PR for this would ever make it in as I cannot tell if the project is still being maintained. So if you need an immediate solution I'd try what John did. Hope this helps. |
Hi, I don't have a massive amount of spare time. But a PR would certainly be looked at. |
@allankp what test to run and how-to, before raising a PR? |
@allankp repo now obsoleted and unsupported? |
Describe the bug
When we try to send test results to testrail using this plugin it no longer runs any tests and throws an error (below). It seems Testrail's newest version has caused this issue based on our findings as they added to their response for getting tests.
To Reproduce
Steps to reproduce the behavior:
Just try to send results to testrail and you should see the error.
Fix we tried locally and worked
Below is the file and method we updated to make it work. The last part is what is needed to be added when returning response (['tests']).
Plugin.py
class PyTestRailPlugin(object):
def get_tests(self, run_id):
"""
:return: the list of tests containing in a testrun.
"""
response = self.client.send_get(
GET_TESTS_URL.format(run_id),
cert_check=self.cert_check
)
error = self.client.get_error(response)
if error:
print('[{}] Failed to get tests: "{}"'.format(TESTRAIL_PREFIX, error))
return None
return response['tests']
The text was updated successfully, but these errors were encountered: