Skip to content

Commit

Permalink
docs/tests: add test report structure to the M2K plugin tests.
Browse files Browse the repository at this point in the history
Signed-off-by: AlexandraTrifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed Feb 3, 2025
1 parent 7329637 commit 59ed5f1
Show file tree
Hide file tree
Showing 10 changed files with 3,969 additions and 169 deletions.
107 changes: 105 additions & 2 deletions docs/tests/plugins/m2k/digital_io_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ Digital IO instrument of the ADALM2000 plugin in Scopy.
The following apply for all the test cases in this suite.
If the test case has special requirements, they will be listed in the test case section.


.. note::
.. list-table::
:widths: 50 30 30 50 50
:header-rows: 1

* - Tester
- Test Date
- Scopy version
- Plugin version (N/A if not applicable)
- Comments
* -
-
-
-
-

Setup environment:
------------------

Expand Down Expand Up @@ -56,30 +73,80 @@ Test 1 - Check individual digital pin state
(the corresponding led will be turned on).
- When DIO 0 is set to logic 0, DIO 7 will be automatically set to logic 0
(the corresponding led will be turned off).

- **Actual Result**:

..
Actual test result goes here.
..
6. Connect DIO 0 to a the analog pin **1+** and DIO 7 to the positive power
supply **V+** using the pinout diagram attached in resources.
7. Set DIO 0 to logic 0 and open the :ref:`Voltmeter<voltmeter>` instrument.
Start the instrument and monitor the voltage value on Channel 1.

- **Expected Result**: The voltage displayed on the voltmeter is between -0.050V and 0.4V.
- **Actual Result**:

..
Actual test result goes here.
..
8. Set DIO 0 to logic 1 and monitor the voltage value on Channel 1. Start the instrument.
- **Expected Result**: The voltage displayed on the voltmeter is between 2.9V and 3.4V.
- **Actual Result**:

..
Actual test result goes here.
..
9. Open the :ref:`Power Supply instrument<power_supply>` and set the positive
power supply to a voltage level between 0V and 0.8V.
Monitor the DIO 7 logic state.

- **Expected Result**: DIO 7 indicates logic 0 level.
- **Actual Result**:

..
Actual test result goes here.
..
10. Open the :ref:`Power Supply instrument<power_supply>` and set the positive
power supply to a voltage level between 2V and 3.3V.
Monitor the DIO 7 logic state.

- **Expected Result**: DIO 7 indicates logic 1 level.
- **Actual Result**:

..
Actual test result goes here.
..
11. Repeat steps 6 to 11 using DIO 8 as **output** (for step 3) and
DIO 1 as **input** for (step 4).

- **Expected Result**: All the expected results in step 6 to 11 are met.
- **Actual Result**:

..
Actual test result goes here.
..
**Tested OS:**

..
Details about the tested OS goes here.
**Comments:**

..
Any comments about the test goes here.
**Result:** PASS/FAIL

..
The result of the test goes here (PASS/FAIL).
**Result**: PASS/FAIL

Test 2 - Checking grouped digital pin states
----------------------------------------------------
Expand All @@ -101,12 +168,48 @@ are working correctly.
3. Set DIO 0-7 as **output** and DIO 8-15 as **input**.
4. Set DIO 0-7 to value 0.
- **Expected Result**: DIO 8-15 value indicates the same value as DIO 0-7 group.
- **Actual Result**:

..
Actual test result goes here.
..
5. Set DIO 0-7 to value 128.
- **Expected Result**: DIO 8-15 value indicates the same value as DIO 0-7 group.
- **Actual Result**:

..
Actual test result goes here.
..
6. Set DIO 0-7 as **input** and DIO 8-15 as **output**.
7. Set DIO 8-15 to value 0.
- **Expected Result**: DIO 0-7 value indicates the same value as DIO 8-15 group.
- **Actual Result**:

..
Actual test result goes here.
..
8. Set DIO 8-15 to value 128.
- **Expected Result**: DIO 0-7 value indicates the same value as DIO 8-15 group.
- **Actual Result**:

..
Actual test result goes here.
..
**Tested OS:**

..
Details about the tested OS goes here.
**Comments:**

..
Any comments about the test goes here.
**Result:** PASS/FAIL

**Result**: PASS/FAIL
..
The result of the test goes here (PASS/FAIL).
Loading

0 comments on commit 59ed5f1

Please sign in to comment.