5d3fc24
@@ -0,0 +1,15 @@
+ {
+ "properties": [],
+ "tags": [
+ "sysmon_about_shown"
+ ],
+ "area": [
+ "xpos": 443,
+ "ypos": 287,
+ "width": 133,
+ "height": 132,
+ "type": "match"
+ }
+ ]
\ No newline at end of file
+ "sysmon_credits_shown"
+ "xpos": 423,
+ "ypos": 428,
+ "width": 176,
+ "height": 23,
+ "xpos": 1,
+ "height": 53,
+ "ypos": 136,
+ "type": "match",
+ "width": 148
+ "sysmon_fsystems_shown"
+ "width": 148,
+ "xpos": 9,
+ "ypos": 398,
+ "width": 138,
+ "height": 21,
+ "sysmon_help_monitoring"
+ "xpos": 131,
+ "ypos": 265,
+ "width": 111,
+ "height": 19,
+ "sysmon_help_processor"
+ "xpos": 15,
+ "ypos": 114,
+ "width": 306,
+ "height": 25,
+ "sysmon_help_shown"
+ "xpos": 503,
+ "ypos": 171,
+ "width": 79,
+ "sysmon_help_swap"
+ "xpos": 149,
+ "ypos": 127,
+ "width": 88,
+ "height": 38,
+ "sysmon_help_swap_shown"
+ "xpos": 515,
+ "ypos": 365,
+ "width": 152,
+ "height": 24,
+ "sysmon_help_use_maps"
+ "sysmon_menu_about"
+ "xpos": 833,
+ "ypos": 369,
+ "width": 150,
+ "height": 20,
+ "xpos": 830,
+ "ypos": 311,
+ "width": 47,
+ "height": 30,
+ "sysmon_menu_help"
+ "ypos": 289,
+ "width": 89,
+ "sysmon_menu_preferences"
+ "sysmon_menu_shortcuts"
+ "xpos": 835,
+ "ypos": 341,
+ "width": 132,
@@ -0,0 +1,29 @@
+ "xpos": 462,
+ "ypos": 55,
+ "width": 97,
+ },
+ "xpos": 603,
+ "ypos": 52,
+ "width": 51,
+ "xpos": 317,
+ "ypos": 51,
+ "width": 94,
+ "height": 28,
+ "sysmon_preferences_shown"
@@ -0,0 +1,22 @@
+ "sysmon_processes_shown"
+ "xpos": 315,
+ "ypos": 42,
+ "width": 100,
+ "height": 26,
+ "xpos": 6,
+ "ypos": 80,
+ "sysmon_resources_shown"
+ "xpos": 64,
+ "ypos": 264,
+ "width": 41,
+ "height": 22,
+ "xpos": 97,
+ "ypos": 472,
+ "width": 63,
+ "sysmon_shortcuts_shown"
+ "xpos": 476,
+ "ypos": 166,
+ "width": 73,
+ "ypos": 160,
+ "xpos": 165,
+ "width": 113
+ "systemmonitor_runs"
@@ -1172,6 +1172,22 @@
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
+ "sysmon": {
+ "profiles": {
+ "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,
+ "fedora-Silverblue-dvd_ostree-iso-x86_64-*-64bit": 50,
+ "fedora-Workstation-live-iso-ppc64le-*-ppc64le": 20,
+ "fedora-Workstation-live-iso-x86_64-*-64bit": 20,
+ "fedora-Workstation-upgrade-aarch64-*-aarch64": 40,
+ "fedora-Workstation-raw_xz-raw.xz-aarch64-*-aarch64": 22
+ "settings": {
+ "BOOTFROM": "c",
+ "HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
+ "POSTINSTALL_PATH": "tests/applications/sysmon",
+ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
"weather": {
"profiles": {
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,
@@ -0,0 +1,28 @@
+ use base "installedtest";
+ use strict;
+ use testapi;
+ use utils;
+
+ # This script opens the System Monitor application and saves the milestone
+ # to make it ready for further testing.
+ sub run {
+ my $self = shift;
+ # Start the Application
+ menu_launch_type("system monitor");
+ assert_screen("systemmonitor_runs");
+ # Make it fill the entire window.
+ send_key("super-up");
+ wait_still_screen(2);
+ sub test_flags {
+ # If this test fails, there is no need to continue.
+ return {fatal => 1, milestone => 1};
+ 1;
+ # vim: set sw=4 et:
@@ -0,0 +1,24 @@
+ # Open the Menu and click on the About entry.
+ assert_and_click("gnome_burger_menu");
+ assert_and_click("sysmon_menu_about");
+ # Check that About dialogue has started.
+ assert_screen("sysmon_about_shown");
+ # Click on the Credits button
+ assert_and_click("gnome_button_credits");
+ # Check that Credits are shown
+ assert_screen("sysmon_credits_shown");
+ return {always_rollback => 1};
@@ -0,0 +1,27 @@
+ # Open the Menu and click on Help entry.
+ assert_and_click("sysmon_menu_help");
+ # Check that Shortcuts dialogue is shown.
+ assert_screen("sysmon_help_shown");
+ assert_and_click("sysmon_help_processor");
+ assert_and_click("sysmon_help_monitoring");
+ assert_and_click("sysmon_help_use_maps");
+ assert_and_click("sysmon_help_swap");
+ assert_screen("sysmon_help_swap_shown");
@@ -0,0 +1,30 @@
+ # This script tests that users can switch between the three main regimes.
+ # wait for the restore to settle down
+ wait_still_screen 3;
+ # Press Alt-3 to see the file systems
+ send_key("alt-3");
+ assert_screen("sysmon_fsystems_shown");
+ # Press Alt-1 to see the processes
+ send_key("alt-1");
+ assert_screen("sysmon_processes_shown");
+ # Press Alt-2 to see the resources
+ send_key("alt-2");
+ assert_screen("sysmon_resources_shown");
@@ -0,0 +1,21 @@
+ # Open the Menu and click on Preferences entry.
+ assert_and_click("sysmon_menu_preferences");
+ # Check that Preferences dialogue is shown.
+ assert_screen("sysmon_preferences_shown");
+ # Open the Menu and click on Shortcuts entry.
+ assert_and_click("sysmon_menu_shortcuts");
+ assert_screen("sysmon_shortcuts_shown");
This small test suite adds a bunch of tests for System Monitor.
Build succeeded.
rebased onto 093b06942854046af475a33dc6e9abd35081e8a5
I've loaded this PR onto stg/lab for testing now.
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
rebased onto 666aea91d97bc8371ade77e3c8c26dc36312fc35
rebased onto 607d26d8b868d759c6811ae6b0affe9b73ce7524
rebased onto 18dc46167d7761bfabf95d8d5a47befde4a13e6e
rebased onto 28def4918a006e81669f7201d8ef380a6f57cc01
rebased onto 60d4bdfeb925ed9290d58469b3825461d16a962a
rebased onto 870c30dc4f09388b45df732e2d02d9dbbe37f6ae
rebased onto 5d3fc24
OK, with a few tweaks this is working and I don't want to hold it up so I'll merge it, but note https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/277 . Another thing is the set of flavors this runs on is kinda haphazard - why on upgrades for aarch64 but not x86_64? we should probably go through all the app tests and come up with a consistent approach here. Is it really worth the resources to run all these tests on live and also on upgrade?
Pull-Request has been merged by adamwill
This small test suite adds a bunch of tests for System Monitor.