diff --git a/Robot-Framework/resources/ssh_keywords.resource b/Robot-Framework/resources/ssh_keywords.resource index 8292c228..865d5226 100644 --- a/Robot-Framework/resources/ssh_keywords.resource +++ b/Robot-Framework/resources/ssh_keywords.resource @@ -82,6 +82,11 @@ Start Chromium ${command}= Set Variable chromium-browser --enable-features=UseOzonePlatform --ozone-platform=wayland ${command_output}= Execute Command nohup ${command} > output.log 2>&1 & +Start Firefox + [Documentation] It's needed to set display variable manually because there is no real monitor connected to DUT + Log To Console ${\n}Starting Firefox + ${command_output}= Execute Command export WAYLAND_DISPLAY=wayland-1; nohup firefox > output.log 2>&1 & + Is process started [Arguments] ${pid} ${rc}= Execute Command ps -p ${pid} return_rc=True diff --git a/Robot-Framework/test-suites/bat-tests/apps.robot b/Robot-Framework/test-suites/bat-tests/apps.robot index 2ae7f78a..5caeb250 100644 --- a/Robot-Framework/test-suites/bat-tests/apps.robot +++ b/Robot-Framework/test-suites/bat-tests/apps.robot @@ -10,11 +10,22 @@ Suite Teardown Close All Connections *** Test Cases *** +Start Firefox + [Documentation] Start Firefox and verify process started + [Tags] bat SP-T45 nuc orin-agx + Connect + Start Firefox + @{pid}= Find pid by name firefox + Should Not Be Empty ${pid} Firefox is not started + [Teardown] Kill process @{pid} + + Start Chromium [Documentation] Start Chromium and verify process started - [Tags] bat SP-T45 nuc orin-agx + [Tags] depricated Connect Start Chromium @{pid}= Find pid by name chromium Should Not Be Empty ${pid} Chromium is not started [Teardown] Kill process @{pid} + diff --git a/requirements b/requirements index 449e49a5..d47f6bcc 100644 --- a/requirements +++ b/requirements @@ -7,3 +7,4 @@ PyP100==0.1.2 python-kasa~=0.5.1 robotframework-retryfailed==0.2.0 matplotlib==3.7.2 +plugp100==3.11.0