1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-20 23:53:10 +00:00

Add test to install Windows

This commit is contained in:
Sodalite 2019-11-01 16:00:30 +01:00 committed by Lukáš Růžička
parent 4f72d4ebd3
commit e85c9d225a
19 changed files with 196 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_click_user"
],
"area": [
{
"xpos": 75,
"ypos": 315,
"width": 75,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_custom_install"
],
"area": [
{
"xpos": 243,
"ypos": 323,
"width": 98,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_eula_accept"
],
"area": [
{
"xpos": 238,
"ypos": 499,
"width": 64,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_express_settings"
],
"area": [
{
"xpos": 808,
"ypos": 661,
"width": 83,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_install"
],
"area": [
{
"xpos": 475,
"ypos": 385,
"width": 76,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_local_account"
],
"area": [
{
"xpos": 75,
"ypos": 304,
"width": 36,
"height": 36,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_logged"
],
"area": [
{
"xpos": 4,
"ypos": 732,
"width": 104,
"height": 34,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_next"
],
"area": [
{
"xpos": 745,
"ypos": 545,
"width": 53,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"win_setup_next_blue"
],
"area": [
{
"xpos": 880,
"ypos": 663,
"width": 44,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

61
tests/windows_install.pm Normal file
View File

@ -0,0 +1,61 @@
use base "anacondatest";
use strict;
use testapi;
use utils;
use Time::HiRes qw( usleep );
sub run {
my $self = shift;
# Check whether we have arrived in the main installation screen.
assert_screen "win_setup_main", 300; #
# Set up keyboard layouts or languages. For our purposes, a simple
# click on the Next button will do.
assert_and_click "win_setup_next", 20;
# Start installation
assert_and_click "win_setup_install", 30;
# Accept the EULA.
assert_and_click "win_setup_eula_accept", 30;
assert_and_click "win_setup_next", 20;
# Select the custom installation
assert_and_click "win_setup_custom_install", 30;
# The drive 0 will always be empty, so just click Next to continue
assert_and_click "win_setup_next", 20;
# Use Express setting to set up the installation, we do not really
# care about it.
assert_and_click "win_setup_express_settings", 600;
# Join a local domain
assert_and_click "win_setup_local_account", 600;
assert_and_click "win_setup_next", 20;
# Fill-in account info
assert_and_click "win_setup_click_user", 30;
type_very_safely "fedora";
send_key "tab";
sleep 1;
type_very_safely "weakpassword";
send_key "tab";
sleep 1;
type_very_safely "weakpassword";
send_key "tab";
sleep 1;
type_very_safely "usual";
# Check if booted
assert_screen "win_setup_logged", 600;
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: