Skip to content

Commit

Permalink
Fixes for test cases that failed from adding Donation Reminder
Browse files Browse the repository at this point in the history
Issue #252
  • Loading branch information
damies13 committed Nov 1, 2024
1 parent 8e68880 commit 3105371
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 17 additions & 6 deletions Tests/Regression/Manager/GUI_Basic.robot
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*** Settings ***
Test Tags Basic GUI

Resource GUI_Common.robot

Library OperatingSystem
Library Process
Library String
Expand All @@ -20,15 +22,18 @@ Open GUI
[Tags] macos-latest
# Press Escape and move mouse because on linux the screen save had kicked in
Press Combination Key.esc
Move To 10 10
Move To 20 20
Wiggle Mouse

Set Suite Variable ${platform} macos
Set Confidence 0.9
# ${process}= Start Process python3 ${pyfile} alias=Manager stdout=${OUTPUT DIR}${/}stdout.txt stderr=${OUTPUT DIR}${/}stderr.txt
${process}= Start Process ${cmd_manager} alias=Manager stdout=${OUTPUT DIR}${/}Open_GUI_stdout.txt stderr=${OUTPUT DIR}${/}Open_GUI_stderr.txt
Set Test Variable $process ${process}
# Sleep 10 # not needed now we wait for the agents tab to be visible
Set Screenshot Folder ${OUTPUT DIR}

Handle Donation Reminder

${img}= Set Variable manager_${platform}_tab_agents.png
Wait For ${img} timeout=${default_image_timeout}
Take A Screenshot
Expand All @@ -37,15 +42,18 @@ Open GUI
[Tags] windows-latest
# Press Escape and move mouse because on linux the screen save had kicked in
Press Combination Key.esc
Move To 10 10
Move To 20 20
Wiggle Mouse

Set Suite Variable ${platform} windows
Set Confidence 0.9
# ${process}= Start Process python3 ${pyfile} alias=Manager stdout=${OUTPUT DIR}${/}stdout.txt stderr=${OUTPUT DIR}${/}stderr.txt
${process}= Start Process ${cmd_manager} alias=Manager stdout=${OUTPUT DIR}${/}Open_GUI_stdout.txt stderr=${OUTPUT DIR}${/}Open_GUI_stderr.txt
Set Test Variable $process ${process}
# Sleep 10 # not needed now we wait for the agents tab to be visible
Set Screenshot Folder ${OUTPUT DIR}

Handle Donation Reminder

${img}= Set Variable manager_${platform}_tab_agents.png
Wait For ${img} timeout=${default_image_timeout}
Take A Screenshot
Expand All @@ -54,15 +62,18 @@ Open GUI
[Tags] ubuntu-latest
# Press Escape and move mouse because on linux the screen save had kicked in
Press Combination Key.esc
Move To 10 10
Move To 20 20
Wiggle Mouse

Set Suite Variable ${platform} ubuntu
Set Confidence 0.9
# ${process}= Start Process python3 ${pyfile} alias=Manager stdout=${OUTPUT DIR}${/}stdout.txt stderr=${OUTPUT DIR}${/}stderr.txt
${process}= Start Process ${cmd_manager} alias=Manager stdout=${OUTPUT DIR}${/}Open_GUI_stdout.txt stderr=${OUTPUT DIR}${/}Open_GUI_stderr.txt
Set Test Variable $process ${process}
# Sleep 10 # not needed now we wait for the agents tab to be visible
Set Screenshot Folder ${OUTPUT DIR}

Handle Donation Reminder

${img}= Set Variable manager_${platform}_tab_agents.png
Wait For ${img} timeout=${default_image_timeout}
Take A Screenshot
Expand Down
4 changes: 2 additions & 2 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,12 @@ Selected Option Should Be


Click Button
[Arguments] ${btnname}
[Arguments] ${btnname} ${timeout}=${default_image_timeout}
${btnnamel}= Convert To Lower Case ${btnname}
${img}= Set Variable manager_${platform}_button_${btnnamel}.png
Log ${CURDIR}
Log ${IMAGE_DIR}
Wait For ${img} timeout=${default_image_timeout}
Wait For ${img} timeout=${timeout}
@{coordinates}= Locate ${img}
Click Image ${img}
Sleep 0.1
Expand Down

0 comments on commit 3105371

Please sign in to comment.