You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Screenshots should be added in the XML and the HTML reports.
For that, we need to extend the current XmlReportingObserver in order to add custom value in the current action (because the ScreenshotInfo class is in the Tranquire.Selenium project).
We can make XmlReportObserver implement the interface IObservable<ActionAttachment> in order to add the ability to add attachment to the each action or question.
Then we can create an adapter to transform the result of IObserver<ScreenshotInfo> into ActionAttachment.
Implement IObservable<ActionAttachment> in XmlDocumentObserver in order to add attachments. in the XML document. Attachments should be a single element attachments containing 0 or many attachment elements. It should have the properties:
filepath
description
Create ScreenshotInfoToActionAttachmentObserver
Render screenshots in the HTML report
Create CompositeObserver<T>
The text was updated successfully, but these errors were encountered:
Screenshots should be added in the XML and the HTML reports.
For that, we need to extend the current
XmlReportingObserver
in order to add custom value in the current action (because theScreenshotInfo
class is in the Tranquire.Selenium project).We can make
XmlReportObserver
implement the interfaceIObservable<ActionAttachment>
in order to add the ability to add attachment to the each action or question.Then we can create an adapter to transform the result of
IObserver<ScreenshotInfo>
intoActionAttachment
.The composition will look like this:
Steps:
IObservable<ActionAttachment>
inXmlDocumentObserver
in order to add attachments. in the XML document. Attachments should be a single elementattachments
containing 0 or manyattachment
elements. It should have the properties:filepath
description
ScreenshotInfoToActionAttachmentObserver
CompositeObserver<T>
The text was updated successfully, but these errors were encountered: