Skip to content

Commit ba5d91d

Browse files
BLE & WebUSB test updates based on review comments.
1 parent b29897d commit ba5d91d

File tree

2 files changed

+52
-46
lines changed

2 files changed

+52
-46
lines changed

docs/release-tests/ble-flashing.md

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Test preparations
44

5-
Three hex files needed:
6-
- "Meet the micro:bit": This is the program that runs on the micro:bit when
5+
Four hex files needed:
6+
- "Meet the micro:bit": This is the programme that runs on the micro:bit when
77
it is first powered on from factory.
88
- Downloadable from the micro:bit website:
99
https://microbit.org/get-started/user-guide/meet-the-microbit-program/
10-
- "Out of Box": The previous factory program before the
10+
- "Out of Box": The previous factory programme before the
1111
"Meet the micro:bit" was released.
1212
- Downloadable from the micro:bit website:
1313
https://microbit.org/get-started/user-guide/meet-the-microbit-program/
@@ -22,18 +22,29 @@ Three hex files needed:
2222

2323
Two mobile/tablet devices needed:
2424
- Android device with the micro:bit app installed.
25-
- To load a different MakeCode URL long touch the micro:bit logo in the
26-
app main screen and a modal will appear with the option change
25+
- To load a different MakeCode URL, long touch the micro:bit logo in the
26+
app main screen and a modal will appear with the option to change
2727
- iOS device with the micro:bit app installed.
28-
- To load a different MakeCode URL long press the MakeCode back chevron
28+
- To load a different MakeCode URL, long press the MakeCode back chevron
2929
to choose beta.
3030

31-
## Test 1: Full flashing with Bluetooth from "Out of Box" and "Meet the micro:bit"
31+
Two micro:bits needed:
32+
- micro:bit V1
33+
- micro:bit V2
34+
35+
The micro:bits can be powered via USB for these tests, as that avoids any
36+
possible issues or errors due to low batteries.
37+
38+
## Test 1: Full & partial flashing with Bluetooth
3239

3340
This test should be carried out with:
3441
- Android app
3542
- iOS app
3643

