更新:调用函数情况下,失败记录中FailMsg对变量的替换

This commit is contained in:
2024-05-14 00:19:47 +08:00
parent b277d97689
commit 985fec2287
21 changed files with 32 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ Namespace UTSModule.Test.Command.SystemCommand
Dim rowNode As RowNode = tester.GetModule(_moduleName)
rowNode.IsRetry = IsRetry
If rownode Is Nothing Then
If rowNode Is Nothing Then
CommandReturn.ExecuteResult = False
CommandReturn.RecordValue = String.Empty
CommandReturn.ExecuteResultTipString = $"未查询到[{_moduleName}]模块存在"

View File

@@ -198,7 +198,7 @@ Namespace UTSModule.Test
End If
steps.Append(node.RowListIndex)
msg.Append(node.Description)
msg.Append(node.Desc4Record)
msg.Append($" {node.TestReturn.RecordValue} ({node.TestReturn.LowerLimit},{node.TestReturn.UpperLimit})")
Next
dic.Add($"{TestLogTable.ColNames.FailSteps}", steps.ToString())

View File

@@ -746,6 +746,8 @@ Namespace UTSModule.Test
ReplaceValue(cmd, localVariable) '执行前变量替换
Dim executor As TestCommandExecutor = TestCommandManger.CreateExecutor(cmd) '创建执行器
node.Desc4Record = ReplaceString(node.Description, localVariable) '替换记录名称中变量
'最大执行总数为1+重试次数
For retry As Integer = 0 To node.Retry
If _exitTest Then Exit For