1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-03 10:33:09 +00:00
os-autoinst-distri-fedora/tests/remote_desktop_client.pm

57 lines
1.4 KiB
Perl
Raw Normal View History

2024-09-06 12:46:25 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This test uses a Connections application to establish an
# RDP connection to a remote computer running Gnome Workstation.
2024-09-06 12:46:25 +00:00
sub run {
my $self = shift;
my $user = "";
my $password = "";
my $ip = "";
2024-09-06 12:46:25 +00:00
# Switch to console and perform settings.
2024-09-06 12:46:25 +00:00
$self->root_console(tty => 3);
assert_script_run("hostnamectl set-hostname pawn");
# Return to the desktop
desktop_vt();
# Open the Connections and start the connection.
menu_launch_type("connections");
wait_still_screen(3);
assert_screen("connections_runs");
assert_and_click("connections_add_connection");
type_very_safely($ip);
assert_and_click("gnome_button_connect");
# Log onto the system.
assert_screen("connection_authorization");
assert_and_click("connection_namefield");
type_very_safely($user);
send_key("tab");
send_key("tab");
type_very_safely($password);
assert_and_click("connection_authenticate");
wait_still_screen(3);
send_key("ret");
type_very_safely("$syspw\n");
wait_still_screen(2);
# Start the terminal
type_very_safely("terminal\n");
wait_still_screen(3);
# Check that we are on the correct computer.
# We can tell from the terminal prompt.
assert_screen("freerdp_desktop_connected");
2024-09-06 12:46:25 +00:00
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: