|
| 1 | +*** Variables *** |
| 2 | +${INIT_SCREEN_IMAGE} init-screen.png |
| 3 | +${HOME_SCREEN_IMAGE} home-screen.png |
| 4 | +${SEARCH_SCREEN_IMAGE} search-screen.png |
| 5 | + |
| 6 | +*** Settings *** |
| 7 | +Test Timeout 60 seconds |
| 8 | + |
| 9 | +Library ../libs/TestUtils.py |
| 10 | + |
| 11 | +Resource variables.robot |
| 12 | +Resource keywords_common.robot |
| 13 | + |
| 14 | +*** Test Cases *** |
| 15 | +Test Check Navigation Bar |
| 16 | + [Tags] ignoreonfail |
| 17 | +
|
| 18 | + ${TEST_BOARD_IP} Get Environment Variable TEST_BOARD_IP |
| 19 | + ${TEST_WEBSERVER_IP} Get Environment Variable TEST_WEBSERVER_IP |
| 20 | + ${TEST_WEBSERVER_PORT} Get Environment Variable TEST_WEBSERVER_PORT |
| 21 | + ${HOME_PAGE} Set Variable http://${TEST_WEBSERVER_IP}:${TEST_WEBSERVER_PORT}/robot_framework/html/home-page.html |
| 22 | + ${SEARCH_PAGE} Set Variable http://${TEST_WEBSERVER_IP}:${TEST_WEBSERVER_PORT}/robot_framework/html/search-page.html |
| 23 | + |
| 24 | + 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 |
| 25 | + SSH Command ${TEST_BOARD_IP} sed -i 's|https://www.wpewebkit.org|${HOME_PAGE}|g' /usr/bin/demo-wpe-website |
| 26 | + SSH Command ${TEST_BOARD_IP} sed -i 's|https://duckduckgo.com/|${SEARCH_PAGE}|g' /usr/bin/demo-wpe-duckduckgo |
| 27 | + SSH Command ${TEST_BOARD_IP} systemctl daemon-reload && systemctl restart weston |
| 28 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${HOME_SCREEN_IMAGE} |
| 29 | + |
| 30 | + # Terminate browser |
| 31 | + 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 |
| 32 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${INIT_SCREEN_IMAGE} |
| 33 | + |
| 34 | + # Open Home |
| 35 | + 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 |
| 36 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${HOME_SCREEN_IMAGE} |
| 37 | + |
| 38 | + # Click |
| 39 | + SSH Command ${TEST_BOARD_IP} /root/scripts/touch-one-finger-gesture.py --duration 0.2 --steps 2 --delay-on-touch-up 0 90 160 90 160 |
| 40 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} |
| 41 | + |
| 42 | + # Navigation Back |
| 43 | + 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 |
| 44 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${HOME_SCREEN_IMAGE} |
| 45 | + |
| 46 | + # Navigation Forward |
| 47 | + 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 |
| 48 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} |
| 49 | + |
| 50 | + # Reload |
| 51 | + 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 |
| 52 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} |
| 53 | + |
| 54 | + # Navigation Back |
| 55 | + 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 |
| 56 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${HOME_SCREEN_IMAGE} |
| 57 | + |
| 58 | + # Open Search |
| 59 | + 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 |
| 60 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} |
| 61 | + |
| 62 | + # Terminate browser |
| 63 | + 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 |
| 64 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${INIT_SCREEN_IMAGE} |
| 65 | + |
0 commit comments