diff --git a/classes/model/TestResult.py b/classes/model/TestResult.py index 7ba776ec..b1bd2800 100644 --- a/classes/model/TestResult.py +++ b/classes/model/TestResult.py @@ -78,6 +78,9 @@ def to_xml(self, classname: str = "") -> ElementTree.Element: if error.get('actual') is not None: lines.append(f"Got value: {error['actual']}") + if error.get('message'): + lines.append(error['message']) + if error.get('stack'): lines.append("Callstack:") # Split stack trace by newlines and format each line with indentation diff --git a/classes/server/RemoteControlServer.py b/classes/server/RemoteControlServer.py index db10ba01..be5b79d3 100644 --- a/classes/server/RemoteControlServer.py +++ b/classes/server/RemoteControlServer.py @@ -77,7 +77,7 @@ def _process_test_result(self, data: str): try: # Parse the incoming data as JSON - data_json: dict = data_utils.json_parse(data[:-1]) + data_json: dict = data_utils.json_parse(data) # Extract necessary fields from the parsed JSON result_data: Optional[dict] = data_json.get('details') @@ -339,7 +339,7 @@ async def _receive_response(self, reader: asyncio.StreamReader) -> str: if not data: LOGGER.info("Client disconnected.") return None - decoded_data = data.decode().strip() + decoded_data = data.decode().strip().strip("\x00") LOGGER.debug(f"Received: {decoded_data}") return decoded_data except asyncio.TimeoutError: diff --git a/projects/xUnit/objects/objRunner/Other_68.gml b/projects/xUnit/objects/objRunner/Other_68.gml index afbf5b74..355507e9 100644 --- a/projects/xUnit/objects/objRunner/Other_68.gml +++ b/projects/xUnit/objects/objRunner/Other_68.gml @@ -24,9 +24,8 @@ switch (_type) { log_info("NETWORK: Connected"); break; - case network_type_data: - log_debug("NETWORK: network_type_data"); - var _incoming = buffer_read(async_load[? "buffer"], buffer_string); + case network_type_data: + var _incoming = buffer_read(async_load[? "buffer"], buffer_string); // Split command from arguments var _parts = string_split(_incoming, " ", true, 1);