Create an application start-stop test for KDE.

Add png files as a background for the needles.

Rewrite the test handling methods to make them ready for KDE

Add the ABRT startstop test.

Make changes and corrections to the abrt test.

Add test for Firewall.

Add test for DNF dragora.

Add wait time for dnfdragora test.

Correct syntax.

Add Language test.

Make some changes to the DNF dragora test.

Add Users test case.

Add needles for DBUS viewer test.

Add Dbusviewer test.

Add Mahjong test and needles for games.

Add Minesweeper tests.

Add Patience test.

Add test for Document Viewer.

add test for gwenview

Add test for koulourpaint.

Add test for Kruler

Add test for Kcolorchooser

Reneedle failing needle.

Add ktorrent tests.

Add tests for CPT editors.

Add test for Krfb

Fix names for those files.

Add test for Kget

Add Akregator test.

Add test for Konversation.

Make Konversation end really.

Add tests for Kmail

Add test for PIM exporter.

Add test for KTnef and Krdc.

Fix problems after test runs.

Make more tries.

Fix needle to be found better.

Fix more errors.

Add test for Falkon.

Add tests for browsers.

Add support for closing tabs into Firefox test.

Add tests for K3B

move needles to correct directory

Add Kaddressbook test.

Add Kontakt text.

Add test for korganizer.

Add menu office needle and correct konqueror needle.

Add test for calligra stage.

Add test for Calligra.

Add test for network connections.

Modify needle for kaddressbook to prevent failing.

Add test for system settings and fix others.

Add test for FMW.

Add test for Dolphin

Add test for Infocenter.

Add test for kparted.

Fix a wrong needle.

Test relnotes.

Fix some errors in tests.

Add test for Discover.

Add test for Ksysguard.

Add tests for Konsole.

Add tests for KDE wallet.

Add tests for several utilities.

Add Krusader test.

Finish utility tests.

Fix some errors.

Fix needle for spectacle.

Add wait time to let Dragora wait for network.
This commit is contained in:
Lukas Ruzicka 2019-01-29 15:40:52 +01:00 committed by Adam Williamson
parent 29b809376c
commit c9a25cb2a6
412 changed files with 4112 additions and 21 deletions

View File

