pytest-testrail icon indicating copy to clipboard operation
pytest-testrail copied to clipboard

Support for image attaching needed

Open EugeneShutQa opened this issue 4 years ago • 4 comments

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

EugeneShutQa avatar Sep 16 '20 20:09 EugeneShutQa

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

allankp avatar Sep 17 '20 15:09 allankp

@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)

EugeneShutQa avatar Sep 17 '20 19:09 EugeneShutQa

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.

adrientv avatar Apr 12 '21 08:04 adrientv

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?

wswiatkowski avatar Oct 07 '21 11:10 wswiatkowski