Mbed Host Tests
mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx Class Reference
Inheritance diagram for mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx:
mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase

Public Member Functions

 __init__ (self)
 
 is_os_supported (self, os_name=None)
 In this implementation this plugin only is supporeted under Windows machines.
 
 setup (self, *args, **kwargs)
 Configure plugin, this function should be called before plugin execute() method is used.
 
 execute (self, capability, *args, **kwargs)
 Executes capability by name.
 
- Public Member Functions inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase
 print_plugin_error (self, text)
 Interface helper methods - overload only if you need to have custom behaviour.
 
 print_plugin_info (self, text, NL=True)
 Function prints notification in console and exits always with True.
 
 print_plugin_char (self, char)
 
 check_mount_point_ready (self, destination_disk, init_delay=0.2, loop_delay=0.25, target_id=None, timeout=60)
 Waits until destination_disk is ready and can be accessed by e.g.
 
 check_serial_port_ready (self, serial_port, target_id=None, timeout=60)
 Function checks (using mbed-ls) and updates serial port name information for DUT with specified target_id.
 
 check_parameters (self, capability, *args, **kwargs)
 This function should be ran each time we call execute() to check if none of the required parameters is missing.
 
 run_command (self, cmd, shell=True)
 Runs command from command line.
 
 mbed_os_info (self)
 Returns information about host OS.
 
 mbed_os_support (self)
 Function used to determine host OS.
 

Public Attributes

 JN51XX_PROGRAMMER
 
- Public Attributes inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase
 plugin_logger
 

Static Public Attributes

str name = 'HostTestPluginResetMethod_JN51xx'
 
str type = 'ResetMethod'
 
list capabilities = ['jn51xx']
 
list required_parameters = ['serial']
 
bool stable = False
 
- Static Public Attributes inherited from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase
str name = "HostTestPluginBase"
 Interface:
 
str type = "BasePlugin"
 
list capabilities = []
 
list required_parameters = []
 
bool stable = False
 

Detailed Description

Definition at line 23 of file module_reset_jn51xx.py.

Constructor & Destructor Documentation

◆ __init__()

mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.__init__ (   self)

Member Function Documentation

◆ execute()

mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.execute (   self,
  capability,
args,
**  kwargs 
)

Executes capability by name.

Parameters
capabilityCapability name
argsAdditional arguments
kwargsAdditional arguments

Each capability e.g. may directly just call some command line program or execute building pythonic function

Returns
Capability call return value

Reimplemented from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase.

Definition at line 56 of file module_reset_jn51xx.py.

◆ is_os_supported()

mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.is_os_supported (   self,
  os_name = None 
)

In this implementation this plugin only is supporeted under Windows machines.

Reimplemented from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase.

Definition at line 37 of file module_reset_jn51xx.py.

◆ setup()

mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.setup (   self,
args,
**  kwargs 
)

Configure plugin, this function should be called before plugin execute() method is used.

Reimplemented from mbed_host_tests.host_tests_plugins.host_test_plugins.HostTestPluginBase.

Definition at line 49 of file module_reset_jn51xx.py.

Member Data Documentation

◆ capabilities

list mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.capabilities = ['jn51xx']
static

Definition at line 28 of file module_reset_jn51xx.py.

◆ JN51XX_PROGRAMMER

mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.JN51XX_PROGRAMMER

Definition at line 53 of file module_reset_jn51xx.py.

◆ name

str mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.name = 'HostTestPluginResetMethod_JN51xx'
static

Definition at line 26 of file module_reset_jn51xx.py.

◆ required_parameters

list mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.required_parameters = ['serial']
static

Definition at line 29 of file module_reset_jn51xx.py.

◆ stable

bool mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.stable = False
static

Definition at line 30 of file module_reset_jn51xx.py.

◆ type

str mbed_host_tests.host_tests_plugins.module_reset_jn51xx.HostTestPluginResetMethod_JN51xx.type = 'ResetMethod'
static

Definition at line 27 of file module_reset_jn51xx.py.


The documentation for this class was generated from the following file: