allankp / pytest-testrail

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

Support for image attaching needed #137

Open EugeneShutQa opened 4 years ago

EugeneShutQa commented 4 years ago

Could you please add ability to add screenshot(s) to testruns please?

allankp commented 4 years ago

@EugeneShutQa Sounds like an interesting idea, can you please expand on how you think this should work. Possibly what the implementation would look like.

EugeneShutQa commented 4 years ago

@EugeneShutQa Sounds like an interesting idea, can you please expand on how you think this should work. Possibly what the implementation would look like.

I think this should be called like a function in test ( something like: pytestrail.case.attach_screenshot(path_to_screenshot) ). Also you could add some another features with cases (like custom text result)

adrientv commented 3 years ago

Hi there, Maybe it would be interesting to add some hooks to tune the posted results. I'm thinking of pytest_testrail_comment to tune the comment, and maybe pytest_testrail_screenshots to get the wanted screenshots ? I'm not sure about that, but a third hook may help to fill custom fields as well.

wswiatkowski commented 2 years ago

Hi there,

It would be great if there would be a possibility to automatically capture screenshots of failing testcases for selenium. Any progress on that issue?