File: general.feature

package info (click to toggle)
gnome-boxes 49.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,836 kB
  • sloc: python: 883; ansic: 802; sh: 487; xml: 327; makefile: 14
file content (182 lines) | stat: -rw-r--r-- 5,680 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
Feature: General

  Background:
    * Make sure that gnome-boxes is running
    * Wait until overview is loaded

  @open_help_via_shortcut
  Scenario: Open help via shortcut
    * Hit "<F1>"
    Then Help is shown

  @open_help_via_menu
  Scenario: Open help from menu
    * Select "Help" from supermenu
    Then Help is shown

  @open_about_via_menu
  Scenario: Open about from menu
    * Select "About" from supermenu
    * Press "Credits"
    * Press "About"
    Then About is shown

  @quit_via_panel
  Scenario: Quit Boxes via super menu
    * Select "Quit" from supermenu
    Then Boxes are not running

  @quit_via_shortcut
  Scenario: Quit Boxes via shortcut
    * Select "Quit" from supermenu
    Then Boxes are not running

  @no_boxes
  Scenario: No boxes installed
    Then No box is visible

  @download_iso_http
  Scenario: Download iso http
    * Create new box from url "http://ftp.vim.org/os/Linux/distr/tinycorelinux/5.x/x86/archive/5.2/Core-5.2.iso"
    * Wait for "sleep 10" end
    * Hit "Enter"
    * Save IP for machine "Core-5"
    * Press "back" in "Core-5" vm
    Then Box "Core-5" "does" exist
    Then Ping "Core-5"

  @customize_machine_before_installation
  Scenario: Customize machine before installation
    * Create new box from menu "Core-5"
    * Customize mem to "64.0" MB
    * Press "Create"
    * Wait for "sleep 10" end
    Then "65536 KiB" is visible with command "DOM=$(virsh list |grep boxes |awk {'print $1'}); virsh dominfo $DOM"

  @rename_via_button
  Scenario: Rename via button
    * Initiate new box "Core-5" installation
    * Launch "Properties" for "Core-5" box
    * Rename "Core-5" to "Kernel-6" via "button"
    * Hit "Esc"
    * Quit Boxes
    * Start Boxes
    Then Box "Kernel-6" "does" exist

  @rename_via_label
  Scenario: Rename via label
    * Initiate new box "Core-5" installation
    * Launch "Properties" for "Core-5" box
    * Rename "Core-5" to "Kernel-6" via "label"
    * Hit "Esc"
    * Quit Boxes
    * Start Boxes
    Then Box "Kernel-6" "does" exist

  @start_box_from_console
  Scenario: Start box directly from console
    * Create new box "Core-5"
    Then Ping "Core-5"
    * Quit Boxes
    * Start box name "Core-5"
    * Type text "sudo ifconfig eth0 down" and return
    * Wait for "sleep 4" end
    Then Cannot ping "Core-5"

  @search_via_shortcut
  Scenario: Search via shotcut
    * Initiate new box "Core-5" installation
    * Initiate new box "Core-5 2" installation from "Core-5" menuitem
    * Hit "<Ctrl><f>"
    * Type text "Core-5 2" and return
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5" "does not" exist
    * Hit "<Ctrl><a>"
    * Type text "Core" and return
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5" "does" exist

  @search_via_button
  Scenario: Search via button
    * Initiate new box "Core-5" installation
    * Initiate new box "Core-5 2" installation from "Core-5" menuitem
    * Press "Search"
    * Type text "Core-5 2" and return
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5" "does not" exist
    * Hit "<Ctrl><a>"
    * Type text "Core" and return
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5" "does" exist

  @search_escape
  Scenario: Return from search via Esc
    * Initiate new box "Core-5" installation
    * Initiate new box "Core-5 2" installation from "Core-5" menuitem
    * Hit "<Ctrl><f>"
    * Type text "Core-5 2" and return
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5" "does not" exist
    * Hit "Esc"
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5" "does" exist

  @selections
  Scenario: Selection menu
    * Initiate new box "Core-5" installation
    * Initiate new box "Core-5 2" installation from "Core-5" menuitem
    * Initiate new box "Core-5 3" installation from "Core-5" menuitem
    * Select "Core-5 2" box
    * Select "Core-5 3" box
    * Press "Pause"
    * Wait for "sleep 2" end
    * Press "Select Items"
    * Press "(Click on items to select them)"
    * Press "Select All"
    * Press "3 selected"
    * Press "Select None"
    * Press "(Click on items to select them)"
    * Press "Select Running"
    * Press "Delete"
    * Close warning
    Then Box "Core-5" "does not" exist
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5 3" "does" exist
    * Press "Select Items"
    * Press "(Click on items to select them)"
    * Press "Select All"
    * Press "Delete"
    * Close warning
    Then Box "Core-5" "does not" exist
    Then Box "Core-5 2" "does not " exist
    Then Box "Core-5 3" "does not" exist

  @send_keycombos
  Scenario: Send key combos
    * Create new box from menu "Core-5"
    * Press "Create"
    * Wait for "sleep 3" end
    * Hit "Enter"
    * Save IP for machine "Core-5"
    * Install TC Linux package "distro.ibiblio.org/tinycorelinux/3.x/tcz/showkey.tcz" and wait "1" seconds
    * Start showkey signal recording
    * Press "Send key combinations" in "Core-5" vm
    * Press "Ctrl + Alt + Backspace" in "Core-5" vm
    * Press "Send key combinations" in "Core-5" vm
    * Press "Ctrl + Alt + F1" in "Core-5" vm
    * Press "Send key combinations" in "Core-5" vm
    * Press "Ctrl + Alt + F2" in "Core-5" vm
    * Press "Send key combinations" in "Core-5" vm
    * Press "Ctrl + Alt + F7" in "Core-5" vm
    # showkey ends automatically after 10 seconds w/o signals
    * Wait for "sleep 9" end
    * Focus VM
    # If all signals received as expected turn down network
    Then Verify previously recorded signals
    # and network should be unreachable from outside
    Then Cannot ping "Core-5"

### TBD ###
  # local_machine_paused_after_quit
  # detach_from_system_broker
  # add_machine_from_system_broker_via_url