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

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

Open
iot40-dp opened this issue Apr 19, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@iot40-dp
Copy link

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.

@Wolfe1 Wolfe1 added enhancement New feature or request good first issue Good for newcomers labels Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants