allankp / pytest-testrail

pytest plugin for integration with TestRail, for creating testruns and updating results
MIT License
95 stars 125 forks source link

Test Run 'status' update #15

Closed diannelli closed 7 years ago

diannelli commented 7 years ago

Hi @allankilpatrick,

I installed your insteresting plugin on Tierra_qa package but I would like to understand if the status of each test runs created by the plugin can be set. Currently 'Untested' string appears on each automated test runs:

image

Let me know if the plugin is able to do it (through the proper API).

Regards. Damiano

allankilpatrick commented 7 years ago

Hi,

Looking at the API this isn't possible to manually set a test run status. The status will be updated depending on the test cases added to the run I believe and the results.

http://docs.gurock.com/testrail-api2/reference-runs

diannelli commented 7 years ago

Which API's are currently used by your package to set each tests status? I noticed that only 'add_results_for_case' is used to update results.

It seems that 'add_results_for case' or the (next) 'add_result' funtion should perform an update of the test runs status in TestRail.

Do you think it can be added to the package?

diannelli commented 7 years ago

Hi @allankilpatrick, do you have any feedback about the previous question?

allankilpatrick commented 7 years ago

Hi,

The testrun status should be updated when any test inside the run changes. Are you saying this isn't happening ?

allankilpatrick commented 7 years ago

Closing now response for 2 months, please reopen if required.