修复Call命令计时问题

This commit is contained in:
2024-04-18 05:23:04 +08:00
parent 60b17d82e1
commit 71ec6193ed
36 changed files with 2540 additions and 5 deletions

View File

@@ -720,8 +720,7 @@ Namespace UTSModule.Test
Dim result As New TestCommandReturn
If String.IsNullOrWhiteSpace(node.Command) Then Return result
_stepWatch.Restart() '启单步测试计时
Dim watch As Stopwatch = Stopwatch.StartNew() '启单步计时
Dim cmd As New TestCommand(node) '获取执行参数
ReplaceValue(cmd, localVariable) '执行前变量替换
Dim executor As TestCommandExecutor = TestCommandManger.CreateExecutor(cmd) '创建执行器
@@ -742,8 +741,8 @@ Namespace UTSModule.Test
Thread.Sleep(node.RetryInterval)
Next
_stepWatch.Stop()
result.StepTimeSpan = _stepWatch.Elapsed
watch.Stop()
result.StepTimeSpan = watch.Elapsed
'进度修改
If node.RowListIndex > _startTestIndex AndAlso node.RowIndex < _endTestIndex Then