1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-20 06:14:32 +00:00

Compare commits

...

11 Commits

Author SHA1 Message Date
Lukas Ruzicka
bc7915a0ee Fix typo 2023-03-22 12:35:09 +01:00
Lukas Ruzicka
5e03c5aecd Restructure stuff a bit. 2023-03-22 12:31:48 +01:00
Lukas Ruzicka
ed026cc235 Fix routine. 2023-03-22 11:55:55 +01:00
Lukas Ruzicka
f6a12f41a4 One step back only. 2023-03-22 11:38:28 +01:00
Lukas Ruzicka
44a964bb38 Update library. 2023-03-22 11:04:58 +01:00
Lukas Ruzicka
17e3189283 Add finding command to script. 2023-03-22 10:37:36 +01:00
Lukas Ruzicka
a3f58eaa97 Simplify search_applications. 2023-03-22 10:34:54 +01:00
Lukas Ruzicka
06c35da773 Add needles to support the browse_applications. 2023-03-22 10:31:07 +01:00
Lukas Ruzicka
777c31f854 Change application. 2023-03-22 10:04:29 +01:00
Lukas Ruzicka
e636bb367e Change category again. 2023-03-22 09:56:57 +01:00
Lukas Ruzicka
3da2194c28 Change category. 2023-03-22 09:48:49 +01:00
84 changed files with 604 additions and 28 deletions

View File

