93af1c321d1681bf1c8bd08baaff93a426506c3d
[emufront] / doc / tests.txt
1 1. Start EmuFront
2 -----------------
3 - if database already exists move/remove it:
4
5         $ mv ~/emufront.db.sqlite ~/emufront.db.sqlite.bak
6
7 - start EmuFront from command line
8
9         $ emufront
10
11 > EmuFront main window opens
12         > File, Config & Help menu is shown
13         > empty combo box for selecting setups and emulators is shown
14         > empty area for filtered media image containers is shown
15
16 2. Set temporary directory
17 --------------------------
18 - Select 'Config->Temp dir'
19 > A file selector is opened, only folders can be selected
20 - Select a folder
21 > A messagebox is shown telling that the Temporary directory has been updated to selected folder.
22
23 3. Platform
24 -----------
25
26 3.1 Open platform editor
27 ------------------------
28 - Select 'Config->Set platforms'
29 > New view is opened with a title describing about setting platforms
30         > 'Add' and 'OK' buttons active
31         > 'Edit' and 'Delete' buttons disabled
32
33 3.2. Add platform
34 -----------------
35
36 3.2.1 Add platform (Legal input)
37 --------------------------------
38 - Click 'Add' button
39 > New entry is created to the platform table view
40         > The name field in the new row is activated for editing
41 - Type a platform name, e.g. 'Commodore 128' and press enter
42 > The name field presents the platform name
43         > editing is disabled 
44
45 3.2.2 Add platform (Equal name)
46 -------------------------------
47 - Click 'Add' button
48 > New entry is created to the platform table view
49         > The name field in the new row is activated for editing
50 - Type exactly the same platform name as in 3.2.1 press enter
51 > The input was not accepted 
52         > a message was shown telling that the name already exists
53         > The row being added is removed
54
55 3.2.3 Add platform (Empty name)
56 -------------------------------
57 - Click 'Add' button
58 > New entry is created to the platform table view
59         > The name field in the new row is activated for editing
60 - press enter without entering any character
61 > The input was not accepted 
62         > a message was shown telling that empty name is not accepted 
63         > The row being added is removed
64
65 3.2.4 Add platform (name with space chars only)
66 -----------------------------------------------
67 - Click 'Add' button
68 > New entry is created to the platform table view
69         > The name field in the new row is activated for editing
70 - Type an empty space for name and press enter
71 > The input was not accepted
72         > message was shown telling that empty name is not accepted 
73         > The row being added is removed
74
75 3.3. Edit platform
76 ------------------
77 Add a four platforms according to instructions in part 3.2
78
79 3.3.1. Edit platform by double clicking first row
80 -------------------------------------------------
81 - double click a platform name in the first row 
82 > The name field in the first row is activated for editing
83 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
84 > The name field presents the platform name
85         >editing is disabled 
86
87 3.3.2. Edit platform by double clicking 2nd row
88 -----------------------------------------------
89 - double click a platform name in the second row 
90 > The name field in the second row is activated for editing
91 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
92 > The name field presents the platform name
93         >editing is disabled 
94
95 3.3.3. Edit platform by double clicking last row
96 ------------------------------------------------
97 - double click a platform name in the last row 
98 > The name field in the last row is activated for editing
99 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
100 > The name field presents the platform name
101         >editing is disabled 
102
103 3.3.4. Edit platform using 'Edit' button, 1st row
104 -------------------------------------------------
105 - Select first row 
106 > Selected row is highlighted
107 > Edit button is activated
108 - Click edit button
109 > The name field in the selected is activated for editing
110 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
111 > The name field in the selected row presents the platform name
112         >editing is disabled 
113
114 3.3.5. Edit platform using 'Edit' button, 2nd row
115 -------------------------------------------------
116 - Select 2nd row 
117 > Selected row is highlighted
118 > Edit button is activated
119 - Click edit button
120 > The name field in the selected row is activated for editing
121 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
122 > The name field in the selected row presents the platform name
123         >editing is disabled 
124
125 3.3.6. Edit platform using 'Edit' button, last row
126 --------------------------------------------------
127 - Select last row 
128 > Selected row is highlighted
129 > Edit button is activated
130 - Click edit button
131 > The name field in the selected row is activated for editing
132 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
133 > The name field in the selected row presents the platform name
134         >editing is disabled 
135
136 3.3.1. Edit platform by entering empty name 
137 -------------------------------------------
138 - double click a platform name
139 > The name field in the first row is activated for editing
140 - clear all the characters from name, press enter
141 > The input was not accepted 
142         > a message was shown telling that empty name is not accepted 
143         > The original name is restored 
144
145 3.3.1. Edit platform by entering name  with spaces only
146 -------------------------------------------------------
147 - double click a platform name
148 > The name field in the first row is activated for editing
149 - clear all the characters from name and enter an empty space for the name, press enter
150 > The input was not accepted 
151         > a message was shown telling that empty name is not accepted 
152         > The original name is restored 
153
154 3.3.1. Edit platform by entering an equal name to existing name
155 ---------------------------------------------------------------
156 - double click a platform name
157 > The name field in the first row is activated for editing
158 - Change the name to match an existing name in another row, press enter
159 > The input was not accepted 
160         > a message was shown telling that the name already exists
161         > The original name is restored 
162
163 3.4. Delete platform
164 --------------------
165
166 3.3.1. Delete platform, 2nd row
167 -------------------------------
168 - Select 2nd row 
169 > Selected row is highlighted
170 > Delete button is activated
171 - Click Delete button
172 > Confirmation dialog is presented
173 - Select 'No'
174 > Deleting is aborted and the platform entry remains
175 - Select the same row, click delete button, answer 'Yes'
176 > Platform was removed from the table view
177
178 3.3.1. Delete platform, last row
179 --------------------------------
180 - Select last row 
181 > Selected row is highlighted
182 > Delete button is activated
183 - Click Delete button
184 > Confirmation dialog is presented
185 - Select 'No'
186 > Deleting is aborted and the platform entry remains
187 - Select the same row, click delete button, answer 'Yes'
188 > Platform was removed from the table view
189
190 3.3.1. Delete platform, 1st row
191 -------------------------------
192 - Select first row 
193 > Selected row is highlighted
194 > Delete button is activated
195 - Click Delete button
196 > Confirmation dialog is presented
197 - Select 'No'
198 > Deleting is aborted and the platform entry remains
199 - Select the same row, click delete button, answer 'Yes'
200 > Platform was removed from the table view
201
202 4. Media Types
203 --------------
204
205
206
207 X. Setupview
208 ------------
209
210 1:
211 - Add new setup when no platform or media types are yet added
212 Result:
213 - Shows error that no platform or media types are not added
214 - New row is not created
215
216 2:
217 - Add new setup when any platforms are not yet added
218 Result:
219 - Shows error that any platform is not available 
220 - New row is not created
221
222 3:
223 - Add new setup when any media types are not yet added
224 Result:
225 - Shows error that any media type is not available 
226 - New row is not created