Skip to content

Commit

Permalink
docs / tests: add prerequisites in adc and preferences
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w committed Jan 28, 2025
1 parent 2860ade commit 864a100
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 51 deletions.
84 changes: 60 additions & 24 deletions docs/tests/general/general_preferences_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ Test 1 - Save/Load Scopy session
**Description:** Manage sessions to retain or load overall application
states (only applies to plugins which have this implemented).

**Preconditions:**
**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`M2K.emu<m2k_emu_setup>`
- OS: ALL

Expand Down Expand Up @@ -67,8 +69,10 @@ Test 2 - Double click to attach/detach tool
**Description:** Tools can be detached from the main window by
double clicking them in the left menu.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ALL

Expand All @@ -91,9 +95,11 @@ Test 3 - Save/Load tool attached state

**Description:** Manage sessions to retain tool attached states.

**Test prerequisites:**
- Emulator tests
- Depends on :ref:`Test Double click to attach/detach tool<TST.PREF.DOUBLECLICK_ATTACH_DETACH>`

**Preconditions:**
- Emulator tests
- Depends on :ref:`Test 2<TST.PREF.DOUBLECLICK_ATTACH_DETACH>`
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ALL

Expand All @@ -117,8 +123,10 @@ Test 4 - Double click control buttons to open menu

**Description:** Open menu from MenuControlButtons by double clicking them.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`Pluto.emu<pluto_emu_setup>`
- OS: ALL

Expand All @@ -144,9 +152,11 @@ Test 5 - Enable OpenGL plotting

**Description:** Use GPU acceleration for rendering plots (OpenGL-based).

**Preconditions:**
- Emulator tests
**Test prerequisites:**
- Emulator tests
- Depends on Test "Plot FPS"

**Preconditions:**
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ALL

Expand All @@ -171,8 +181,10 @@ Test 6 - Enable menu animations

**Description:** Toggle visual animations for menu transitions.

**Preconditions:**
**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ANY

Expand All @@ -195,8 +207,10 @@ Test 7 - Enable the status bar for displaying important messages

**Description:** Show status messages on the bottom of the app window.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ANY

Expand All @@ -219,8 +233,10 @@ Test 8 - Show Grid

**Description:** Display grid lines for better visual referencing on plots.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`Pluto.emu<pluto_emu_setup>`
- OS: ANY

Expand All @@ -243,8 +259,10 @@ Test 9 - Show Graticule

**Description:** Display lines for axes centered on 0 points on plots.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`Pluto.emu<pluto_emu_setup>`
- OS: ANY

Expand All @@ -267,11 +285,12 @@ Test 10 - Use Lazy Loading

**UID:** TST.PREF.USE_LAZY_LOADING

**Description:** Load IIO resources as needed to improve initial
load performance.
**Description:** Load IIO resources as needed to improve initial load performance.

**Preconditions:**
**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<pluto_emu_usb_setup>`
- OS: Windows

Expand All @@ -298,7 +317,6 @@ Test 11 - Use native dialogs
**Description:** Use system-native dialog windows.

**Preconditions:**
- None
- OS: ALL

**Steps:**
Expand All @@ -320,8 +338,10 @@ Test 12 - Auto-connect to previous session

**Description:** Automatically reconnect to the last used devices on startup.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`Pluto.emu<pluto_emu_setup>`
- OS: ANY

Expand All @@ -346,8 +366,10 @@ Test 13 - Font scale
**Description:** Adjust font size within the app (this is experimental,
so some layout artifacts may appear).

**Preconditions:**
**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<pluto_emu_setup>`
- OS: ANY

Expand All @@ -369,8 +391,10 @@ Test 14 - Theme

**Description:** Change application theme.

