Skip to content

Commit

Permalink
Add GUI launch test for PDF Viewer
Browse files Browse the repository at this point in the history
Signed-off-by: Samuli Leivo <[email protected]>
  • Loading branch information
leivos-unikie committed Jan 3, 2025
1 parent a7a2b45 commit a5869fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Robot-Framework/resources/gui_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,19 @@ Verify logout
[Documentation] Check that dekstop is not available by running 'grim' which should have return code 1 in this case
[Arguments] ${iterations}=5
${status}= Set Variable ${EMPTY}
Connect to VM ${GUI_VM} ${USER_LOGIN} ${USER_PASSWORD}
FOR ${i} IN RANGE ${iterations}
${rc}= Execute Command grim check.png return_stdout=False return_rc=${true}
IF "${rc}" == "1"
Set Global Variable ${LOGGED_IN_STATUS} ${False}
Connect to VM ${GUI_VM}
BREAK
ELSE
Set Global Variable ${LOGGED_IN_STATUS} ${True}
END
Sleep 1
END
Connect to VM ${GUI_VM}

Get icon
[Documentation] Copy icon svg file to test agent machine. Crop and convert the svg file to png.
Expand Down
8 changes: 8 additions & 0 deletions Robot-Framework/test-suites/gui-tests/gui_apps.robot
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ Start and close chrome via GUI on LenovoX1
Start app via GUI on LenovoX1 ${CHROME_VM} chrome
Close app via GUI on LenovoX1 ${CHROME_VM} google-chrome ./window-close-neg.png

Start and close PDF Viewer via GUI on LenovoX1
[Documentation] Start PDF Viewer via GUI test automation and verify related process started
... Close PDF Viewer via GUI test automation and verify related process stopped
[Tags] SP-T70 lenovo-x1
Get icon app zathura.svg crop=30
Start app via GUI on LenovoX1 ${ZATHURA_VM} zathura
Close app via GUI on LenovoX1 ${ZATHURA_VM} zathura ./window-close-neg.png

Start and close Firefox via GUI on Orin AGX
[Documentation] Passing this test requires that display is connected to the target device
... Start Firefox via GUI test automation and verify related process started
Expand Down

0 comments on commit a5869fe

Please sign in to comment.