更新:调用函数情况下,失败记录中FailMsg对变量的替换
This commit is contained in:
@@ -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}]模块存在"
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user