@ -716,40 +716,69 @@ sub quit_firefox {
sub start_with_launcher {
# Get the name of the needle with a launcher, find the launcher in the menu
# and click on it to start the application.
# and click on it to start the application. This function works for the
# Gnome desktop.
# $launcher holds the launcher needle, but some of the apps are hidden in a submenu
# so this must be handled first to find the launcher needle.
my ($launcher,$submenu) = @_;
my ($launcher,$submenu,$group) = @_;
$submenu //= '';
$group //= '';
my $desktop = get_var('DESKTOP');
my $screen_to_check = $submenu || $launcher;
my $item_to_check = $submenu || $launcher;
# The following varies for different desktops.
if ($desktop eq 'gnome') {
# Start the Activities page
send_key 'alt-f1';
wait_still_screen 5;
# Start the Activities page
send_key 'alt-f1';
wait_still_screen 5;
# Click on the menu icon to come into the menus
assert_and_click 'apps_activities';
wait_still_screen 5;
# Click on the menu icon to come into the menus
assert_and_click 'apps_activities';
wait_still_screen 5;
# Find the application launcher in the current menu page.
# If it cannot be found there, hit PageDown to go to another page.
# Find the application launcher in the current menu page.
# If it cannot be found there, hit PageDown to go to another page.
send_key_until_needlematch($item_to_check, 'pgdn', 5, 3);
send_key_until_needlematch($screen_to_check, 'pgdn', 5, 3);
# If there was a submenu, click on that first.
if ($submenu) {
assert_and_click $submenu;
# If there was a submenu, click on that first.
if ($submenu) {
assert_and_click $submenu;
wait_still_screen 5;
}
# Click on the launcher
assert_and_click $launcher;
wait_still_screen 5;
}
# Click on the launcher
assert_and_click $launcher;
wait_still_screen 5;
elsif ($desktop eq 'kde'){
# Click on the KDE launcher icon
assert_and_click 'kde_menu_launcher';
wait_still_screen 2;
#mouse_set(10, 10);
# Select the appropriate submenu
assert_and_click $submenu;
wait_still_screen 2;
#mouse_set(10, 10);
# Select the appropriate menu subgroup where real launchers
# are placed, but only if requested
if ($group) {
assert_and_click $group;
wait_still_screen 2;
#mouse_set(10, 10);
}
# Find and click on the menu item to start the application
send_key_until_needlematch($launcher, 'down', 20, 5);
assert_and_click $launcher;
wait_still_screen 5;
}
}
sub quit_with_shortcut {
# Quit the application using the Alt-F4 keyboard shortcut
send_key 'alt-f4';

View File

@ -370,8 +370,11 @@ if (get_var("STARTSTOP")) {
# Find all tests from a directory defined by the DESKTOP variable
my @apptests = glob "${casedir}/tests/apps_startstop/${desktop}/*.pm";
# Load the terminal test extra, because it must run first for settings.
autotest::loadtest "tests/apps_startstop/${desktop}/terminal.pm";
# Load the terminal test extra, because it must run first for settings
# when the desktop is Gnome.
if ($desktop eq 'gnome') {
autotest::loadtest "tests/apps_startstop/${desktop}/terminal.pm";
}
# Load all desktop tests
foreach my $filepath (@apptests) {

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"abrt_launch"
],
"area": [
{
"xpos": 55,
"ypos": 360,
"width": 16,
"height": 27,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"abrt_runs"
],
"area": [
{
"xpos": 451,
"ypos": 7,
"width": 123,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"akregator_launch"
],
"area": [
{
"xpos": 55,
"ypos": 406,
"width": 18,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"akregator_runs"
],
"area": [
{
"xpos": 435,
"ypos": 9,
"width": 68,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"ark_launch"
],
"area": [
{
"xpos": 53,
"ypos": 251,
"width": 21,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"ark_runs"
],
"area": [
{
"xpos": 308,
"ypos": 8,
"width": 25,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cpteditor_launch"
],
"area": [
{
"xpos": 96,
"ypos": 280,
"width": 64,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cpteditor_runs"
],
"area": [
{
"xpos": 212,
"ypos": 8,
"width": 180,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"csheets_launch"
],
"area": [
{
"xpos": 52,
"ypos": 530,
"width": 21,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"csheets_runs"
],
"area": [
{
"xpos": 463,
"ypos": 8,
"width": 101,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cstage_launch"
],
"area": [
{
"xpos": 49,
"ypos": 451,
"width": 28,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cstage_runs"
],
"area": [
{
"xpos": 465,
"ypos": 7,
"width": 96,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cteditor_launch"
],
"area": [
{
"xpos": 97,
"ypos": 320,
"width": 63,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cteditor_runs"
],
"area": [
{
"xpos": 338,
"ypos": 64,
"width": 146,
"height": 14,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cwords_launch"
],
"area": [
{
"xpos": 53,
"ypos": 606,
"width": 20,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"cwords_runs"
],
"area": [
{
"xpos": 463,
"ypos": 8,
"width": 99,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"dbusviewer_launch"
],
"area": [
{
"xpos": 53,
"ypos": 246,
"width": 21,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"dbusviewer_runs"
],
"area": [
{
"xpos": 227,
"ypos": 9,
"width": 92,
"height": 14,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"discover_launch"
],
"area": [
{
"xpos": 54,
"ypos": 492,
"width": 18,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"discover_runs"
],
"area": [
{
"xpos": 480,
"ypos": 7,
"width": 59,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"dnfdragora_launch"
],
"area": [
{
"xpos": 51,
"ypos": 287,
"width": 23,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"dnfdragora_runs"
],
"area": [
{
"xpos": 445,
"ypos": 9,
"width": 74,
"height": 14,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"docviewer_launch"
],
"area": [
{
"xpos": 52,
"ypos": 241,
"width": 23,
"height": 25,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"docviewer_runs"
],
"area": [
{
"xpos": 297,
"ypos": 6,
"width": 48,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 49,
"ypos": 366,
"width": 27,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"dolphin_launch"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 379,
"ypos": 8,
"width": 53,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"dolphin_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"dragon_launch"
],
"area": [
{
"xpos": 51,
"ypos": 364,
"width": 22,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"falkon_launch"
],
"area": [
{
"xpos": 53,
"ypos": 527,
"width": 21,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"falkon_runs"
],
"area": [
{
"xpos": 413,
"ypos": 8,
"width": 45,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"firefox_close_tabs"
],
"area": [
{
"xpos": 672,
"ypos": 416,
"width": 70,
"height": 14,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"firefox_launch"
],
"area": [
{
"xpos": 55,
"ypos": 569,
"width": 20,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"firefox_runs"
],
"area": [
{
"xpos": 513,
"ypos": 7,
"width": 48,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"firewall_launch"
],
"area": [
{
"xpos": 51,
"ypos": 244,
"width": 23,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"firewall_requires"
],
"area": [
{
"xpos": 595,
"ypos": 422,
"width": 19,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"firewall_runs"
],
"area": [
{
"xpos": 364,
"ypos": 8,
"width": 145,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 56,
"ypos": 323,
"width": 11,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"fmw_launch"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 333,
"ypos": 8,
"width": 136,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"fmw_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gwenview_launch"
],
"area": [
{
"xpos": 48,
"ypos": 283,
"width": 30,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gwenview_runs"
],
"area": [
{
"xpos": 285,
"ypos": 7,
"width": 72,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"help_launch"
],
"area": [
{
"xpos": 50,
"ypos": 607,
"width": 26,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"help_runs"
],
"area": [
{
"xpos": 406,
"ypos": 8,
"width": 33,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 51,
"ypos": 367,
"width": 24,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"infocenter_launch"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 412,
"ypos": 8,
"width": 75,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"infocenter_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"juk_launch"
],
"area": [
{
"xpos": 54,
"ypos": 326,
"width": 19,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"k3b_burner_warning"
],
"area": [
{
"xpos": 519,
"ypos": 355,
"width": 55,
"height": 14,
"type": "match"
}
]
}

Some files were not shown because too many files have changed in this diff Show More