Dasharo compatibility: USB-C docking station USB devices
Test cases common documentation
Test setup
- Proceed with the Generic test setup: firmware.
- Proceed with the Generic test setup: OS installer.
- Proceed with the Generic test setup: OS installation.
- Proceed with the Generic test setup: OS boot from disk.
- The
USB-C docking station
connected to the USB-C port. - The
USB storage
connected to theUSB-C docking station
.
DUB001.001 USB devices recognition (firmware)
Test description
This test aims to verify that the external USB devices connected to the docking
station are recognized correctly by the FIRMWARE
.
Test configuration data
FIRMWARE
= Dasharo
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Power on the DUT.
- Hold the
BIOS_MENU_KEY
to enter the BIOS Menu. - Check if the
USB storage
is available on the list.
Expected result
The USB storage
is available which confirms successful recognition.
DUB001.002 USB devices recognition (Ubuntu 22.04)
Test description
This test aims to verify that the external USB devices connected to the docking
station are recognized correctly by the OPERATING_SYSTEM
.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu 22.04
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
-
Open a terminal window and run the following command:
watch -n1 lsusb
-
Connect(or Disconnect) external USB devices to the USB ports on the docking station and note the result.
Expected result
- After each device is connected to the USB port, a new USB device entry
in
lsusb
command output should appear. - After each device is disconnected from the USB port, a USB device entry
in
lsusb
command output should disappear.
DUB001.003 USB devices recognition (Windows 11)
Test description
This test aims to verify that the external USB devices connected to the docking
station are recognized correctly by the OPERATING_SYSTEM
.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Windows 11
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
-
Open PowerShell and and run the following command:
Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' }
-
Note the results.
Expected result
After executing the command, a list containing all USB devices should be
displayed. The list should contain the USB storage
, which is plug in.
Example output:
```bash
Status Class FriendlyName
------ ----- ------------
OK DiskDrive Mass Storage Device USB Device
OK USB Generic USB Hub
OK HIDClass USB Input Device
OK Bluetooth Intel(R) Wireless Bluetooth(R)
OK DiskDrive USB SanDisk 3.2Gen1 USB Device
OK USB USB Root Hub (USB 3.0)
OK Net TP-LINK Gigabit Ethernet USB Adapter
OK USB Generic USB Hub
OK USB USB Mass Storage Device
```
DUB002.001 USB keyboard recognition (firmware)
Test description
This test aims to verify that the external USB keyboard connected to the docking
station is detected correctly by the FIRMWARE
and all basic keys work
according to their labels.
Test configuration data
FIRMWARE
= Dasharo
Test setup
- Proceed with the Test cases common documentation section.
- The external USB keyboard connected to the docking station.
Test steps
- Power on the DUT
- Hold the
BIOS_MENU_KEY
to enter the Bios Menu. - Use the arrow keys, Esc key and the Enter key to navigate the menus.
Expected result
All menus can be entered using the external USB keyboard.
DUB002.002 USB keyboard detection (Ubuntu 22.04)
Test description
This test aims to verify that the external USB keyboard connected to the docking
station is detected correctly by the OPERATING_SYSTEM
and all basic keys work
according to their labels.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu 22.04
Test setup
- Proceed with the Test cases common documentation section.
- Install the
libinput-tools
package:sudo apt install libinput-tools
. - The external USB keyboard connected to the docking station.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
-
Open a terminal window and run the following command:
lsusb
-
Run the following command in the terminal:
libinput debug-events --show-keycodes
-
Test the alphanumeric keys and note the generated keycodes.
- Test non-alphanumeric keys and verify that they generate the correct keycodes.
- Test key combinations with the
Shift
,Ctrl
andAlt
modifier keys (this tests 2-key rollover).
Expected result
- The external USB keyboard is detected in OS.
- All standard keyboard keys generate the correct keycodes and events as per their labels.
- Key combinations are detected correctly.
DUB002.003 USB keyboard recognition (Windows 11)
Test description
This test aims to verify that the external USB keyboard is detected correctly
by the OPERATING_SYSTEM
and all basic keys work according to their labels.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Windows 11
Test setup
- Proceed with the Test cases common documentation section.
- The external USB keyboard connected to the docking station.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
-
Open PowerShell and and run the following command:
Get-CimInstance win32_KEYBOARD
-
Note the results.
- Open
notepad
. - Test the alphanumeric keys and note the generated characters.
- Test non-alphanumeric keys and verify that they generate the signs.
- Test key combinations with the
Shift
, andAlt
modifier keys. - Open
On-Screen Keyboard
and pressCtrl
key on the hardware keyboard. Check ifOn-Screen Keyboard
correctly highlights it. - Open
Start menu
and pressEsc
. Check ifStart menu
is properly closed.
Expected result
-
After running the PowerShell command information about connected keyboards should be displayed.
One of keyboard should have identical part of output:
Description : USB Input Device
-
All standard keyboard keys generate correct characters or actions when pressed.
- Key combinations are detected correctly.
DUB003.001 Upload 1GB file on USB storage (Ubuntu 22.04)
Test description
This test aims to verify that the 1GB file can be transferred from the
OPERATING_SYSTEM
to the USB storage
connected to the docking station.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu 22.04
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
-
Open a terminal window and run the following command to generate 1GB file:
openssl rand -out test_file.txt -base64 $(( 2**30 * 3/4 ))
-
Read the path to the
USB storage
by running the following command:lsblk
-
Copy the generated file to the
USB storage
by running the following command:cp test_file.txt {path_to_usb_storage}
-
Verify that the files are the same by running the following command:
sha256sum test_file.txt {path_to_usb_storage}/test_file.txt
Expected result
The output from the last command should contain 2 identical checksums:
f46597c0c63a1eefb200d40edf654e52f10c3d5d21565886ad603fabaf8d39fb test_file.txt
f46597c0c63a1eefb200d40edf654e52f10c3d5d21565886ad603fabaf8d39fb {path_to_usb_storage}/test_file.txt
DUB003.002 Upload 1GB file on USB storage (Windows 11)
Test description
This test aims to verify that the 1GB file can be transferred from the
OPERATING_SYSTEM
to the USB storage
connected to the docking station.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Windows 11
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
-
Open powershell as administrator and run the following command to generate 1GB file:
fsutil file createnew test_file.txt 1073741824
-
Read the drive letter assigned to the
USB storage
by running the following command:(Get-Volume | where drivetype -eq removable).driveletter
-
Copy the generated file to the
USB storage
by running the following command:Copy-Item -Path C:\Windows\system32\test_file.txt {drive_letter}:
-
Verify that the files are the same by running the following commands:
Get-FileHash test_file.txt Get-FileHash {drive_letter}:\test_file.txt
Expected result
The output from the last commands should have equal hash:
Algorithm Hash Path
--------- ---- ----
SHA256 F46597C0C63A1EEFB200D40EDF654E52F10C3D5D21565886AD603FABAF8D39FB C\Windows\system3...
Algorithm Hash Path
--------- ---- ----
SHA256 F46597C0C63A1EEFB200D40EDF654E52F10C3D5D21565886AD603FABAF8D39FB E:\test_file.txt