|
| 1 | +*** Variables *** |
| 2 | +${INIT_SCREEN_IMAGE} init-screen.png |
| 3 | +${HOME_SCREEN_IMAGE} home-screen.png |
| 4 | +${SEARCH_SCREEN_IMAGE} search-screen.png |
| 5 | +${SEARCH_NAVIGATION_SCREEN_IMAGE} search-navigation-screen.png |
| 6 | + |
| 7 | +*** Settings *** |
| 8 | +Test Timeout 60 seconds |
| 9 | + |
| 10 | +Library ../libs/TestUtils.py |
| 11 | + |
| 12 | +Resource variables.robot |
| 13 | +Resource keywords_common.robot |
| 14 | + |
| 15 | +*** Test Cases *** |
| 16 | +Test Check Navigation Bar |
| 17 | + [Tags] ignoreonfail |
| 18 | +
|
| 19 | + ${TEST_BOARD_IP} Get Environment Variable TEST_BOARD_IP |
| 20 | + |
| 21 | + # Terminate browser |
| 22 | + 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 |
| 23 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${INIT_SCREEN_IMAGE} |
| 24 | + |
| 25 | + # Open Home |
| 26 | + 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 |
| 27 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${HOME_SCREEN_IMAGE} |
| 28 | + |
| 29 | + # Open Search |
| 30 | + 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 |
| 31 | + Sleep 10s |
| 32 | + 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 |
| 33 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} |
| 34 | + |
| 35 | + # Click |
| 36 | + 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 |
| 37 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_NAVIGATION_SCREEN_IMAGE} |
| 38 | + |
| 39 | + # Navigation Back |
| 40 | + 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 |
| 41 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_SCREEN_IMAGE} |
| 42 | + |
| 43 | + # Navigation Forward |
| 44 | + 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 |
| 45 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_NAVIGATION_SCREEN_IMAGE} |
| 46 | + |
| 47 | + # Reload |
| 48 | + 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 |
| 49 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${SEARCH_NAVIGATION_SCREEN_IMAGE} |
| 50 | + |
| 51 | + # Terminate browser |
| 52 | + 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 |
| 53 | + Wait Until Keyword Succeeds 20x 1000ms Remote Weston Check Screenshot ${INIT_SCREEN_IMAGE} |
| 54 | + |
0 commit comments