TABLE OF CONTENTS
1. Overview
Screenshots are essential for verifying steps, particularly when test cases fail. Attaching a screenshot to the report helps confirm the failure.
2. Capturing Screenshots
The method captures the displayed page exactly as it appears during execution. It includes only the content visible within the viewpoint.
3. Attachment in Reports
When a test case fails, attaching a screenshot to the generated report provides visual confirmation of the failure. This practice helps in the detection of visual defects and provides essential context for understanding the cause of the failure.
The following screenshot represents a sample test case failure report attachment:
algoQA generated scripts follow organized folder structure. captureScreenshot( ) method has to be added to the required folder as shown in the sample screenshot:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article