1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-04 14:53:09 +00:00

Create the test for system monitor.

This commit is contained in:
Lukas Ruzicka 2022-09-21 14:16:58 +02:00 committed by Adam Williamson
parent baedbd22aa
commit 5d3fc244eb
45 changed files with 480 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"sysmon_about_shown"
],
"area": [
{
"xpos": 443,
"ypos": 287,
"width": 133,
"height": 132,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"sysmon_credits_shown"
],
"area": [
{
"xpos": 423,
"ypos": 428,
"width": 176,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 1,
"height": 53,
"ypos": 136,
"type": "match",
"width": 148
}
],
"properties": [],
"tags": [
"sysmon_fsystems_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"sysmon_fsystems_shown"
],
"area": [
{
"xpos": 1,
"ypos": 136,
"width": 148,
"height": 53,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 9,
"ypos": 398,
"width": 138,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_help_monitoring"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 131,
"ypos": 265,
"width": 111,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_help_processor"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 15,
"ypos": 114,
"width": 306,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_help_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 503,
"ypos": 171,
"width": 79,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_help_swap"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 149,
"ypos": 127,
"width": 88,
"height": 38,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_help_swap_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 515,
"ypos": 365,
"width": 152,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_help_use_maps"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"sysmon_menu_about"
],
"area": [
{
"xpos": 833,
"ypos": 369,
"width": 150,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 830,
"ypos": 311,
"width": 47,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_menu_help"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 830,
"ypos": 289,
"width": 89,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"sysmon_menu_preferences"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"sysmon_menu_shortcuts"
],
"area": [
{
"xpos": 835,
"ypos": 341,
"width": 132,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

View 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"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

View 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"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

View 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"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"sysmon_shortcuts_shown"
],
"area": [
{
"xpos": 476,
"ypos": 166,
"width": 73,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 20,
"ypos": 160,
"xpos": 165,
"width": 113
}
],
"properties": [],
"tags": [
"systemmonitor_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

View File

@ -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,

View 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:

View 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;

View 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;

View 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;

View 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;

View 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;