@ -68,14 +68,6 @@ sub check_application_information {
# you need to start it before running this.
sub install_application {
my ($application, $source) = @_;
# Sometimes, especially when this method is used several
# times in a row, Software can be located on the
# installation tab and we need to leave it until
# we can proceed.
if (check_screen("software_back_button")) {
click_lastmatch();
}
# For some applications, there are more installation sources
# available. Pick the desired one.
if (check_screen("software_sources_available", timeout => 5)) {
@ -96,6 +88,10 @@ sub install_application {
$wait_time = 1200;
}
assert_screen("gnome_button_open", timeout => $wait_time);
# After the installation, return to the previous page.
if (check_screen("software_back_button")) {
click_lastmatch();
}
}
# This subroutine opens the $application using Gnome Software.
@ -127,12 +123,6 @@ sub start_application_via_packagemanager {
# application has been found (or it will fail).
sub check_app_installed {
my $application = shift;
# It is possible that we still find ourselves in the Installation
# pane. In that case, the Installed button is not visible, therefore
# we need to go back in the GUI if this is the sitation.
unless (check_screen("software_installed_button")) {
assert_and_click("software_back_button");
}
# Look for the application and confirm that it is listed as installed
# in the application overview.
assert_and_click("gnome_search_button");

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 94,
"ypos": 510,
"width": 140,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"software_application_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 393,
"ypos": 613,
"width": 181,
"height": 29,
"type": "match"
}
],
"properties": [],
"tags": [
"software_application_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 398,
"ypos": 498,
"width": 121,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"software_application_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 209,
"ypos": 478,
"width": 61,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"software_category_create"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 503,
"ypos": 560,
"width": 58,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"software_category_learn"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 803,
"ypos": 478,
"width": 45,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"software_category_play"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 505,
"ypos": 473,
"width": 58,
"height": 29,
"type": "match"
}
],
"properties": [],
"tags": [
"software_category_work"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 97,
"ypos": 726,
"width": 349,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"software_description_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 98,
"ypos": 723,
"width": 255,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"software_description_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 98,
"ypos": 726,
"width": 252,
"height": 26,
"type": "match"
}
],
"properties": [],
"tags": [
"software_description_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 148,
"ypos": 641,
"width": 107,
"height": 70,
"type": "match"
}
],
"properties": [],
"tags": [
"software_download_size_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 144,
"ypos": 634,
"width": 114,
"height": 76,
"type": "match"
}
],
"properties": [],
"tags": [
"software_download_size_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 154,
"ypos": 640,
"width": 96,
"height": 70,
"type": "match"
}
],
"properties": [],
"tags": [
"software_download_size_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 99,
"ypos": 103,
"width": 128,
"height": 131,
"type": "match"
}
],
"properties": [],
"tags": [
"software_logo_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 109,
"ypos": 109,
"width": 101,
"height": 117,
"type": "match"
}
],
"properties": [],
"tags": [
"software_logo_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 106,
"ypos": 109,
"width": 118,
"height": 119,
"type": "match"
}
],
"properties": [],
"tags": [
"software_logo_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 778,
"ypos": 641,
"width": 85,
"height": 71,
"type": "match"
}
],
"properties": [],
"tags": [
"software_rating_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 783,
"ypos": 639,
"width": 79,
"height": 76,
"type": "match"
}
],
"properties": [],
"tags": [
"software_rating_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 786,
"ypos": 642,
"width": 76,
"height": 68,
"type": "match"
}
],
"properties": [],
"tags": [
"software_rating_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 383,
"ypos": 642,
"width": 51,
"height": 68,
"type": "match"
}
],
"properties": [],
"tags": [
"software_safestatus_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 385,
"ypos": 638,
"width": 47,
"height": 76,
"type": "match"
}
],
"properties": [],
"tags": [
"software_safestatus_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 378,
"ypos": 638,
"width": 60,
"height": 73,
"type": "match"
}
],
"properties": [],
"tags": [
"software_safestatus_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 171,
"ypos": 262,
"width": 267,
"height": 157,
"type": "match"
}
],
"properties": [],
"tags": [
"software_screenshot_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 381,
"ypos": 324,
"width": 260,
"height": 136,
"type": "match"
}
],
"properties": [],
"tags": [
"software_screenshot_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 371,
"ypos": 256,
"width": 275,
"height": 120,
"type": "match"
}
],
"properties": [],
"tags": [
"software_screenshot_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 565,
"ypos": 643,
"width": 105,
"height": 67,
"type": "match"
}
],
"properties": [],
"tags": [
"software_usage_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 563,
"ypos": 637,
"width": 101,
"height": 75,
"type": "match"
}
],
"properties": [],
"tags": [
"software_usage_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 570,
"ypos": 642,
"width": 87,
"height": 70,
"type": "match"
}
],
"properties": [],
"tags": [
"software_usage_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 209,
"ypos": 185,
"width": 269,
"height": 33,
"type": "match"
}
],
"properties": [],
"tags": [
"software_webcontent_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 102,
"ypos": 504,
"width": 228,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"software_webcontent_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 194,
"ypos": 528,
"width": 541,
"height": 28,
"type": "match"
}
],
"properties": [],
"tags": [
"software_webcontent_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 242,
"ypos": 86,
"width": 164,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"software_weblink_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 240,
"ypos": 85,
"width": 248,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"software_weblink_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 238,
"ypos": 85,
"width": 332,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"software_weblink_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 526,
"ypos": 273,
"width": 164,
"height": 43,
"type": "match"
}
],
"properties": [],
"tags": [
"software_website_amarok"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 530,
"ypos": 544,
"width": 223,
"height": 42,
"type": "match"
}
],
"properties": [],
"tags": [
"software_website_chess"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 530,
"ypos": 526,
"width": 295,
"height": 40,
"type": "match"
}
],
"properties": [],
"tags": [
"software_website_clocks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -25,10 +25,10 @@ sub run {
assert_and_click("gnome_back_button");
}
# Open the Learn category.
assert_and_click("software_category_learn");
assert_and_click("software_application_octave");
check_application_information("octave");
# Open the Play category.
assert_and_click("software_category_work");
assert_and_click("software_application_clocks");
check_application_information("clocks");
# Come back to the main screen
while (! check_screen("gnome_search_button")) {
assert_and_click("gnome_back_button");

View File

@ -15,6 +15,9 @@ sub run {
restart_application("software");
}
# Find the application
find_application("inkscape");
# Install the application using Flatpak
install_application("inkscape", "flatpak");

View File

@ -18,12 +18,9 @@ sub run {
my $self = shift;
unless (get_var("SUBVARIANT") eq "Silverblue") {
# Sometimes, after rollback, Software crashes. If it
# happens, let's restart it.
unless (check_screen("apps_run_software")) {
restart_application("software");
}
# Find the application.
find_application("mahjongg");
# Install the application.
install_application("mahjongg", "rpm");
wait_still_screen(10);

View File

@ -24,8 +24,11 @@ sub run {
restart_application("software");
}
# Perform all installations one after another.
find_application("mahjongg");
install_application("mahjongg", "rpm");
find_application("gvim");
install_application("gvim", "rpm");
find_application("emacs");
install_application("emacs", "rpm");
# Check that the installations have completed successfully.

View File

@ -6,8 +6,9 @@ use desktoptools;
# This script tests if Software can browse through various applications.
# As we cannot browse through all of the applications, we will only focus
# on three application, for example KTurtle, IDLE3, and Midori.
# The concept of this is to look for applications using the Search function.
# We are not going to check for metadata anymore, as this would require
# another set of needles.
sub run {
my $self = shift;
@ -15,19 +16,16 @@ sub run {
# Find KTurtle and check for its details,
# use a keyword.
find_application("educational");
check_application_information("educational");
assert_and_click("gnome_back_button");
# Find IDLE3 and check for its details,
# use a name.
find_application("idle3");
check_application_information("idle3");
assert_and_click("gnome_back_button");
# Find Midori and check for its details
# use a category.
find_application("browser");
check_application_information("browser");
assert_and_click("gnome_back_button");
}