1,UtsWrTextBytesExecutor 读取串口数据参数为空时函数返回异常

This commit is contained in:
2024-05-20 22:47:17 +08:00
parent 8077acf6bf
commit 364079bb26
9 changed files with 9 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -73,6 +73,15 @@ Namespace UTSModule.Test.Command.UtsComPortCommand
Return CommandReturn
End If
'2024-05-20 当返回数据参数为空时直接返回错误
If receiveData.Params.Count = 0 Then
ApplicationLog.WriteFatalLog($"测试器异常情况,串口返回正常,参数为空")
CommandReturn.ExecuteResultTipString = "测试器异常情况,串口返回正常,参数为空"
CommandReturn.RecordValue = ""
CommandReturn.ExecuteResult = False
Return CommandReturn
End If
If String.IsNullOrEmpty(_utsExpression) Then
CommandReturn.RecordValue = receiveData.ParamListToString
CommandReturn.ExecuteResult = True

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.