44+
And the following micro:bit versions:
45+
- micro:bit V1
46+
- micro:bit V2
47+
3748
A test run for each of these hex files is required:
3849
- "Out of Box" hex file
3950
- "Meet the micro:bit" hex file
@@ -43,36 +54,23 @@ A test run for each of these hex files is required:
4354
Steps:
4455
1. Connect the micro:bit to the computer via USB.
4556
2. Copy the hex file under test to the `MICROBIT` USB drive.
46-
3. Disconnect the micro:bit from the computer and connect a battery pack.
47-
4. Open the app and load the MakeCode editor under tests.
48-
- Instructions will be added soon.
49-
5. Create a new MakeCode project with a simple program (e.g. display
57+
3. Open the app and load the MakeCode editor under test.
58+
- From the front page, select "Create Code"
59+
4. Create a new MakeCode project with a simple programme (e.g. display
5060
something on the LED matrix).
51-
6. Click the "Download" button.
52-
7. Follow the connection instructions to connect the micro:bit via Bluetooth
53-
and download the program.
54-
8. Verify that the program runs on the micro:bit.
55-
56-
## Test 2: Partial flashing
57-
58-
Test 1 has to be performed inmediately before this test to ensure the micro:bit
59-
is in a known state.
60-
61-
This test should be carried out with:
62-
- Android app
63-
- iOS app
64-
65-
Steps:
66-
1. Follow steps from Test 1.
67-
2. Change the blocks in the MakeCode editor to do something different
61+
- If a programme has already been created from a previous test run,
62+
it can be reused.
63+
5. Tap the "Download" button and follow the instructions to connect the
64+
micro:bit via Bluetooth and flash the programme.
65+
6. Verify the programme is running on the micro:bit.
66+
7. Change the blocks in the MakeCode editor to do something different
6867
(e.g. display a different icon/message on the LED matrix).
69-
3. Click the "Download" button.
70-
4. Follow the connection instructions to connect the micro:bit via Bluetooth
71-
and download the program.
72-
5. Verify the BLE flashing process was shorter than on Test 1.
73-
6. Verify that the program runs on the micro:bit.
68+
8. Tap the "Download" button and follow the instructions to flash the programme.
69+
9. Confirm the BLE flashing process was shorter than the initial download from
70+
step 5.
71+
10. Verify that the new programme is running on the micro:bit.
7472

75-
## Test 3: Utility Service
73+
## Test 2: Utility Service
7674

7775
This test checks that the Utility Service is available and working on
7876
the builds of the MakeCode editor under test.
@@ -81,6 +79,9 @@ This test should be carried out with:
8179
- Android app
8280
- iOS app
8381

82+
And the following micro:bit versions:
83+
- micro:bit V2 only
84+
8485
Steps:
8586
1. Flash the micro:bit with this MakeCode programme, using any method:
8687
```javascript
@@ -89,10 +90,11 @@ Steps:
8990
datalogger.createCV("y", input.acceleration(Dimension.Y)),
9091
datalogger.createCV("x", input.acceleration(Dimension.X))
9192
)
93+
basic.pause(100)
9294
})
9395
```
9496
2. Open the micro:bit app, go to "My Programs".
9597
3. Tap on the "Fetch MY_DATA (V2 only)" button and follow the instructions
9698
to connect the micro:bit via Bluetooth.
97-
4. Verify that the data a table of Time, X and Y acceleration values
99+
4. Verify that the data as a table of Time, X and Y acceleration values
98100
is shown in the app.

docs/release-tests/webusb.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,32 @@ it is acceptable to use an existing project created in a previous test run.
5656
### Test 1: WebUSB full flash, partial flash, and serial
5757

5858
1. Connect the micro:bit to the computer via USB.
59-
2. Open the micro:bit MakeCode editor under test in a Chrome-based browser.
60-
3. Create a new project, and add a block to display an icon on the LED matrix.
61-
4. If the micro:bit was automatically connected via WebUSB, disconnect it from
59+
2. Flash a hex file that has not been generated by the MakeCode editor under
60+
test.
61+
- For example, the "Meet the micro:bit" hex file from:
62+
https://microbit.org/get-started/user-guide/meet-the-microbit-program/
63+
3. Open the micro:bit MakeCode editor under test in a Chrome-based browser.
64+
4. Create a new project, and add a block to display an icon on the LED matrix.
65+
5. If the micro:bit was automatically connected via WebUSB, disconnect it from
6266
the editor by clicking on the "Disconnect" button in "Download" menu
6367
(three dots icon at the right of the "Download" button).
64-
5. Click the "Download" button.
65-
6. Follow the connection instructions to connect the micro:bit via WebUSB and
68+
6. Click the "Download" button.
69+
7. Follow the connection instructions to connect the micro:bit via WebUSB and
6670
download the programme.
67-
7. Verify that the programme runs on the micro:bit.
68-
8. Change the code to this one:
71+
8. Verify that the programme runs on the micro:bit.
72+
9. Change the code to this one:
6973
```javascript
7074
basic.forever(function () {
7175
serial.writeLine("hello")
7276
basic.pause(1000)
7377
})
7478
```
75-
9. Click the "Download" button again.
76-
10. No connection instructions should be shown this time and the programme
79+
10. Click the "Download" button again.
80+
11. No connection instructions should be shown this time and the programme
7781
should be downloaded directly to the micro:bit in a shorter amount of time.
78-
11. A "Show Data Device" button should appear, click it to open the serial
82+
12. A "Show Data Device" button should appear, click it to open the serial
7983
console.
80-
12. Verify that the serial console shows "hello" every second.
84+
13. Verify that the serial console shows "hello" every second.
8185

8286
## Tests on specific variations
8387

0 commit comments

Comments
 (0)