1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00

Create procedures for XFCE desktop.

Create methods to accept the xfce desktop.
Add some test cases to check.
This commit is contained in:
Lukas Ruzicka 2019-05-13 17:14:15 +02:00
parent 3cb9f32ae2
commit 439eaa2482
25 changed files with 283 additions and 18 deletions

View File

@ -677,17 +677,17 @@ sub start_with_command {
# Open the DE application launcher and type the name of application into it. # Open the DE application launcher and type the name of application into it.
# Hit enter to run this application. # Hit enter to run this application.
my ($command) = @_; my ($command) = @_;
my $desktop = get_var('DESKTOP'); my $desktop = get_var('DESKTOP');
# Open the launching page or menu # Open the launching page or menu
if ($desktop eq 'xfce') { if ($desktop eq 'xfce') {
send_key 'alt-f2'; send_key 'alt-f2';
} }
else { else {
send_key 'alt-f1'; send_key 'alt-f1';
} }
sleep 2; sleep 2;
# Type the command name to run the application # Type the command name to run the application
type_very_safely $command; type_very_safely $command;

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"claws_runs"
],
"area": [
{
"xpos": 71,
"ypos": 69,
"width": 21,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"claws_save"
],
"area": [
{
"xpos": 540,
"ypos": 580,
"width": 23,
"height": 26,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB

View File

@ -0,0 +1,17 @@
{
"properties": [],
"tags": [
"claws_forward",
"claws_welcome",
""
],
"area": [
{
"xpos": 422,
"ypos": 581,
"width": 26,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"printer_runs"
],
"area": [
{
"xpos": 294,
"ypos": 257,
"width": 27,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 KiB

View File

@ -5,10 +5,10 @@
], ],
"area": [ "area": [
{ {
"xpos": 6, "xpos": 267,
"ypos": 37, "ypos": 39,
"width": 28, "width": 90,
"height": 20, "height": 17,
"type": "match" "type": "match"
} }
] ]

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"users_runs"
],
"area": [
{
"xpos": 130,
"ypos": 115,
"width": 27,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 741,
"ypos": 1,
"width": 169,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"graphical_desktop_clean",
"workspace"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"graphical_login",
"login_screen",
"DESKTOP-xfce",
"LANGUAGE-english"
],
"area": [
{
"xpos": 603,
"ypos": 428,
"width": 46,
"height": 18,
"type": "match"
}
]
}

BIN
needles/xfce/login_xfce.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 607,
"ypos": 421,
"width": 15,
"height": 10,
"type": "match"
},
{
"xpos": 601,
"ypos": 414,
"width": 45,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"xfce_live_login"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 457,
"ypos": 371,
"width": 209,
"height": 40,
"type": "match"
}
],
"properties": [],
"tags": [
"graphical_login_input"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

View File

@ -56,8 +56,20 @@ sub run {
} else { } else {
# on lives, we have to explicitly launch anaconda # on lives, we have to explicitly launch anaconda
if (get_var('LIVE')) { if (get_var('LIVE')) {
# Handle XFCE live login
if (get_var('DESKTOP') eq 'xfce') {
assert_and_click 'xfce_live_login';
wait_still_screen 5;
send_key 'alt-f2';
wait_still_screen 2;
type_very_safely 'liveinst';
send_key 'ret';
#assert_and_click("live_start_anaconda_icon", button => 'left', dclick => 1);
}
else {
assert_and_click "live_start_anaconda_icon", '', 300; assert_and_click "live_start_anaconda_icon", '', 300;
} }
}
my $language = get_var('LANGUAGE') || 'english'; my $language = get_var('LANGUAGE') || 'english';
# wait for anaconda to appear; we click to work around # wait for anaconda to appear; we click to work around
# RHBZ #1566066 if it happens # RHBZ #1566066 if it happens

View File

@ -0,0 +1,39 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Claws starts.
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
if ($mode eq 'fast') {
start_with_command 'claws-mail';
}
else {
#start_with_launcher('konsole_launch','menu_applications','menu_system');
sleep 1;
}
# Click through setup wizard
while (check_screen('claws_forward',1)) {
assert_and_click 'claws_forward';
wait_still_screen 2;
}
assert_and_click 'claws_save';
# Check that it is started
assert_screen 'claws_runs';
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,33 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Printer Settings starts.
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
if ($mode eq 'fast') {
start_with_command 'system-config-printer';
}
else {
#start_with_launcher('konsole_launch','menu_applications','menu_system');
sleep 1;
}
# Check that it is started
assert_screen 'printer_runs';
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -3,7 +3,7 @@ use strict;
use testapi; use testapi;
use utils; use utils;
# This test checks that application starts. # This test checks that Users starts.
sub run { sub run {
my $self = shift; my $self = shift;
@ -11,14 +11,14 @@ sub run {
# Start the application # Start the application
if ($mode eq 'fast') { if ($mode eq 'fast') {
start_with_command ''; start_with_command 'system_config_users';
} }
else { else {
#start_with_launcher('konsole_launch','menu_applications','menu_system'); #start_with_launcher('konsole_launch','menu_applications','menu_system');
sleep 1; sleep 1;
} }
# Check that it is started # Check that it is started
assert_screen '_runs'; assert_screen 'users_runs';
# Close the application # Close the application
quit_with_shortcut(); quit_with_shortcut();
} }

View File

@ -0,0 +1,33 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Users starts.
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
if ($mode eq 'fast') {
start_with_command 'system-config-users';
}
else {
#start_with_launcher('konsole_launch','menu_applications','menu_system');
sleep 1;
}
# Check that it is started
assert_screen 'users_runs';
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: