-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add screenshot validation and navigation bar test
* Introduced screenshot validation using `Remote Weston Capture Screenshot` and `Remote Weston Check Screenshot` keywords. * Implemented a new test: `Test Check Navigation Bar` to verify navigation bar transitions using screenshots. * Updated dependencies in `keywords_common.robot` to include `DocTest.VisualTest`.
- Loading branch information
Showing
7 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
*** Variables *** | ||
${INIT_SCREEN_IMAGE} init-screen.png | ||
${HOME_SCREEN_IMAGE} home-screen.png | ||
${SEARCH_SCREEN_IMAGE} search-screen.png | ||
${SEARCH_NAVIGATION_SCREEN_IMAGE} search-navigation-screen.png | ||
|
||
*** Settings *** | ||
Test Timeout 60 seconds | ||
|
||
Library ../libs/TestUtils.py | ||
|
||
Resource variables.robot | ||
Resource keywords_common.robot | ||
|
||
*** Test Cases *** | ||
Test Check Navigation Bar | ||
[Tags] ignoreonfail | ||
${TEST_BOARD_IP} Get Environment Variable TEST_BOARD_IP | ||
|
||
SSH Command ${TEST_BOARD_IP} sed -i 's|ExecStart=/usr/bin/weston --continue-without-input --modules=systemd-notify.so|ExecStart=/usr/bin/weston --continue-without-input --modules=systemd-notify.so --debug|' /lib/systemd/system/weston.service | ||
SSH Command ${TEST_BOARD_IP} systemctl daemon-reload && systemctl restart weston | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${INIT_SCREEN_IMAGE} | ||
|
||
# Open Home | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 1 --steps 1 --delay-on-touch-up 0 215 15 215 15 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${HOME_SCREEN_IMAGE} | ||
|
||
# Open Search | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 1 --steps 1 --delay-on-touch-up 0 275 15 275 15 | ||
Sleep 10s | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 0.2 --steps 2 --delay-on-touch-up 0 90 300 90 300 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} | ||
|
||
# Click | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 0.2 --steps 2 --delay-on-touch-up 0 90 90 90 90 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_NAVIGATION_SCREEN_IMAGE} | ||
|
||
# Navigation Back | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 1 --steps 1 --delay-on-touch-up 0 345 15 345 15 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} | ||
|
||
# Navigation Forward | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 1 --steps 1 --delay-on-touch-up 0 400 15 400 15 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_NAVIGATION_SCREEN_IMAGE} | ||
|
||
# Reload | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 1 --steps 1 --delay-on-touch-up 0 470 15 470 15 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_NAVIGATION_SCREEN_IMAGE} | ||
|
||
# Terminate browser | ||
SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 1 --steps 1 --delay-on-touch-up 0 595 15 595 15 | ||
Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${INIT_SCREEN_IMAGE} | ||
|
File renamed without changes.