Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

[🚀 Feature]: Embedded screenshots in the output file of robot framework. #53

@iot40-dp

Description

@iot40-dp

Feature and motivation

The selenium library already provides the option to embed screenshots in the output file. It would be very usefull to have such option also available in application library.

The motivation behind this is that it is possible to import the output file in test management tools (e.g. XRay for Jira supports the output format of Robot Framework). XRay creates a protocol in Jira containing each step (keyword) in the automated test execution result with the execution state (PASS or FAIL). If the screenshots taken by the screenshot keyword are embedded in the output file (like for Selenium), the screenshot is also embedded in Jira. In the case of e.g. MobileLibrary, the screen shot is missing. You have to attach the screenshots manually.

Usage example

For example, a parameter during import of the library could be used to specify if screenshots should be embedded.

Library ApplicationLibrary.MobileLibrary screenshot_root_directory=EMBED #that way it is used in Selenium Library

The created output.xml when test execution finishes has embedded screenshots and can be imported into XRay for Jira or any other tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions