mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 13:33:08 +00:00
Create the functionality test for Terminal
This commit is contained in:
parent
2ca16ff759
commit
1a23f964b6
15
needles/gnome/functionality/terminal_command_success.json
Normal file
15
needles/gnome/functionality/terminal_command_success.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 198,
|
||||
"ypos": 211,
|
||||
"width": 29,
|
||||
"height": 14,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"terminal_command_success"
|
||||
]
|
||||
}
|
BIN
needles/gnome/functionality/terminal_command_success.png
Normal file
BIN
needles/gnome/functionality/terminal_command_success.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 349 KiB |
36
tests/functionality_terminal.pm
Normal file
36
tests/functionality_terminal.pm
Normal file
@ -0,0 +1,36 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test tests if Terminal starts (via using Activities and its prompt) and performs several tasks to prove basic functionality of the application.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
send_key 'alt-f1';
|
||||
# wait out animations
|
||||
wait_still_screen 2;
|
||||
# start the application
|
||||
type_very_safely 'terminal';
|
||||
send_key 'ret';
|
||||
wait_still_screen 2;
|
||||
# When the application opens, run a command to see that it accepts commands
|
||||
type_very_safely 'ls /';
|
||||
send_key 'ret';
|
||||
wait_still_screen 2;
|
||||
assert_screen 'terminal_command_success';
|
||||
# close the application
|
||||
send_key 'alt-f4';
|
||||
}
|
||||
|
||||
# If this test fails, the others will probably start failing too,
|
||||
# so there is no need to continue.
|
||||
# Also, when subsequent tests fail, the suite will revert to this state for further testing.
|
||||
|
||||
#sub test_flags {
|
||||
# return { fatal => 1, milestone => 1 };
|
||||
#}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
@ -21,7 +21,7 @@ sub run {
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return { fatal => 1 };
|
||||
return { fatal => 1, milestone => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user