Skip to content

Commit

Permalink
Tests were failing because -n was passed to Open Manager GUI, so natu…
Browse files Browse the repository at this point in the history
…rally no GUI appeared

Issue #145
  • Loading branch information
damies13 committed Sep 16, 2024
1 parent 41a8609 commit 15a6425
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions Tests/Regression/Manager/GUI_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,32 @@ Open Manager GUI
${result}= Wait Until Keyword Succeeds ${default_image_timeout} sec 500ms Process Should Be Running ${process_manager}
Log Process Is Running: ${result} console=True

${img}= Set Variable manager_${platform}_button_runschedule.png
${passed}= Run Keyword And Return Status Wait For ${img} timeout=${default_image_timeout / 2}
IF not ${passed}
${running}= Is Process Running ${process_manager}
IF not ${running}
${result} = Get Process Result

Log rc: ${result.rc} console=True
Log stdout: ${result.stdout} console=True
Log stderr: ${result.stderr} console=True
Log stdout_path: ${result.stdout_path} console=True
Log stderr_path: ${result.stderr_path} console=True

Show Log ${result.stdout_path}
Show Log ${result.stderr_path}

Show Log ${OUTPUT DIR}${/}stdout_manager.txt
Show Log ${OUTPUT DIR}${/}stderr_manager.txt

Fail Manager not running
ELSE
Wait For ${img} timeout=${default_image_timeout / 2}
IF '-n' in ${options}
Sleep 10
ELSE
${img}= Set Variable manager_${platform}_button_runschedule.png
${passed}= Run Keyword And Return Status Wait For ${img} timeout=${default_image_timeout / 2}
IF not ${passed}
${running}= Is Process Running ${process_manager}
IF not ${running}
${result} = Get Process Result

Log rc: ${result.rc} console=True
Log stdout: ${result.stdout} console=True
Log stderr: ${result.stderr} console=True
Log stdout_path: ${result.stdout_path} console=True
Log stderr_path: ${result.stderr_path} console=True

Show Log ${result.stdout_path}
Show Log ${result.stderr_path}

Show Log ${OUTPUT DIR}${/}stdout_manager.txt
Show Log ${OUTPUT DIR}${/}stderr_manager.txt

Fail Manager not running
ELSE
Wait For ${img} timeout=${default_image_timeout / 2}
END
END
END

Expand Down

0 comments on commit 15a6425

Please sign in to comment.