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 Firefox instead of Chromium #43

Merged
merged 1 commit into from
Oct 16, 2023
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
5 changes: 5 additions & 0 deletions Robot-Framework/resources/ssh_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion Robot-Framework/test-suites/bat-tests/apps.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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}

1 change: 1 addition & 0 deletions requirements
Original file line number Diff line number Diff line change
Expand Up @@ -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