diff --git a/needles/windows/win_setup_click_user.json b/needles/windows/win_setup_click_user.json new file mode 100644 index 00000000..32b25a42 --- /dev/null +++ b/needles/windows/win_setup_click_user.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_click_user" + ], + "area": [ + { + "xpos": 75, + "ypos": 315, + "width": 75, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_click_user.png b/needles/windows/win_setup_click_user.png new file mode 100644 index 00000000..2a09ec7b Binary files /dev/null and b/needles/windows/win_setup_click_user.png differ diff --git a/needles/windows/win_setup_custom_install.json b/needles/windows/win_setup_custom_install.json new file mode 100644 index 00000000..e3208268 --- /dev/null +++ b/needles/windows/win_setup_custom_install.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_custom_install" + ], + "area": [ + { + "xpos": 243, + "ypos": 323, + "width": 98, + "height": 17, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_custom_install.png b/needles/windows/win_setup_custom_install.png new file mode 100644 index 00000000..8b633563 Binary files /dev/null and b/needles/windows/win_setup_custom_install.png differ diff --git a/needles/windows/win_setup_eula_accept.json b/needles/windows/win_setup_eula_accept.json new file mode 100644 index 00000000..93848dc4 --- /dev/null +++ b/needles/windows/win_setup_eula_accept.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_eula_accept" + ], + "area": [ + { + "xpos": 238, + "ypos": 499, + "width": 64, + "height": 23, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_eula_accept.png b/needles/windows/win_setup_eula_accept.png new file mode 100644 index 00000000..c0397b6b Binary files /dev/null and b/needles/windows/win_setup_eula_accept.png differ diff --git a/needles/windows/win_setup_express_settings.json b/needles/windows/win_setup_express_settings.json new file mode 100644 index 00000000..5fc28bed --- /dev/null +++ b/needles/windows/win_setup_express_settings.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_express_settings" + ], + "area": [ + { + "xpos": 808, + "ypos": 661, + "width": 83, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_express_settings.png b/needles/windows/win_setup_express_settings.png new file mode 100644 index 00000000..10d04819 Binary files /dev/null and b/needles/windows/win_setup_express_settings.png differ diff --git a/needles/windows/win_setup_install.json b/needles/windows/win_setup_install.json new file mode 100644 index 00000000..9414fec8 --- /dev/null +++ b/needles/windows/win_setup_install.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_install" + ], + "area": [ + { + "xpos": 475, + "ypos": 385, + "width": 76, + "height": 17, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_install.png b/needles/windows/win_setup_install.png new file mode 100644 index 00000000..abc597bd Binary files /dev/null and b/needles/windows/win_setup_install.png differ diff --git a/needles/windows/win_setup_local_account.json b/needles/windows/win_setup_local_account.json new file mode 100644 index 00000000..f5675ce2 --- /dev/null +++ b/needles/windows/win_setup_local_account.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_local_account" + ], + "area": [ + { + "xpos": 75, + "ypos": 304, + "width": 36, + "height": 36, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_local_account.png b/needles/windows/win_setup_local_account.png new file mode 100644 index 00000000..bd3b258a Binary files /dev/null and b/needles/windows/win_setup_local_account.png differ diff --git a/needles/windows/win_setup_logged.json b/needles/windows/win_setup_logged.json new file mode 100644 index 00000000..a7ba4c57 --- /dev/null +++ b/needles/windows/win_setup_logged.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_logged" + ], + "area": [ + { + "xpos": 4, + "ypos": 732, + "width": 104, + "height": 34, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_logged.png b/needles/windows/win_setup_logged.png new file mode 100644 index 00000000..aae9bb57 Binary files /dev/null and b/needles/windows/win_setup_logged.png differ diff --git a/needles/windows/win_setup_next.json b/needles/windows/win_setup_next.json new file mode 100644 index 00000000..f3df79fa --- /dev/null +++ b/needles/windows/win_setup_next.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_next" + ], + "area": [ + { + "xpos": 745, + "ypos": 545, + "width": 53, + "height": 15, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_next.png b/needles/windows/win_setup_next.png new file mode 100644 index 00000000..b445eca6 Binary files /dev/null and b/needles/windows/win_setup_next.png differ diff --git a/needles/windows/win_setup_next_blue.json b/needles/windows/win_setup_next_blue.json new file mode 100644 index 00000000..62e74955 --- /dev/null +++ b/needles/windows/win_setup_next_blue.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "win_setup_next_blue" + ], + "area": [ + { + "xpos": 880, + "ypos": 663, + "width": 44, + "height": 19, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/windows/win_setup_next_blue.png b/needles/windows/win_setup_next_blue.png new file mode 100644 index 00000000..d600d453 Binary files /dev/null and b/needles/windows/win_setup_next_blue.png differ diff --git a/tests/windows_install.pm b/tests/windows_install.pm new file mode 100644 index 00000000..ac7e8466 --- /dev/null +++ b/tests/windows_install.pm @@ -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: