Device interaction
Note
User guide: Scopy Overview.
Note
Tester |
Test Date |
Scopy version |
Plugin version (N/A if not applicable) |
Comments |
---|---|---|---|---|
Setup environment:
- M2k.Emu:
Open Scopy.
Start the iio-emu process using “adalm2000” in the dropdown and “ip:127.0.0.1” as URI.
Add the device in device browser.
- M2k.Usb:
Open Scopy.
Connect an ADALM2000 device to the system by USB.
Add the device in device browser.
Test 2: Remove a device from device browser.
UID: TST.DEV.FORGET
Description: This test checks if the “Forget” (x) button work correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use M2k.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
- Click the Forget button located at the bottom-right of the device icon.
Expected result: The device is removed from device browser.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 3: Remove a device from device browser while it is connected.
UID: TST.DEV.FORGET_CONN
Description: This test verifies whether Scopy properly handles the removal of a connected device.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use M2k.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the device icon from device browser.
Click on Connect button.
- Click the Forget button located at the bottom-right of the device icon.
Expected result: Initially, the device is disconnected and then successfully removed from the device browser.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 4: Edit the name of the device.
UID: TST.DEV.EDIT_NAME
Description: This test checks if the Edit pen button work correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use M2k.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Place the cursor in the top-right corner of the device icon in the device browser.
After the pen icon appears, click on it.
Delete “M2k”.
Write “M3k”.
- Press enter.
Expected result: The device name changes both in the device browser and in the tool menu.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 5: Select a tool.
UID: TST.DEV.SELECT_TOOL
Description: This test checks if the tool infrastructure works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use M2k.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the device icon from device browser.
Click on Connect button.
- Click on “Oscilloscope” tool.
Expected result: The “Oscilloscope” tool is displayed and the tool menu item is highlighted.
Actual result:
- Click on “Home” menu entry.
Expected result: The device page is displayed and the home menu item is highlighted.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 6: Detach a tool.
UID: TST.DEV.DETACH_TOOL
Description: This test checks if the tool detachment mechanism is working correctly.
- Test prerequisites:
- Preconditions:
- Steps:
Click on the device icon from device browser.
Click on Connect button.
- Double click on “Oscilloscope” tool.
Expected result: The “Oscilloscope” tool is integrated into a separate window from the application. The window title should be: “Scopy-M2kPlugin-Oscilloscope-“ip:127.0.0.1 or usb:x.y.z.
Actual result:
- Close the “Oscilloscope” window.
Expected result: The “Oscilloscope” tool is reintegrated into the main window.
Actual result:
Detach the oscilloscope tool again.
- Close the application.
Expected result: Scopy finished successfully.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 7: Reopen the app with a detached tool.
UID: TST.DEV.DETACH_TOOL_RE
Description: This test checks whether detached tools retain their state upon reconnection.
- Test prerequisites:
- Preconditions:
- Steps:
Click on the device icon from device browser.
- Click on Connect button.
Expected result: The oscilloscope tool is detached.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 9: Connecting to multiple devices.
UID: TST.DEV.MULTI_CONN
Description: This test checks if connecting to multiple devices is working properly.
- Test prerequisites:
- Preconditions:
- Steps:
Click on the emu device icon from device browser.
- Click on Connect button.
Expected result: The connection is established successfully.
Actual result:
Click on the usb device icon from device browser.
- Click on Connect button.
Expected result: The connection is established successfully, both device icons have a green status bar, both devices are entered into the tool menu (the device header contains the device name and uri), and the tools of each device can be accessed. If the menu contains too many entries, then the scroll bar will become visible.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 10: Resource manager with multiple devices.
UID: TST.DEV.RM_MULTI
Description: This test verifies that the resource manager is being used properly.
- Test prerequisites:
- Preconditions:
- Steps:
Click on the emu device icon from device browser.
Click on Connect button.
Click on the usb device icon from device browser.
Click on Connect button.
- Click on the “Oscilloscope” run button of the emu device in the tool menu.
Expected result: The button changes from stop button to run button (green color).
Actual result:
- Click on the “Spectrum Analyzer” run button of the usb device in the tool menu.
Expected result: The button changes from stop button to run button, and the oscilloscope button (of the emu device) remains the same.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 11: Devices order in device browser.
UID: TST.DEV.ADD_ORDER
Description: This test verifies that each newly added device is finally entered into the device browser.
- Test prerequisites:
- Preconditions:
- Steps:
Add the emu device.
- Add the usb device.
Expected result: The usb device is on the right side of emu device.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL