Skip to content

Commit 9ce8c7c

Browse files
Merge pull request #258 from bbcmicrobit/manual-test
Tests: Update manual test procedure with new filename and WebUSB test case
2 parents 3b2f37a + b5226b6 commit 9ce8c7c

File tree

1 file changed

+34
-23
lines changed

1 file changed

+34
-23
lines changed

tests/manual/test-procedure.rst

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Nomenclature and Definitions
4545

4646
- **Test Case**: A set of test steps to verify a related set of conditions.
4747

48+
- **Program by any method**: Write a file onto the micro:bit. This can be done by dragging the
49+
file into the MICROBIT drive or through the connect button.
50+
4851

4952
Preparation
5053
-----------
@@ -58,13 +61,14 @@ the "Test Cases" opening paragraphs carefully.
5861
You will need
5962
'''''''''''''
6063

61-
- Internet Explorer 10
64+
- Internet Explorer 10: non-Chrome-based.
6265

63-
- A modern version of Edge
66+
- A modern version of Edge: Edge v44 or lower: non-Chrome-based.
67+
Edge v77 or higher: Chrome-based.
6468

65-
- A modern version of Chrome
69+
- A modern version of Chrome: Chrome-based.
6670

67-
- A modern version of Firefox
71+
- A modern version of Firefox: non-Chrome-based.
6872

6973
- A text editor (the one included in most operating systems is fine).
7074

@@ -95,17 +99,10 @@ You will need
9599
Tests Execution
96100
---------------
97101

98-
All Test Cases have to be run in one of the browsers listed in the
99-
"Preparation" section, and AT LEAST the following Test Cases have to be run
100-
in all of the other browsers as well:
101-
102-
- Hex file can be generated
103-
- Generated hex file can be loaded to the editor
104-
- Python file can be saved
105-
- Saved Python file can be loaded to the editor
106-
- Snippets inject code into the Text Editor
107-
- Help menu expands and links work
108-
- Zoom changes the Text Editor font size
102+
For a Primary Editor release run all the tests in all browsers. For a Beta
103+
Editor release, run all tests in Internet Explorer 10, except for the
104+
"Connect and Flash over WebUSB and use REPL" test case, which has to be run
105+
in a Chrome-based browser.
109106

110107
Start each test case in a new instance of the Python Editor.
111108

@@ -120,8 +117,8 @@ and that different Test Cases will use different methods.
120117
Test Case: Hex file can be generated
121118
''''''''''''''''''''''''''''''''''''
122119
- Click the "Download" button.
123-
- [ ] Confirm the file downloaded is named "microbit.hex".
124-
- Flash the downloaded hex file into a micro:bit.
120+
- [ ] Confirm the file downloaded is named "microbit_program.hex".
121+
- Program by any method the downloaded hex file into a micro:bit.
125122
- [ ] Confirm the micro:bit displays "Hello, World!" followed by a heart.
126123
- Save this hex file for the following test case.
127124

@@ -180,7 +177,7 @@ Code block 1::
180177
Test Case: Python file can be saved
181178
'''''''''''''''''''''''''''''''''''
182179
- Click the "Save" button.
183-
- [ ] Confirm the file downloaded is named "microbit.py".
180+
- [ ] Confirm the file downloaded is named "microbit_program.py".
184181
- Open the contents in a text editor from your operating system.
185182
- [ ] Confirm the file contains the exact contents defined in the "Code block
186183
1" at the bottom of this Test Case.
@@ -271,7 +268,7 @@ Test Case: module.py file can be loaded by file picker and used in main.py
271268
sleep(2000)
272269
sleep(100)
273270

274-
- [ ] Flash this file to the micro:bit and confirm that it behaves as expected,
271+
- [ ] Program by any method this file to the micro:bit and confirm that it behaves as expected,
275272
showing emojis for the appropriate gestures and buttons.
276273

277274

@@ -298,7 +295,7 @@ Test Case: module.py file can be 'magically' loaded into the editor by drag&drop
298295
sleep(2000)
299296
sleep(100)
300297

301-
- [ ] Flash this file to the micro:bit and confirm that it behaves as expected,
298+
- [ ] Program by any method this file to the micro:bit and confirm that it behaves as expected,
302299
showing emojis for the appropriate gestures and buttons.
303300

304301

@@ -325,7 +322,7 @@ Test Case: module.py file can be loaded by Load/Save modal drag&drop and used in
325322
sleep(2000)
326323
sleep(100)
327324

328-
- [ ] Flash this file to the micro:bit and confirm that it behaves as expected,
325+
- [ ] Program by any method this file to the micro:bit and confirm that it behaves as expected,
329326
showing emojis for the appropriate gestures and buttons.
330327

331328

@@ -335,15 +332,15 @@ Test Case: Hex file containing module can be loaded in the editor
335332
- [ ] In the Load/Save modal, confirm the editor has loaded the
336333
``emoji-example.py (main.py)`` and ``emoji.py`` files.
337334
- [ ] Confirm that each .py file can be downloaded individually.
338-
- [ ] Confirm that the emoji.py file can be deleted, then re-flash the file
335+
- [ ] Confirm that the emoji.py file can be deleted, then program the file by any method.
339336
to the micro:bit and confirm that an exception is thrown.
340337

341338

342339
Test Case: Empty script downloads MicroPython interpreter only
343340
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
344341
- Remove all the content from the Text Editor.
345342
- Click the "Download" button.
346-
- Flash the downloaded hex file into a micro:bit.
343+
- Program by any method the downloaded hex file into a micro:bit.
347344
- Connect to the REPL.
348345
- With the serial connection opened, press the micro:bit reset button.
349346
- [ ] Confirm the micro:bit restarted and that it went straight to the REPL.
@@ -391,13 +388,27 @@ Test Case: Zoom changes the Text Editor font size
391388

392389
Test Case: Connect and Flash over WebUSB and use REPL
393390
'''''''''''''''''''''''''''''''''''''''''''''''''''''
391+
Carry out this test in Chrome or a Chrome-powered browser:
394392
- [ ] Connect to micro:bit and confirm that menu now shows options to "Flash" and "Disconnect".
395393
- [ ] Confirm you can flash the default program to the micro:bit via WebUSB and that it behaves as expected.
396394
- [ ] "Open Serial" and confirm you can enter the REPL by click or CTRL-C.
397395
- [ ] Type ``help()`` and confirm that you see a result.
398396
- [ ] Disconnect and confirm that menu returns to "Download" and "Connect".
399397

400398

399+
Test Case: WebUSB not supported message is working
400+
''''''''''''''''''''''''''''''''''''''''''''''''''
401+
Carry out this test in non-Chrome-based browsers
402+
- Click the 'Connect' button .
403+
- [ ] Confirm the WebUSB not supported message box is displayed.
404+
- Click the 'Open Serial' button.
405+
- [ ] Confirm the WebUSB not supported message box is displayed.
406+
- Click the 'Find Out More' link.
407+
- [ ] Confirm the help.html page is opened on the WebUSB section.
408+
- Click outside the modal.
409+
- [ ] Confirm the modal closes.
410+
411+
401412
Test Case: Autocomplete
402413
'''''''''''''''''''''''
403414
- [ ] Start typing in the editor and confirm that autocomplete offers suggestions

0 commit comments

Comments
 (0)