You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host"##[section]Successfully executed the live scenario `"$Name`"."-ForegroundColor Green
240
236
break
241
237
}
@@ -246,23 +242,30 @@ function Invoke-LiveTestScenario {
246
242
247
243
$snrInvocationInfo=$snrErrorRecord.InvocationInfo
248
244
if ($null-ne$snrInvocationInfo) {
249
-
$snrErrorDetails+=" thrown at line:$($snrInvocationInfo.ScriptLineNumber) char:$($snrInvocationInfo.OffsetInLine) by cmdlet `"$($snrInvocationInfo.InvocationName)`" on `"$($snrInvocationInfo.Line.ToString().Trim())`"."
Write-Host"##[error]Exception was thrown from the Assert.ps1. The stack trace is:"-ForegroundColor Red
248
+
Write-Host"##[error]$($snrErrorRecord.ScriptStackTrace)"-ForegroundColor Red
249
+
}
250
+
else {
251
+
$snrErrorDetails+=" thrown at line:$($snrInvocationInfo.ScriptLineNumber) char:$($snrInvocationInfo.OffsetInLine) by cmdlet '$($snrInvocationInfo.MyCommand)' on '$($snrInvocationInfo.Line.ToString().Trim())'"
252
+
}
250
253
}
251
254
252
255
$snrRetryErrors+=$snrErrorDetails
253
256
254
257
if ($snrRetryCount-lt$script:ScenarioMaxRetryCount) {
0 commit comments