Create the test for system monitor.
15
needles/gnome/apps/sysmon/sysmon_about_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_about_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 443,
|
||||
"ypos": 287,
|
||||
"width": 133,
|
||||
"height": 132,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_about_shown.png
Normal file
After Width: | Height: | Size: 156 KiB |
15
needles/gnome/apps/sysmon/sysmon_credits_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_credits_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 423,
|
||||
"ypos": 428,
|
||||
"width": 176,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_credits_shown.png
Normal file
After Width: | Height: | Size: 148 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 1,
|
||||
"height": 53,
|
||||
"ypos": 136,
|
||||
"type": "match",
|
||||
"width": 148
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_fsystems_shown"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 51 KiB |
15
needles/gnome/apps/sysmon/sysmon_fsystems_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_fsystems_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 1,
|
||||
"ypos": 136,
|
||||
"width": 148,
|
||||
"height": 53,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_fsystems_shown.png
Normal file
After Width: | Height: | Size: 33 KiB |
15
needles/gnome/apps/sysmon/sysmon_help_monitoring.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 9,
|
||||
"ypos": 398,
|
||||
"width": 138,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_help_monitoring"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_help_monitoring.png
Normal file
After Width: | Height: | Size: 77 KiB |
15
needles/gnome/apps/sysmon/sysmon_help_processor.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 131,
|
||||
"ypos": 265,
|
||||
"width": 111,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_help_processor"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_help_processor.png
Normal file
After Width: | Height: | Size: 65 KiB |
15
needles/gnome/apps/sysmon/sysmon_help_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 15,
|
||||
"ypos": 114,
|
||||
"width": 306,
|
||||
"height": 25,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_help_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_help_shown.png
Normal file
After Width: | Height: | Size: 65 KiB |
15
needles/gnome/apps/sysmon/sysmon_help_swap.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 503,
|
||||
"ypos": 171,
|
||||
"width": 79,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_help_swap"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_help_swap.png
Normal file
After Width: | Height: | Size: 73 KiB |
15
needles/gnome/apps/sysmon/sysmon_help_swap_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 149,
|
||||
"ypos": 127,
|
||||
"width": 88,
|
||||
"height": 38,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_help_swap_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_help_swap_shown.png
Normal file
After Width: | Height: | Size: 47 KiB |
15
needles/gnome/apps/sysmon/sysmon_help_use_maps.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 515,
|
||||
"ypos": 365,
|
||||
"width": 152,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_help_use_maps"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_help_use_maps.png
Normal file
After Width: | Height: | Size: 66 KiB |
15
needles/gnome/apps/sysmon/sysmon_menu_about.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_menu_about"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 833,
|
||||
"ypos": 369,
|
||||
"width": 150,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_menu_about.png
Normal file
After Width: | Height: | Size: 161 KiB |
15
needles/gnome/apps/sysmon/sysmon_menu_help.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 830,
|
||||
"ypos": 311,
|
||||
"width": 47,
|
||||
"height": 30,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_menu_help"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_menu_help.png
Normal file
After Width: | Height: | Size: 136 KiB |
15
needles/gnome/apps/sysmon/sysmon_menu_preferences.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 830,
|
||||
"ypos": 289,
|
||||
"width": 89,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_menu_preferences"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_menu_preferences.png
Normal file
After Width: | Height: | Size: 136 KiB |
15
needles/gnome/apps/sysmon/sysmon_menu_shortcuts.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_menu_shortcuts"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 835,
|
||||
"ypos": 341,
|
||||
"width": 132,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_menu_shortcuts.png
Normal file
After Width: | Height: | Size: 162 KiB |
29
needles/gnome/apps/sysmon/sysmon_preferences_shown.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 462,
|
||||
"ypos": 55,
|
||||
"width": 97,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
},
|
||||
{
|
||||
"xpos": 603,
|
||||
"ypos": 52,
|
||||
"width": 51,
|
||||
"height": 25,
|
||||
"type": "match"
|
||||
},
|
||||
{
|
||||
"xpos": 317,
|
||||
"ypos": 51,
|
||||
"width": 94,
|
||||
"height": 28,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_preferences_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_preferences_shown.png
Normal file
After Width: | Height: | Size: 115 KiB |
22
needles/gnome/apps/sysmon/sysmon_processes_shown.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_processes_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 315,
|
||||
"ypos": 42,
|
||||
"width": 100,
|
||||
"height": 26,
|
||||
"type": "match"
|
||||
},
|
||||
{
|
||||
"xpos": 6,
|
||||
"ypos": 80,
|
||||
"width": 100,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_processes_shown.png
Normal file
After Width: | Height: | Size: 149 KiB |
22
needles/gnome/apps/sysmon/sysmon_resources_shown.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_resources_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 64,
|
||||
"ypos": 264,
|
||||
"width": 41,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
},
|
||||
{
|
||||
"xpos": 97,
|
||||
"ypos": 472,
|
||||
"width": 63,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_resources_shown.png
Normal file
After Width: | Height: | Size: 62 KiB |
15
needles/gnome/apps/sysmon/sysmon_shortcuts_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"sysmon_shortcuts_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 476,
|
||||
"ypos": 166,
|
||||
"width": 73,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/sysmon/sysmon_shortcuts_shown.png
Normal file
After Width: | Height: | Size: 164 KiB |
15
needles/gnome/apps/systemmonitor_runs-20220921.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"type": "match",
|
||||
"height": 20,
|
||||
"ypos": 160,
|
||||
"xpos": 165,
|
||||
"width": 113
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"systemmonitor_runs"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/systemmonitor_runs-20220921.png
Normal file
After Width: | Height: | Size: 211 KiB |
@ -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,
|
||||
|
28
tests/applications/sysmon/aaa_setup.pm
Normal file
@ -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:
|
24
tests/applications/sysmon/about.pm
Normal file
@ -0,0 +1,24 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
|
||||
# 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");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
27
tests/applications/sysmon/help.pm
Normal file
@ -0,0 +1,27 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
|
||||
# Open the Menu and click on Help entry.
|
||||
assert_and_click("gnome_burger_menu");
|
||||
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");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
30
tests/applications/sysmon/main_view.pm
Normal file
@ -0,0 +1,30 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This script tests that users can switch between the three main regimes.
|
||||
|
||||
sub run {
|
||||
# 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");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
21
tests/applications/sysmon/preferences.pm
Normal file
@ -0,0 +1,21 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
|
||||
# Open the Menu and click on Preferences entry.
|
||||
assert_and_click("gnome_burger_menu");
|
||||
assert_and_click("sysmon_menu_preferences");
|
||||
|
||||
# Check that Preferences dialogue is shown.
|
||||
assert_screen("sysmon_preferences_shown");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
21
tests/applications/sysmon/shortcuts.pm
Normal file
@ -0,0 +1,21 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
|
||||
# Open the Menu and click on Shortcuts entry.
|
||||
assert_and_click("gnome_burger_menu");
|
||||
assert_and_click("sysmon_menu_shortcuts");
|
||||
|
||||
# Check that Shortcuts dialogue is shown.
|
||||
assert_screen("sysmon_shortcuts_shown");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|