Add test to install Windows
15
needles/windows/win_setup_click_user.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_click_user"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 75,
|
||||
"ypos": 315,
|
||||
"width": 75,
|
||||
"height": 18,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_click_user.png
Normal file
After Width: | Height: | Size: 10 KiB |
15
needles/windows/win_setup_custom_install.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_custom_install"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 243,
|
||||
"ypos": 323,
|
||||
"width": 98,
|
||||
"height": 17,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_custom_install.png
Normal file
After Width: | Height: | Size: 28 KiB |
15
needles/windows/win_setup_eula_accept.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_eula_accept"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 238,
|
||||
"ypos": 499,
|
||||
"width": 64,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_eula_accept.png
Normal file
After Width: | Height: | Size: 34 KiB |
15
needles/windows/win_setup_express_settings.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_express_settings"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 808,
|
||||
"ypos": 661,
|
||||
"width": 83,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_express_settings.png
Normal file
After Width: | Height: | Size: 20 KiB |
15
needles/windows/win_setup_install.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_install"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 475,
|
||||
"ypos": 385,
|
||||
"width": 76,
|
||||
"height": 17,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_install.png
Normal file
After Width: | Height: | Size: 15 KiB |
15
needles/windows/win_setup_local_account.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_local_account"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 75,
|
||||
"ypos": 304,
|
||||
"width": 36,
|
||||
"height": 36,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_local_account.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
15
needles/windows/win_setup_logged.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_logged"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 4,
|
||||
"ypos": 732,
|
||||
"width": 104,
|
||||
"height": 34,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_logged.png
Normal file
After Width: | Height: | Size: 194 KiB |
15
needles/windows/win_setup_next.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_next"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 745,
|
||||
"ypos": 545,
|
||||
"width": 53,
|
||||
"height": 15,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_next.png
Normal file
After Width: | Height: | Size: 22 KiB |
15
needles/windows/win_setup_next_blue.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"win_setup_next_blue"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 880,
|
||||
"ypos": 663,
|
||||
"width": 44,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/windows/win_setup_next_blue.png
Normal file
After Width: | Height: | Size: 11 KiB |
61
tests/windows_install.pm
Normal 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:
|