UniTAP.dev.modules.dut_tests.dut_tests
Class TestGroup describes template of usual test group.
Contains info of:
- Test count
test_count. - Tests
tests. - Name
name. - ID
id.
Class DUTTests allows working with available tests on the device.
- Run
run. - Get default parameters for selected test group
get_default_parameters. - Get available test count in selected group
number_tests_in_group. - Get all test results
get_all_tests_results. - Clear all test results
clear_results. - Get information of available test groups
info_of_available_test_groups. - Make report after testing
make_report. - Run test from file
run_from_file- Not implemented. Will be added later.
Run selected test of test group.
Arguments:
- group_id (TestGroupId) - test group id
- test_id (int)
- params (DUTTestParameters) - one of the variants of params
- print_fw_logs (bool) - print FW logs (enable/disable)
- test_delay (int) - delay between tests (in seconds)
Get test parameters from transferred file: td or json (not cdf).
Arguments:
- path ('str') - full path to config file
Get test parameters from transferred file: json (cdf).
Arguments:
- path ('str') - full path to config file
Get predefined (default) parameters of test group.
Arguments:
- group_type (
DUTTestParameters) - test group id
Returns:
object of
DUTTestParameterstype
Returns all count of available tests of selected test group.
Arguments:
- group_id (
TestGroupId) - test group id
Returns:
object of int type
Returns test name by test id in selected test group.
Arguments:
- group_id (
TestGroupId) - test group id - test_id (
int) - test id
Returns:
object of str type
Returns test ID by test name id in selected test group.
Arguments:
- group_id (
TestGroupId) - test group id - name (
str) - test name or part name of the test
Returns:
object of int type
Returns list of test ID by test name id in selected test group.
Arguments:
- group_id (
TestGroupId) - test group id - name (
str) - test name or part name of the test
Returns:
object of list[int] type
Print all test parameters in readable format.
Arguments:
- params (
DUTTestParameters) - type of params
Returns all test result. Combined in one TestResultObject object.
Returns:
object of TestResultObject type
Returns all info in string format of test groups.
Returns:
object of str type
Make report after testing.
Arguments:
- path (str) - path to save report
- tested_by (str) - who tested
- dut_driver_version (str) - DUT driver version
- dut_firmware_version (str) - DUT FW version
- dut_model_name (str) - DUT model name
- dut_revision (str) - DUT revision
- dut_serial_number (str) - DUT serial number
- remarks (int) - additional remarks of testing
- results (list|None) - results of testing (if list is empty or None, usually use internal list of test
- results, which was filled during testing)