PQM Tests
Rms tool
Note
User guide: Rms.
Note
Tester |
Test Date |
Scopy version |
Plugin version (N/A if not applicable) |
Comments |
---|---|---|---|---|
Setup environment:
- PQM.Emu:
Open Scopy.
Start the iio-emu process using “pqm” in the dropdown and “ip:127.0.0.1” as URI.
Run: python3 pqmDataWriter.py.
Add the device in device browser.
Connect to “ip:127.0.0.1”.
Test 1: Open Rms tool.
UID: TST.PQM.RMS_OPEN
Description: This test verifies that the Rms tool opens correctly and is accessible without errors.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Rms tool.
- Observe the application’s behavior.
Expected result: In the top section of the tool widget, there is an Info button, a PQEvents indicator, a Run button, a Single button, and a Settings button. The Settings menu is open, and the Settings button is in a checked state. In the center of the widget, there are two plots, each with labels positioned above them.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 3: Single acquisition.
UID: TST.PQM.RMS_SINGLE
Description: This test verifies if the single acquisition works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Rms tool.
- Click on the Single button.
Expected result: Both the plot and the header labels are populated with values. A single block of data is acquired.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 4: Data acquisition.
UID: TST.PQM.RMS_RUN
Description: This test verifies if the data acquisition works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Rms tool.
- Click on the Start button.
Expected result: Both the plot and the header labels are populated with values. The data is updated every few seconds.
Actual result:
- Click on the Stop button.
Expected result: The data acquisition stops.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 6: Data logging.
UID: TST.PQM.RMS_LOG
Description: This test verifies if the logging mechanism works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Rms tool.
Make sure that the settings menu is open.
- Make sure that data acquisition is stopped.
If data acquisition is running, the log section cannot be accessed.
- Click on the LOG switch button.
Expected result: A browse section is displayed.
Actual result:
- Click on the Browse button.
Expected result: A explorer window is displayed. Only directories can be selected.
Actual result:
- Select a directory and click on the Open button.
Expected result: The explorer window is closed and the path to that directory is introduced in the browser section.
Actual result:
- Click on the Run button.
Expected result: The LOG section remains open, but its elements can no longer be accessed and a .csv file is created in the selected directory.
Actual result:
- Click on the Stop button.
Expected result: The LOG section can now be accessed, and the .csv file is populated with data.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 7: Data logging wrong path.
UID: TST.PQM.RMS_LOG_WRONG
Description: This test verifies if the logging mechanism works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Rms tool.
Make sure that the settings menu is open.
- Make sure that data acquisition is stopped.
If data acquisition is running, the log section cannot be accessed.
- Click on the LOG switch button.
Expected result: A browse section is displayed.
Actual result:
Enter an invalid path in the line edit.
- Click on the Run button.
Expected result: The LOG section get closed and no .csv file is created.
Actual result:
- Click on the Stop button.
Expected result: The LOG section remains closed.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 8: PQEvents.
UID: TST.PQM.RMS_PQEVENTS
Description: This test verifies if the PQEvents indicator works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Rms tool.
Click on the Run button.
- Run
iio_attr -u ip:127.0.0.1 -c pqm count0 countEvent 1
command. Expected result: The PQEvents indicator becomes active.
Actual result:
- Run
- Click on the Stop button.
Expected result: The PQEvents indicator is still active.
Actual result:
- Click on the PQEvents indicator.
Expected result: The PQEvents indicator becomes inactive.
Actual result:
Run
iio_attr -u ip:127.0.0.1 -c pqm count0 countEvent 0
command.
Tested OS:
Comments:
Result: PASS/FAIL
Harmonics tool
Note
User guide: Harmonics.
Note
Tester |
Test Date |
Scopy version |
Plugin version (N/A if not applicable) |
Comments |
---|---|---|---|---|
Setup environment:
- PQM.Emu:
Open Scopy.
Start the iio-emu process using “pqm” in the dropdown and “ip:127.0.0.1” as URI.
Run: python3 pqmDataWriter.py.
Add the device in device browser.
Connect to “ip:127.0.0.1”.
Test 1: Open Harmonics tool.
UID: TST.PQM.HARMONICS_OPEN
Description: This test verifies that the Harmonics tool opens correctly and is accessible without errors.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Harmonics tool.
- Observe the application’s behavior.
Expected result: In the top section of the tool widget, there is an Info button, a PQEvents indicator, a Run button, a Single button, and a Settings button. The Settings menu is open, and the Settings button is in a checked state. In the center, there are three components: THD, a table, and a plot.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 2: Info button check.
UID: TST.PQM.HARMONICS_INFO
Description: This test verifies if the Info button works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Harmonics tool.
- Click on the Info button.
Expected result: The Harmonics documentation page is opened in the browser.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 3: Single acquisition.
UID: TST.PQM.HARMONICS_SINGLE
Description: This test verifies if the single acquisition works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Harmonics tool.
- Click on the Single button.
Expected result: All the components are populated with values. The data in the table must be reflected on the plot. A single block of data is acquired.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 4: Data acquisition.
UID: TST.PQM.HARMONICS_RUN
Description: This test verifies if the data acquisition works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Harmonics tool.
- Click on the Start button.
Expected result: The data is updated every few seconds (only the values from the table and from the plot are updated). The data in the table must be reflected on the plot.
Actual result:
- Click on the Stop button.
Expected result: The data acquisition stops.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 5: The features of the table.
UID: TST.PQM.HARMONICS_TABLE
Description: This test verifies if the table functionalities works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Harmonics tool.
- Click on the Single button.
Expected result: The row Ia is highlighted and the corresponding values are drawn on the plot.
Actual result:
Make sure that the settings menu is visible.
- Click on the Ib row from the table.
Expected result: The entire row is selected and the Ib values are displayed on the plot. In the setting menu, the active channel is also Ib.
Actual result:
- Select the first 6 values from row Ic (click on the first value and hold it down until you reach column 5).
Expected result: Only the respective values remain highlighted, and only the selected columns appear on the plot. The drawing color is another one.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 7: Data logging.
UID: TST.PQM.HARMONICS_LOG
Description: This test verifies if the logging mechanism works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Make sure that the settings menu is open.
- Make sure that data acquisition is stopped.
If data acquisition is running, the log section cannot be accessed.
- Click on the LOG switch button.
Expected result: A browse section is displayed.
Actual result:
- Click on the Browse button.
Expected result: An explorer window is displayed. Only directories can be selected.
Actual result:
- Select a directory and click on the Open button.
Expected result: The explorer window is closed and the path to that directory is introduced in the browse section.
Actual result:
- Click on the Run button.
Expected result: The LOG section remains open, but its elements can no longer be accessed and a .csv file is created in the selected directory.
Actual result:
- Click on the Stop button.
Expected result: The LOG section can now be accessed, and the .csv file is populated with data.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 8: Data logging wrong path.
UID: TST.PQM.HARMONICS_LOG_WRONG
Description: This test verifies if the logging mechanism works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Make sure that the settings menu is open.
- Make sure that data acquisition is stopped.
If data acquisition is running, the log section cannot be accessed.
- Click on the LOG switch button.
Expected result: A browse section is displayed.
Actual result:
Enter an invalid path in the line edit.
- Click on the Run button.
Expected result: The LOG section is closed and no .csv file is created.
Actual result:
- Click on the Stop button.
Expected result: The LOG section remains closed.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 9: PQEvents.
UID: TST.PQM.HARMONICS_PQEVENTS
Description: This test verifies if the PQEvents indicator works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Run button.
- Run
iio_attr -u ip:127.0.0.1 -c pqm count0 countEvent 1
command. Expected result: The PQEvents indicator becomes active.
Actual result:
- Run
- Click on the Stop button.
Expected result: The PQEvents indicator is still active.
Actual result:
- Click on the PQEvents indicator.
Expected result: The PQEvents indicator becomes inactive.
Actual result:
Run
iio_attr -u ip:127.0.0.1 -c pqm count0 countEvent 0
command.
Tested OS:
Comments:
Result: PASS/FAIL
Waveform tool
Note
User guide: Waveform.
Note
Tester |
Test Date |
Scopy version |
Plugin version (N/A if not applicable) |
Comments |
---|---|---|---|---|
Setup environment:
- PQM.Emu:
Open Scopy.
Start the iio-emu process using “pqm” in the dropdown and “ip:127.0.0.1” as URI.
Add the device in device browser.
Connect to “ip:127.0.0.1”.
Test 1: Open Waveform tool.
UID: TST.PQM.WAVEFORM_OPEN
Description: This test verifies that the Waveform tool opens correctly and is accessible without errors.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
- Observe the application’s behavior.
Expected result: In the top section of the tool widget, there is an Info button, a Run button, a Single button, and a Settings button. The Settings menu is open, and the Settings button is in a checked state. In the center, there are two plots.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 2: Info button check.
UID: TST.PQM.WAVEFORM_INFO
Description: This test verifies if the Info button works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
- Click on the Info button.
Expected result: The Waveform documentation page is opened in the browser.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 4: Settings timespan check.
UID: TST.PQM.WAVEFORM_SETTINGS_TIMESPAN
Description: This test verifies if the timespan spin box works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
Make sure that the settings menu is open.
- Click on (+) button.
Expected result: The timespan is increased and the x-axis range is now [-newValue, 0]. The maximum value must be 10.
Actual result:
- Click on (-) button.
Expected result: The timespan is decreased and the x-axis range is now [-newValue, 0]. The minimum value must be 0.02.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 5: Settings rolling switch check.
UID: TST.PQM.WAVEFORM_SETTINGS_ROLLING
Description: This test verifies if the rolling mode switch works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
Make sure that the settings menu is open.
- Enable Rolling mode swich.
Expected result: The switch is turned on, and the “triggered by” dropdown is inactive.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 6: Single acquisition triggered.
UID: TST.PQM.WAVEFORM_SINGLE_TRIG
Description: This test verifies if the single acquisition works correctly (triggered mode).
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
Make sure that the Rolling mode switch is turned off.
- Click on the Single button.
Expected result: The curves are displayed on the plot in single shot format. A single block of data is acquired.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 7: Single acquisition rolling.
UID: TST.PQM.WAVEFORM_SINGLE_ROLL
Description: This test verifies if the single acquisition works correctly (rolling mode).
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
Make sure that the Rolling mode switch is turned on.
- Click on the Single button.
Expected result: The curves are drawn from right to left until all the required samples for the plot are acquired. A single block of data is acquired.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 8: Data acquisition triggered.
UID: TST.PQM.WAVEFORM_RUN_TRIG
Description: This test verifies if the data acquisition works correctly (triggered mode).
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
Make sure that the Rolling mode switch is turned off.
- Click on the Start button.
Expected result: The curves are displayed on the plot in single shot format. When new data is available, it is displayed on the screen.
Actual result:
- Click on the Stop button.
Expected result: The data acquisition stops.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 9: Data acquisition rolling.
UID: TST.PQM.WAVEFORM_RUN_ROLL
Description: This test verifies if the data acquisition works correctly (rolling mode).
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
Make sure that the Rolling mode switch is turned on.
- Click on the Start button.
Expected result: The curves are drawn from right to left until all the required samples for the plot are acquired. If there are non-zero values, a continuous motion illusion is created.
Actual result:
- Click on the Stop button.
Expected result: The data acquisition stops.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 10: Plot zoom.
UID: TST.PQM.WAVEFORM_PLOT_ZOOM
Description: This test verifies if, when zooming in on one plot, the x-axis range of the other plot is modified and matches the zoom range.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Waveform tool.
- Zoom in on the first plot to a range smaller than the x-axis range.
Expected result: The x-axis range of the second plot is modified and matches the range of the first plot.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 11: Data logging.
UID: TST.PQM.WAVEFORM_LOG
Description: This test verifies if the logging mechanism works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Make sure that the settings menu is open.
- Make sure that data acquisition is stopped.
If data acquisition is running, the log section cannot be accessed.
- Click on the LOG switch button.
Expected result: A browse section is displayed.
Actual result:
- Click on the Browse button.
Expected result: An explorer window is displayed. Only directories can be selected.
Actual result:
- Select a directory and click on the Open button.
Expected result: The explorer window is closed and the path to that directory is introduced in the browser section.
Actual result:
- Click on the Run button.
Expected result: The LOG section remains open, but its elements can no longer be accessed and a .csv file is created in the selected directory.
Actual result:
- Click on the Stop button.
Expected result: The LOG section can now be accessed, and the .csv file is populated with data.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 12: Data logging wrong path.
UID: TST.PQM.WAVEFORM_LOG_WRONG
Description: This test verifies if the logging mechanism works correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Make sure that the settings menu is open.
- Make sure that data acquisition is stopped.
If data acquisition is running, the log section cannot be accessed.
- Click on the LOG switch button.
Expected result: A browse section is displayed.
Actual result:
Enter an invalid path in the line edit.
- Click on the Run button.
Expected result: The LOG section is closed and no .csv file is created.
Actual result:
- Click on the Stop button.
Expected result: The LOG section remains closed.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Settings tool
Note
User guide: Settings.
Note
Tester |
Test Date |
Scopy version |
Plugin version (N/A if not applicable) |
Comments |
---|---|---|---|---|
Setup environment:
- PQM.Emu:
Open Scopy.
Start the iio-emu process using “pqm” in the dropdown and “ip:127.0.0.1” as URI.
Add the device in device browser.
Connect to “ip:127.0.0.1”.
Test 1: Open Settings tool.
UID: TST.PQM.SETTINGS_OPEN
Description: This test verifies that the Settings tool opens correctly and is accessible without errors.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Settings tool.
- Observe the application’s behavior.
Expected result: Three sections are displayed: System Time, Logging, and Config Values.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 2: Read config values.
UID: TST.PQM.SETTINGS_READ
Description: This test verifies if the device attribute reading is done correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Settings tool.
Scroll down in the Config values section until you find the Read and Set buttons.
- Click on the Read button.
Expected result: All fields in the section are populated.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 3: Write config values.
UID: TST.PQM.SETTINGS_WRITE
Description: This test verifies if the device attribute writing is done correctly.
- Test prerequisites:
- Preconditions:
Scopy is installed on the system.
iio-emu is installed on the system.
Use PQM.Emu setup.
OS: Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS.
- Steps:
Click on the Settings tool.
Scroll down in the Config values section until you find the Read and Set buttons.
- Click on the Read button.
Expected result: All fields in the section are populated.
Actual result:
Change the MsV Threshold value to 0.40.
Click on the Write button.
- Click on the Read button.
Expected result: The MsV Threshold attribute value must be 0.40.
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL