[SpecFlow+ LivingDoc] Embedding screenshots/files attached to Test Case to report with ADO REST API
Question about embedding images/files in SpecFlow LivingDocs - I've watched webinar "Enhance your Living Documentation with Text, Images and Files" and Andreas mentioned that Azure DevOps currently lacks features (suggesting usage of Azure Blob) which would allow adding URL (which would point to Azure artifact) to test-case attached image under LivingDocs step.
Wouldn't be possible from your side to develop something like this:
(applicable to runners which publish attachments to given Test Case)
- specFlowOutputHelper.AddAttachment should have 2nd method with 2 arguments - path to file and file name; file name should be kept and put into LivingDocs' JSON file;
- when LivingDocs generates report, it could use Azure DevOps Services REST API to obtain attachment URL (https://docs.microsoft.com/en-us/rest/api/azure/devops/test/runs/query?view=azure-devops-rest-6.0); then put attachment URL to LivingDocs report instead of path
Above steps could be optional, as the more files are attached, the more time consuming embedding process would be.
Thanks in advance for considering this request!
Please sign in to leave a comment.