**Preconditions:**
**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<pluto_emu_setup>`
- OS: ANY

Expand All @@ -391,8 +415,10 @@ Test 15 - Language

**Description:** Change the language of the application interface.

**Preconditions:**
**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ANY

Expand All @@ -410,10 +436,12 @@ Test 16 - Connect to multiple devices
**UID:** TST.PREF.CONNECT_MULTIPLE_DEVICES

**Description:** Enable connections to multiple hardware and emulator

**Test prerequisites:**
- Emulator tests
devices at once.

**Preconditions:**
- Emulator tests
- :ref:`Pluto.emu<pluto_emu_setup>` and :ref:`M2k.emu<m2k_emu_setup>`
- OS: ANY

Expand All @@ -437,8 +465,10 @@ Test 17 - Regularly scan for new devices

**Description:** Continuously scan and recognize newly connected devices.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`Pluto.usb<pluto_emu_usb_setup>`
- OS: ANY

Expand Down Expand Up @@ -487,8 +517,10 @@ Test 19 - Show plot FPS

**Description:** Show FPS on plots.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`M2k.emu<m2k_emu_setup>` and :ref:`Pluto.usb<pluto_emu_usb_setup>`
- OS: ANY

Expand All @@ -512,8 +544,10 @@ Test 20 - Plot target FPS
**Description:** Manage the maximum FPS plots should run at
(this may also affect the IIO acquisition).

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`Pluto.usb<pluto_emu_usb_setup>`
- "Show plot FPS" needs to be enabled.
- OS: ANY
Expand All @@ -533,8 +567,10 @@ Test 21 - Reset settings and plugins to default

**Description:** Resets all settings and plugins to default values.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- Emulator tests
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ANY

Expand Down
51 changes: 24 additions & 27 deletions docs/tests/plugins/adc/adc_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,13 @@ Test 1 - X Scale Position

**UID:** TST.PREF.X_SCALE_POS

**Description:** Change the X-axis scale position and verify the label's
position on the plot
**Description:** Change the X-axis scale position and verify the label's position on the plot

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button.
- Enable emulator for Pluto.
- Verify and add device with ADCPlugin enabled.
- OS: ANY

**Steps:**
Expand All @@ -562,11 +561,11 @@ Test 2 - Y Scale Position
**Description:** Change the Y-axis scale position and verify the label's
position on the plot

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button
- Enable emulator for Pluto
- Verify and add device with ADCPlugin enabled
- OS: ANY

**Steps:**
Expand All @@ -586,14 +585,13 @@ Test 3 - Channel Handle Position

**UID:** TST.PREF.CH_HANDLE_POS

**Description:** Change the Y-handle position and verify the appearance
of the handle
**Description:** Change the Y-handle position and verify the appearance of the handle

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button
- Enable emulator for Pluto
- Verify and add device with ADCPlugin enabled
- OS: ANY

**Steps:**
Expand All @@ -617,11 +615,11 @@ Test 4 - X Cursor Position

**Description:** Change the X-cursor position and verify the cursor's appearance.

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button
- Enable emulator for Pluto
- Verify and add device with ADCPlugin enabled
- OS: ANY

**Steps:**
Expand All @@ -642,14 +640,13 @@ Test 5 - Y Cursor Position

**UID:** TST.PREF.Y_CURSOR_POS

**Description:** Change the Y-cursor position and verify the
cursor's appearance
**Description:** Change the Y-cursor position and verify the cursor's appearance

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button
- Enable emulator for Pluto
- Verify and add device with ADCPlugin enabled
- OS: ANY

**Steps:**
Expand All @@ -672,11 +669,11 @@ Test 6 - Show Buffer

**Description:** Enable/disable the buffer and verify its appearance on the plot

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button
- Enable emulator for Pluto
- Verify and add device with ADCPlugin enabled
- OS: ANY

**Steps:**
Expand All @@ -697,11 +694,11 @@ Test 7 - Default YMode

**Description:** Set the default Y-mode and verify its behavior in ADC-Time

**Test prerequisites:**
- Emulator tests

**Preconditions:**
- :ref:`Pluto.emu<adalm-pluto_device_emu>`
- Press the add device button
- Enable emulator for Pluto
- Verify and add device with ADCPlugin enabled
- OS: ANY

**Steps:**
Expand Down

0 comments on commit 864a100

Please sign in to comment.