Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GUI launch test for PDF Viewer #203

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading