From f73ce4e92592d4d6ab7b6ed1350bee79a3d9394b Mon Sep 17 00:00:00 2001 From: franzhaas Date: Tue, 10 Dec 2024 11:05:41 +0100 Subject: [PATCH] - added results (#41) --- atests/hw_dependant_results/HID/log.html | 2454 +++++++++++++++++ atests/hw_dependant_results/HID/output.xml | 244 ++ atests/hw_dependant_results/HID/report.html | 2735 +++++++++++++++++++ atests/hw_dependant_results/nfc/log.html | 2454 +++++++++++++++++ atests/hw_dependant_results/nfc/output.xml | 978 +++++++ atests/hw_dependant_results/nfc/report.html | 2735 +++++++++++++++++++ 6 files changed, 11600 insertions(+) create mode 100644 atests/hw_dependant_results/HID/log.html create mode 100644 atests/hw_dependant_results/HID/output.xml create mode 100644 atests/hw_dependant_results/HID/report.html create mode 100644 atests/hw_dependant_results/nfc/log.html create mode 100644 atests/hw_dependant_results/nfc/output.xml create mode 100644 atests/hw_dependant_results/nfc/report.html diff --git a/atests/hw_dependant_results/HID/log.html b/atests/hw_dependant_results/HID/log.html new file mode 100644 index 0000000..1d88e60 --- /dev/null +++ b/atests/hw_dependant_results/HID/log.html @@ -0,0 +1,2454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/atests/hw_dependant_results/HID/output.xml b/atests/hw_dependant_results/HID/output.xml new file mode 100644 index 0000000..cf48c13 --- /dev/null +++ b/atests/hw_dependant_results/HID/output.xml @@ -0,0 +1,244 @@ + + + + + + +${IFILE} = <_io.BufferedReader name='/dev/hidraw0'> +${IFILE} +Opens a file filepath for reading binary data. + + + +${OFILE} = <_io.FileIO name='/dev/hidraw0' mode='wb' closefd=True> +${OFILE} +Opens a file filepath for writing binary data. + + + +${\n}Press left alt and hold please +Logs the given message to the console. + + + +parsed: Container: + modifiers = Container: + right_gui = False + right_alt = False + right_shift = False + right_ctrl = False + left_gui = False + left_alt = True + left_shift = False + left_ctrl = False + reserved = 0 + keys = ListContainer: + 0 + 0 + 0 + 0 + 0 + 0 using <Struct HIDReportIn> from 04 00 00 00 00 00 00 00 +${LeftAltPressed} = Container: + modifiers = Container: + right_gui = False + right_alt = False + right_shift = False + right_ctrl = False + left_gui = False + left_alt = True + ... +${LeftAltPressed} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +descending to 'modifiers' of 'Container: + modifiers = Container: + right_gui = False + right_alt = False + right_shift = False + right_ctrl = False + left_gui = False + left_alt = True + left_shift = False + left_ctrl = False + reserved = 0 + keys = ListContainer: + 0 + 0 + 0 + 0 + 0 + 0' +descending to 'left_alt' of 'Container: + right_gui = False + right_alt = False + right_shift = False + right_ctrl = False + left_gui = False + left_alt = True + left_shift = False + left_ctrl = False' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${\n}Press and hold right shift please +Logs the given message to the console. + + + +parsed: Container: + modifiers = Container: + right_gui = False + right_alt = False + right_shift = True + right_ctrl = False + left_gui = False + left_alt = True + left_shift = False + left_ctrl = False + reserved = 0 + keys = ListContainer: + 0 + 0 + 0 + 0 + 0 + 0 using <Struct HIDReportIn> from 24 00 00 00 00 00 00 00 +${LeftAltPressed} = Container: + modifiers = Container: + right_gui = False + right_alt = False + right_shift = True + right_ctrl = False + left_gui = False + left_alt = True + ... +${LeftAltPressed} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +descending to 'modifiers' of 'Container: + modifiers = Container: + right_gui = False + right_alt = False + right_shift = True + right_ctrl = False + left_gui = False + left_alt = True + left_shift = False + left_ctrl = False + reserved = 0 + keys = ListContainer: + 0 + 0 + 0 + 0 + 0 + 0' +descending to 'right_shift' of 'Container: + right_gui = False + right_alt = False + right_shift = True + right_ctrl = False + left_gui = False + left_alt = True + left_shift = False + left_ctrl = False' +Checks that the element located at locator in construct is equal to expectedValue. + + + +built: 00 00 00 00 00 00 00 00 (a total of 8 bytes) using "<Struct HIDReportOut>" from :" +{'ReportID': 0, + 'modifiers': {'CAPS_LOCK': False, 'NUM_LOCK': False, 'SCROLL_LOCK': False}, + 'reserved': [0, 0, 0, 0, 0, 0]}" +Writes binary data to a file or sends it over a socket. + + + +${\n}The three leds should be off now +Logs the given message to the console. + + + +Slept 1 second. +1 +Pauses the test executed for the given time. + + + +descending to 'modifiers' of '{'ReportID': 0, 'modifiers': {'SCROLL_LOCK': False, 'NUM_LOCK': False, 'CAPS_LOCK': False}, 'reserved': [0, 0, 0, 0, 0, 0]}' +Modifies the element located at locator in constructDict to the value value. + + + +built: 00 04 00 00 00 00 00 00 (a total of 8 bytes) using "<Struct HIDReportOut>" from :" +{'ReportID': 0, + 'modifiers': {'CAPS_LOCK': False, 'NUM_LOCK': False, 'SCROLL_LOCK': True}, + 'reserved': [0, 0, 0, 0, 0, 0]}" +Writes binary data to a file or sends it over a socket. + + + +${\n}The scroll lock led should be on now +Logs the given message to the console. + + + +Slept 1 second. +time_=1 +Pauses the test executed for the given time. + + + +descending to 'modifiers' of '{'ReportID': 0, 'modifiers': {'SCROLL_LOCK': True, 'NUM_LOCK': False, 'CAPS_LOCK': False}, 'reserved': [0, 0, 0, 0, 0, 0]}' +Modifies the element located at locator in constructDict to the value value. + + + +descending to 'modifiers' of '{'ReportID': 0, 'modifiers': {'SCROLL_LOCK': False, 'NUM_LOCK': False, 'CAPS_LOCK': False}, 'reserved': [0, 0, 0, 0, 0, 0]}' +Modifies the element located at locator in constructDict to the value value. + + + +built: 00 01 00 00 00 00 00 00 (a total of 8 bytes) using "<Struct HIDReportOut>" from :" +{'ReportID': 0, + 'modifiers': {'CAPS_LOCK': True, 'NUM_LOCK': False, 'SCROLL_LOCK': False}, + 'reserved': [0, 0, 0, 0, 0, 0]}" +Writes binary data to a file or sends it over a socket. + + + +${\n}The caps lock led should be on now +Logs the given message to the console. + + +hardware + + +This is a simple example for a robot file using robotframework-construct demonstrating accessing real HW over the USB HID interface. + +This currently only tested on linux + + + + + + +All Tests + + +hardware + + +HIDKeyboard +HIDKeyboard.Hid Keyboard + + + + + diff --git a/atests/hw_dependant_results/HID/report.html b/atests/hw_dependant_results/HID/report.html new file mode 100644 index 0000000..8ade520 --- /dev/null +++ b/atests/hw_dependant_results/HID/report.html @@ -0,0 +1,2735 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/atests/hw_dependant_results/nfc/log.html b/atests/hw_dependant_results/nfc/log.html new file mode 100644 index 0000000..f2e12e4 --- /dev/null +++ b/atests/hw_dependant_results/nfc/log.html @@ -0,0 +1,2454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/atests/hw_dependant_results/nfc/output.xml b/atests/hw_dependant_results/nfc/output.xml new file mode 100644 index 0000000..49ed415 --- /dev/null +++ b/atests/hw_dependant_results/nfc/output.xml @@ -0,0 +1,978 @@ + + + + + + +${NCI_READ} = <_io.FileIO name=5 mode='rb' closefd=False> +${NCI_WRITE} = <_io.FileIO name=5 mode='wb' closefd=False> +${NCI_READ} +${NCI_WRITE} +${NCI_INTERFACE} +${BAUD_RATE} +Opens a connection to a NCI device via UART. + + + +Slept 250 milliseconds. +0.25 +Pauses the test executed for the given time. + + + + + + +descending to 'payload' of '{'header': {'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), 'PBF': 0, 'GID': EnumIntegerString.new(0, 'CORE'), 'RFU': 0, 'OID': EnumIntegerString.new(0, 'CORE_RESET')}, 'payload_length': 1, 'payload': {'ResetType': EnumIntegerString.new(1, 'RESET_CONFIGURATION')}, 'padding': b''}' +Modifies the element located at locator in constructDict to the value value. + + + +built: 20 00 01 01 (a total of 4 bytes) using "<Compiled NCI_CONTROL_PACKET>" from :" +{'header': {'GID': EnumIntegerString.new(0, 'CORE'), + 'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), + 'OID': EnumIntegerString.new(0, 'CORE_RESET'), + 'PBF': 0, + 'RFU': 0}, + 'padding': b'', + 'payload': {'ResetType': EnumIntegerString.new(1, 'RESET_CONFIGURATION')}, + 'payload_length': 1}" +Writes binary data to a file or sends it over a socket. + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 + NCI_Version = None + ConfigurationStatus = None + padding = None using <Compiled NCI_CONTROL_PACKET> from 40 00 01 00 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + p... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + p... +${RESPONSE} + + + +descending to 'header' of 'Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 + NCI_Version = None + ConfigurationStatus = None + padding = None' +descending to 'MT' of 'Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_RESET 1 + padding = b' \x02\x04\x00\x02\x00K' (total 7) using <Compiled NCI_CONTROL_PACKET> from 60 00 09 02 01 20 02 04 00 02 00 4b +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESPONSE} + + + +descending to 'header' of 'Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_RESET 1 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +descending to 'MT' of 'Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + +${RESET_NOTIFICATION} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESET_NOTIFICATION} + + + +descending to 'payload' of 'Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_RESET 1 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +descending to 'ConfigurationStatus' of 'Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_RESET 1 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +Checks that the element located at locator in construct is equal to expectedValue. + + + + + + +Closes the NCI connection by closing the serial connection. + + +This test case resets the NFC options using NCI over UART reseting the RF configuration. +hardware + + + + +${NCI_READ} = <_io.FileIO name=5 mode='rb' closefd=False> +${NCI_WRITE} = <_io.FileIO name=5 mode='wb' closefd=False> +${NCI_READ} +${NCI_WRITE} +${NCI_INTERFACE} +${BAUD_RATE} +Opens a connection to a NCI device via UART. + + + +Slept 250 milliseconds. +0.25 +Pauses the test executed for the given time. + + + + + + +descending to 'payload' of '{'header': {'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), 'PBF': 0, 'GID': EnumIntegerString.new(0, 'CORE'), 'RFU': 0, 'OID': EnumIntegerString.new(0, 'CORE_RESET')}, 'payload_length': 1, 'payload': {'ResetType': EnumIntegerString.new(1, 'RESET_CONFIGURATION')}, 'padding': b''}' +Modifies the element located at locator in constructDict to the value value. + + + +built: 20 00 01 00 (a total of 4 bytes) using "<Compiled NCI_CONTROL_PACKET>" from :" +{'header': {'GID': EnumIntegerString.new(0, 'CORE'), + 'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), + 'OID': EnumIntegerString.new(0, 'CORE_RESET'), + 'PBF': 0, + 'RFU': 0}, + 'padding': b'', + 'payload': {'ResetType': EnumIntegerString.new(0, 'KEEP_CONFIGURATION')}, + 'payload_length': 1}" +Writes binary data to a file or sends it over a socket. + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 + NCI_Version = None + ConfigurationStatus = None + padding = None using <Compiled NCI_CONTROL_PACKET> from 40 00 01 00 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + p... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + p... +${RESPONSE} + + + +descending to 'header' of 'Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 + NCI_Version = None + ConfigurationStatus = None + padding = None' +descending to 'MT' of 'Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_KEPT 0 + padding = b' \x02\x04\x00\x02\x00K' (total 7) using <Compiled NCI_CONTROL_PACKET> from 60 00 09 02 00 20 02 04 00 02 00 4b +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESPONSE} + + + +descending to 'header' of 'Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_KEPT 0 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +descending to 'MT' of 'Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + +${RESET_NOTIFICATION} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESET_NOTIFICATION} + + + +descending to 'payload' of 'Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_KEPT 0 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +descending to 'ConfigurationStatus' of 'Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_KEPT 0 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +Checks that the element located at locator in construct is equal to expectedValue. + + + + + + +Closes the NCI connection by closing the serial connection. + + +This test case resets the NFC options using NCI over UART keeping the RF configuration. +hardware + + + + +${NCI_READ} = <_io.FileIO name=5 mode='rb' closefd=False> +${NCI_WRITE} = <_io.FileIO name=5 mode='wb' closefd=False> +${NCI_READ} +${NCI_WRITE} +${NCI_INTERFACE} +${BAUD_RATE} +Opens a connection to a NCI device via UART. + + + +Slept 250 milliseconds. +0.25 +Pauses the test executed for the given time. + + + + + + +built: 20 00 01 00 (a total of 4 bytes) using "<Compiled NCI_CONTROL_PACKET>" from :" +{'header': {'GID': EnumIntegerString.new(0, 'CORE'), + 'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), + 'OID': EnumIntegerString.new(0, 'CORE_RESET'), + 'PBF': 0, + 'RFU': 0}, + 'padding': b'', + 'payload': {'ResetType': EnumIntegerString.new(0, 'KEEP_CONFIGURATION')}, + 'payload_length': 1}" +Writes binary data to a file or sends it over a socket. + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 + NCI_Version = None + ConfigurationStatus = None + padding = None using <Compiled NCI_CONTROL_PACKET> from 40 00 01 00 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + p... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + p... +${RESPONSE} + + + +descending to 'header' of 'Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 + NCI_Version = None + ConfigurationStatus = None + padding = None' +descending to 'MT' of 'Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_KEPT 0 + padding = b' \x02\x04\x00\x02\x00K' (total 7) using <Compiled NCI_CONTROL_PACKET> from 60 00 09 02 00 20 02 04 00 02 00 4b +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + ... +${RESPONSE} + + + +descending to 'header' of 'Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0 + payload_length = 9 + payload = Container: + Reason = (enum) (unknown) 2 + ConfigurationStatus = (enum) NCI_RF_CONFIGURATION_KEPT 0 + padding = b' \x02\x04\x00\x02\x00K' (total 7)' +descending to 'MT' of 'Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_RESET 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + + + + +built: 20 01 02 00 00 (a total of 5 bytes) using "<Compiled NCI_CONTROL_PACKET>" from :" +{'header': {'GID': EnumIntegerString.new(0, 'CORE'), + 'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), + 'OID': EnumIntegerString.new(1, 'CORE_INIT'), + 'PBF': 0, + 'RFU': 0}, + 'padding': b'', + 'payload': {'ConstValue': b'\x00\x00'}, + 'payload_length': 2}" +Writes binary data to a file or sends it over a socket. + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_INIT 1 + payload_length = 17 + payload = Container: + Status = (enum) STATUS_OK 0 + NFCC_Features = Container: + Octet_0 = Container: + RFU = 0 + DiscoverConfigurationmode = (enum) SINGLDE_DH 0 + DiscoverFrequencyConfiguration = (enum) RF_DISCOVER_CMD_SUPPORTED 1 + Octet_1 = Container: + RFU = 0 + AID_BASED_ROUTING = 0 + PROTOCOL_BASED_ROUTING = 1 + TECHNOLOGY_BASED_ROUTING = 1 + Octet_2 = Container: + RFU = 0 + SWITCH_OFF_STATE_SUPPORTED = (enum) (unknown) 0 + BATTERY_OFF_STATE_SUPPORTED = (enum) (unknown) 0 + Octet_3 = Container: + RFU = 0 + NumInterfaces = 1 + SupportedInterfaces = ListContainer: + 50 + Max_Logical_Connections = 0 + Max_Routing_Table_Size = 65280 + Max_Control_Package_Payload_Size = 0 + Max_Size_for_Large_Parameters = 0 + Manufacture_ID = 255 + Manufacturer_specific_info = b'\x03\x01\x02\x03' (total 4) using <Compiled NCI_CONTROL_PACKET> from 40 01 11 00 01 06 00 00 01 32 00 ff 00 00 00 ff 03 01 02 03 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_INIT 1 + pa... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_INIT 1 + pa... +${RESPONSE} + + + +descending to 'payload' of 'Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) CORE 0 + RFU = 0 + OID = (enum) CORE_INIT 1 + payload_length = 17 + payload = Container: + Status = (enum) STATUS_OK 0 + NFCC_Features = Container: + Octet_0 = Container: + RFU = 0 + DiscoverConfigurationmode = (enum) SINGLDE_DH 0 + DiscoverFrequencyConfiguration = (enum) RF_DISCOVER_CMD_SUPPORTED 1 + Octet_1 = Container: + RFU = 0 + AID_BASED_ROUTING = 0 + PROTOCOL_BASED_ROUTING = 1 + TECHNOLOGY_BASED_ROUTING = 1 + Octet_2 = Container: + RFU = 0 + SWITCH_OFF_STATE_SUPPORTED = (enum) (unknown) 0 + BATTERY_OFF_STATE_SUPPORTED = (enum) (unknown) 0 + Octet_3 = Container: + RFU = 0 + NumInterfaces = 1 + SupportedInterfaces = ListContainer: + 50 + Max_Logical_Connections = 0 + Max_Routing_Table_Size = 65280 + Max_Control_Package_Payload_Size = 0 + Max_Size_for_Large_Parameters = 0 + Manufacture_ID = 255 + Manufacturer_specific_info = b'\x03\x01\x02\x03' (total 4)' +descending to 'Status' of 'Container: + Status = (enum) STATUS_OK 0 + NFCC_Features = Container: + Octet_0 = Container: + RFU = 0 + DiscoverConfigurationmode = (enum) SINGLDE_DH 0 + DiscoverFrequencyConfiguration = (enum) RF_DISCOVER_CMD_SUPPORTED 1 + Octet_1 = Container: + RFU = 0 + AID_BASED_ROUTING = 0 + PROTOCOL_BASED_ROUTING = 1 + TECHNOLOGY_BASED_ROUTING = 1 + Octet_2 = Container: + RFU = 0 + SWITCH_OFF_STATE_SUPPORTED = (enum) (unknown) 0 + BATTERY_OFF_STATE_SUPPORTED = (enum) (unknown) 0 + Octet_3 = Container: + RFU = 0 + NumInterfaces = 1 + SupportedInterfaces = ListContainer: + 50 + Max_Logical_Connections = 0 + Max_Routing_Table_Size = 65280 + Max_Control_Package_Payload_Size = 0 + Max_Size_for_Large_Parameters = 0 + Manufacture_ID = 255 + Manufacturer_specific_info = b'\x03\x01\x02\x03' (total 4)' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + + + + +built: 21 03 0d 06 00 02 01 02 02 02 06 02 80 02 82 02 (a total of 16 bytes) using "<Compiled NCI_CONTROL_PACKET>" from :" +{'header': {'GID': EnumIntegerString.new(1, 'RF'), + 'MT': EnumIntegerString.new(1, 'ControlPacketCommand'), + 'OID': EnumIntegerString.new(3, 'RF_DISCOVER'), + 'PBF': 0, + 'RFU': 0}, + 'payload': {'NumInterfaces': 6, + 'RF_Discover_Map': [{'RF_Discover_Frequency': 2, + 'RF_Technology_and_Mode': EnumIntegerString.new(0, 'NFC_A_PASSIVE_POLL_MODE')}, + {'RF_Discover_Frequency': 2, + 'RF_Technology_and_Mode': EnumIntegerString.new(1, 'NFC_B_PASSIVE_POLL_MODE')}, + {'RF_Discover_Frequency': 2, + 'RF_Technology_and_Mode': EnumIntegerString.new(2, 'NFC_F_PASSIVE_POLL_MODE')}, + {'RF_Discover_Frequency': 2, + 'RF_Technology_and_Mode': EnumIntegerString.new(6, 'NFC_15693_PASSIVE_POLL_MODE')}, + {'RF_Discover_Frequency': 2, + 'RF_Technology_and_Mode': EnumIntegerString.new(128, 'NFC_A_PASSIVE_LISTEN_MODE')}, + {'RF_Discover_Frequency': 2, + 'RF_Technology_and_Mode': EnumIntegerString.new(130, 'NFC_F_PASSIVE_LISTEN_MODE')}]}, + 'payload_length': 13}" +Writes binary data to a file or sends it over a socket. + + + + + +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0 using <Compiled NCI_CONTROL_PACKET> from 41 03 01 00 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + pa... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +${RESPONSE} + + +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + pa... +${RESPONSE} + + + +descending to 'payload' of 'Container: + header = Container: + MT = (enum) ControlPacketResponse 2 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + payload_length = 1 + payload = Container: + Status = (enum) STATUS_OK 0' +descending to 'Status' of 'Container: + Status = (enum) STATUS_OK 0' +Checks that the element located at locator in construct is equal to expectedValue. + + + +${RESPONSE} + + + + + +please place a card on the reader +Logs the given message to the console. + + + +timeout=1 +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + payload_length = 14 + payload = Container: + NumTargets = 1 + Payload = b'\x04\x00\t\x02\x00\x04BZ\xb8\x00\x018\x02' (total 13) using <Compiled NCI_CONTROL_PACKET> from 61 03 0e 01 04 00 09 02 00 04 42 5a b8 00 01 38 02 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + ... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +timeout=1 +Waits for data from the NCI device. + + + +parsed: Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + payload_length = 17 + payload = Container: + NumTargets = 2 + Payload = b'\x06\x06\x0c\x00\x02@\xce\xa1\x18f$\x16\xe0\xab\xa4\x00' (total 16) using <Compiled NCI_CONTROL_PACKET> from 61 03 11 02 06 06 0c 00 02 40 ce a1 18 66 24 16 e0 ab a4 00 +${RESPONSE} = Container: + header = Container: + MT = (enum) ControlPacketNotification 3 + PBF = (enum) endOfMessage 0 + GID = (enum) RF 1 + RFU = 0 + OID = (enum) RF_DISCOVER 3 + ... +${RESPONSE} +Parses binary data using a construct. The binary data can be a byte array, a readable binary file object, or a TCP/UDP socket. + + + +Closes the NCI connection by closing the serial connection. + + +This test case resets the NFC options using NCI over UART. +hardware + + +This is a simple example for a robot file using robotframework-construct using nfc/nci as an example using UART. + + + + + + +All Tests + + +hardware + + +Nfc Nci +Nfc Nci.Nfc Basic + + + + + diff --git a/atests/hw_dependant_results/nfc/report.html b/atests/hw_dependant_results/nfc/report.html new file mode 100644 index 0000000..6a66332 --- /dev/null +++ b/atests/hw_dependant_results/nfc/report.html @@ -0,0 +1,2735 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +