Skip to content

Commit b7b4981

Browse files
author
Andreas Sekulski
committed
Include wait until keyword succeeds into file should exists
1 parent 6ef8f1f commit b7b4981

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

atests/Screenshot.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ Take Manual Screenshot By Keyword
5555
Run Keyword And Expect Error ${EXP_ERR_MSG} Click ${XPATH_NOT_EXISTS}
5656
File Should Not Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
5757
Take Screenshot
58-
File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
58+
Wait Until Keyword Succeeds 50x 100ms File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
5959
[Teardown] Reset Screenshot Environment To Default
6060
6161
Test Case 1234: Something to Test
6262
Set Screenshot Directory ${SCREENSHOT_FOLDER}
6363
${FILENAME} Get Expected Filename Test Case 1234 Something to Test
6464
File Should Not Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
6565
Take Screenshot
66-
File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
66+
Wait Until Keyword Succeeds 50x 100ms File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
6767
[Teardown] Reset Screenshot Environment To Default
6868
6969
No Screenshots Should Created For No Library Keywords
@@ -82,7 +82,7 @@ Take Screenshot Of Window
8282
${FILENAME} Get Expected Filename ${TEST_NAME}
8383
File Should Not Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
8484
Take Screenshot ${MAIN_WINDOW}
85-
File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
85+
Wait Until Keyword Succeeds 50x 100ms File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
8686
[Teardown] Reset Screenshot Environment To Default ${PID}
8787
8888
Take Screenshot Of Window As Png
@@ -93,7 +93,7 @@ Take Screenshot Of Window As Png
9393
${FILENAME} Get Expected Filename ${TEST_NAME} png
9494
File Should Not Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
9595
Take Screenshot ${MAIN_WINDOW}
96-
File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
96+
Wait Until Keyword Succeeds 50x 100ms File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
9797
[Teardown] Reset Screenshot Environment To Default ${PID}
9898
9999
Take Screenshot As Base64

atests/ScreenshotFileSuffix.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Take Screenshot Of Window As Png From Library Import
2525
${FILENAME} Get Expected Filename ${TEST_NAME} png
2626
File Should Not Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
2727
Take Screenshot ${MAIN_WINDOW}
28-
File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
28+
Wait Until Keyword Succeeds 50x 100ms File Should Exist ${OUTPUT DIR}/${SCREENSHOT_FOLDER}/${FILENAME}
2929
[Teardown] Run Keyword And Ignore Error Stop Application ${PID}
3030

3131

0 commit comments

Comments
 (0)