-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
652 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
*** Settings *** | ||
Documentation Keywords for working with screenshots | ||
Library OperatingSystem | ||
Library JupyterLibrary | ||
|
||
|
||
*** Variables *** | ||
${SCREENSHOT_TRASH} ${OUTPUT_DIR}${/}__trash__ | ||
${OLD_SCREENSHOTS} ${OUTPUT_DIR}${/}screenshots | ||
|
||
|
||
*** Keywords *** | ||
Set Attempt Screenshot Directory | ||
[Documentation] Set a screenshot directory that includes the attempt | ||
[Arguments] ${path} | ||
Set Screenshot Directory | ||
... ${OUTPUT_DIR}${/}screenshots${/}${OS.lower()[:2]}_${ATTEMPT}${/}${path} | ||
|
||
Send Error Screenshots To Trash | ||
[Documentation] Throw screenshots in the trash for a while. | ||
${old_screens} = Set Screenshot Directory ${SCREENSHOT_TRASH} | ||
Set Global Variable ${OLD_SCREENSHOTS} ${old_screens} | ||
|
||
Resume Screenshots | ||
[Documentation] Restore Screenshots | ||
Set Screenshot Directory ${OLD_SCREENSHOTS} | ||
|
||
Empty Screenshot Trash | ||
[Documentation] Clean out trash. | ||
Run Keyword And Ignore Error | ||
... Remove Directory ${SCREENSHOT_TRASH} ${TRUE} | ||
|
||
Capture Page Screenshot And Tag With Error | ||
[Documentation] Capture a screenshot if not going to the trash | ||
${path} = Capture Page Screenshot | ||
IF "__trash__" not in "${path}" Set Tags screenshot:unexpected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.