mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-16 12:34:32 +00:00
Add some tests and their needles.
This commit is contained in:
parent
eaedad5efa
commit
3cb9f32ae2
15
needles/xfce/apps/dnfdragora_runs.json
Normal file
15
needles/xfce/apps/dnfdragora_runs.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"dnfdragora_runs"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 6,
|
||||
"ypos": 38,
|
||||
"width": 32,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/xfce/apps/dnfdragora_runs.png
Normal file
BIN
needles/xfce/apps/dnfdragora_runs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
15
needles/xfce/apps/firewall_runs.json
Normal file
15
needles/xfce/apps/firewall_runs.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"firewall_runs"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 34,
|
||||
"ypos": 96,
|
||||
"width": 30,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/xfce/apps/firewall_runs.png
Normal file
BIN
needles/xfce/apps/firewall_runs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 254 KiB |
15
needles/xfce/apps/language_runs.json
Normal file
15
needles/xfce/apps/language_runs.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"language_runs"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 7,
|
||||
"ypos": 37,
|
||||
"width": 26,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/xfce/apps/language_runs.png
Normal file
BIN
needles/xfce/apps/language_runs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 KiB |
15
needles/xfce/apps/settings_runs.json
Normal file
15
needles/xfce/apps/settings_runs.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_runs"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 194,
|
||||
"ypos": 112,
|
||||
"width": 29,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/xfce/apps/settings_runs.png
Normal file
BIN
needles/xfce/apps/settings_runs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 438 KiB |
15
needles/xfce/apps/thunar_runs.json
Normal file
15
needles/xfce/apps/thunar_runs.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"thunar_runs"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 6,
|
||||
"ypos": 37,
|
||||
"width": 28,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/xfce/apps/thunar_runs.png
Normal file
BIN
needles/xfce/apps/thunar_runs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 387 KiB |
35
tests/apps_startstop/xfce/dnfdragora.pm
Normal file
35
tests/apps_startstop/xfce/dnfdragora.pm
Normal file
@ -0,0 +1,35 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test checks that DnfDragora starts.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $mode = get_var('MODE');
|
||||
|
||||
# Start the application
|
||||
if ($mode eq 'fast') {
|
||||
start_with_command 'dnfdragora';
|
||||
}
|
||||
else {
|
||||
#start_with_launcher('konsole_launch','menu_applications','menu_system');
|
||||
sleep 1;
|
||||
}
|
||||
# Wait some time for repo information to download
|
||||
sleep 20;
|
||||
# Check that it is started
|
||||
assert_screen 'dnfdragora_runs';
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
36
tests/apps_startstop/xfce/firewall.pm
Normal file
36
tests/apps_startstop/xfce/firewall.pm
Normal file
@ -0,0 +1,36 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test checks that Firewall starts.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $mode = get_var('MODE');
|
||||
|
||||
# Start the application
|
||||
if ($mode eq 'fast') {
|
||||
start_with_command 'firewall-config';
|
||||
}
|
||||
else {
|
||||
#start_with_launcher('konsole_launch','menu_applications','menu_system');
|
||||
sleep 1;
|
||||
}
|
||||
# Insert password to start the application
|
||||
type_very_safely(get_var('ROOT_PASSWORD','weakpassword'));
|
||||
send_key 'ret';
|
||||
# Check that it is started
|
||||
assert_screen 'firewall_runs';
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
36
tests/apps_startstop/xfce/language.pm
Normal file
36
tests/apps_startstop/xfce/language.pm
Normal file
@ -0,0 +1,36 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test checks that Language settings starts.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $mode = get_var('MODE');
|
||||
|
||||
# Start the application
|
||||
if ($mode eq 'fast') {
|
||||
start_with_command 'system-config-language';
|
||||
}
|
||||
else {
|
||||
#start_with_launcher('konsole_launch','menu_applications','menu_system');
|
||||
sleep 1;
|
||||
}
|
||||
# Enter password in order to start the application
|
||||
type_very_safely(get_var('ROOT_PASSWORD','weakpassword'));
|
||||
send_key 'ret';
|
||||
# Check that it is started
|
||||
assert_screen 'language_runs';
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
33
tests/apps_startstop/xfce/specimen.pm
Normal file
33
tests/apps_startstop/xfce/specimen.pm
Normal file
@ -0,0 +1,33 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test checks that application starts.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $mode = get_var('MODE');
|
||||
|
||||
# Start the application
|
||||
if ($mode eq 'fast') {
|
||||
start_with_command '';
|
||||
}
|
||||
else {
|
||||
#start_with_launcher('konsole_launch','menu_applications','menu_system');
|
||||
sleep 1;
|
||||
}
|
||||
# Check that it is started
|
||||
assert_screen '_runs';
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
33
tests/apps_startstop/xfce/thunar.pm
Normal file
33
tests/apps_startstop/xfce/thunar.pm
Normal file
@ -0,0 +1,33 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test checks that XCFE4-FileManager starts.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $mode = get_var('MODE');
|
||||
|
||||
# Start the application
|
||||
if ($mode eq 'fast') {
|
||||
start_with_command 'thunar';
|
||||
}
|
||||
else {
|
||||
#start_with_launcher('konsole_launch','menu_applications','menu_system');
|
||||
sleep 1;
|
||||
}
|
||||
# Check that it is started
|
||||
assert_screen 'thunar_runs';
|
||||
# Close the application
|
||||
quit_with_shortcut();
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
Loading…
Reference in New Issue
Block a user