File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,28 +198,6 @@ function End-Scenario
198198 {
199199 CloseWTTLogger
200200 }
201- if ($UseCaseStack.Count )
202- {
203- while ($UseCaseStack.Count )
204- {
205- if ($UseCaseStack.Peek ().UseCase)
206- {
207- if ($UseCaseStack.Peek ().UseCase | Where-Object {$_.Result -eq " FAIL" })
208- {
209- $UseCaseStack.Peek ().Add(" Result" , " FAIL" )
210- }
211- else
212- {
213- $UseCaseStack.Peek ().Add(" Result" , " PASS" )
214- }
215- }
216- $UseCaseStack.Pop () | Out-Null
217- }
218- $jsonReport = ConvertFrom-Json (Get-Content - Path $Global :JSONLogFile - Raw)
219- $jsonReport.UseCases += , $CurrentUseCase
220- $jsonReport | ConvertTo-Json - Depth 10 | Out-File - FilePath $Global :JSONLogFile
221- $CurrentUseCase.Clear ()
222- }
223201}
224202
225203function Invoke-Usecase
@@ -271,7 +249,6 @@ function Invoke-Usecase
271249 }
272250 if (-not $Global :ContinueOnFailure )
273251 {
274- End - Scenario
275252 throw $_.Exception
276253 }
277254 }
You can’t perform that action at this time.
0 commit comments