Skip to content

Commit

Permalink
Update Chromium to Chrome
Browse files Browse the repository at this point in the history
Signed-off-by: Maarit Härkönen <[email protected]>
  • Loading branch information
maaharko committed Nov 19, 2024
1 parent 593f2a9 commit 041ac49
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Robot-Framework/config/variables.robot
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Set Variables
Set Global Variable ${NETVM_SERVICE} microvm@${NETVM_NAME}.service
Set Global Variable ${NETVM_IP} 192.168.101.1
Set Global Variable ${GUI_VM} gui-vm
Set Global Variable ${CHROMIUM_VM} chromium-vm
Set Global Variable ${CHROME_VM} chrome-vm
Set Global Variable ${GALA_VM} gala-vm
Set Global Variable ${ZATHURA_VM} zathura-vm
Set Global Variable ${COMMS_VM} comms-vm
Expand Down
14 changes: 7 additions & 7 deletions Robot-Framework/test-suites/bat-tests/apps.robot
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ Start Firefox
Check that the application was started firefox
[Teardown] Kill Process And Log journalctl

Start Chromium on LenovoX1
[Documentation] Start Chromium in dedicated VM and verify process started
Start Chrome on LenovoX1
[Documentation] Start Chrome in dedicated VM and verify process started
[Tags] bat SP-T92 lenovo-x1
Verify service status range=15 service=microvm@chromium-vm.service expected_status=active expected_state=running
Verify service status range=15 service=microvm@chrome-vm.service expected_status=active expected_state=running
Connect to netvm
Connect to VM ${GUI_VM}
Check if ssh is ready on vm ${CHROMIUM_VM}
Start XDG application Chromium
Connect to VM ${CHROMIUM_VM}
Check that the application was started chromium
Check if ssh is ready on vm ${CHROME_VM}
Start XDG application 'Google Chrome'
Connect to VM ${CHROME_VM}
Check that the application was started chrome
[Teardown] Kill Process And Log journalctl

Start Zathura on LenovoX1
Expand Down
2 changes: 1 addition & 1 deletion Robot-Framework/test-suites/bat-tests/business_vm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ Start Trusted Browser on LenovoX1
Connect to VM ${GUI_VM}
Start XDG application "Trusted Browser"
Connect to VM ${BUSINESS_VM}
Check that the application was started chromium
Check that the application was started chrome
[Teardown] Kill process @{app_pids}
12 changes: 6 additions & 6 deletions Robot-Framework/test-suites/gui-tests/gui_apps.robot
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ ${start_menu} ./launcher.png

*** Test Cases ***

Start and close chromium via GUI on LenovoX1
[Documentation] Start Chromium via GUI test automation and verify related process started
... Close Chromium via GUI test automation and verify related process stopped
Start and close chrome via GUI on LenovoX1
[Documentation] Start Chrome via GUI test automation and verify related process started
... Close Chrome via GUI test automation and verify related process stopped
[Tags] SP-T41 lenovo-x1
Get icon app chromium.svg crop=30
Start app via GUI on LenovoX1 chromium-vm chromium
Close app via GUI on LenovoX1 chromium-vm chromium ./window-close-neg.png
Get icon app google-chrome.svg crop=30
Start app via GUI on LenovoX1 ${CHROME_VM} chrome
Close app via GUI on LenovoX1 ${CHROME_VM} google-chrome ./window-close-neg.png

Start and close Firefox via GUI on Orin AGX
[Documentation] Passing this test requires that display is connected to the target device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Sysbench test in VMs on LenovoX1
... gui-vm=2
... gala-vm=2
... zathura-vm=1
... chromium-vm=4
... chrome-vm=4
... comms-vm=4
... admin-vm=1
... audio-vm=1
Expand Down
3 changes: 3 additions & 0 deletions pkgs/ghaf-robot/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
PyP100,
iperf,
imagemagick,
plugp100,
python3,
robotframework-advancedlogging,
Expand All @@ -14,6 +15,7 @@ writeShellApplication {
name = "ghaf-robot";
runtimeInputs = [
iperf
imagemagick
(python3.withPackages (ps: [
# These are taken from nixpkgs
ps.robotframework
Expand All @@ -23,6 +25,7 @@ writeShellApplication {
ps.pytz
ps.pandas
ps.pyscreeze
ps.opencv4

# These are taken from this flake
robotframework-advancedlogging
Expand Down

0 comments on commit 041ac49

Please sign in to comment.