diff --git a/Public/Invoke-AtomicTest.ps1 b/Public/Invoke-AtomicTest.ps1 index 16e296b..5971b02 100644 --- a/Public/Invoke-AtomicTest.ps1 +++ b/Public/Invoke-AtomicTest.ps1 @@ -362,7 +362,6 @@ function Invoke-AtomicTest { Write-Debug -Message "Gathering tests for Technique $technique" $testCount = 0 - $order = 1 foreach ($test in $technique.atomic_tests) { Write-Verbose -Message 'Determining tests for target platform' @@ -485,8 +484,7 @@ function Invoke-AtomicTest { $res = Invoke-ExecuteCommand $final_command $test.executor.name $executionPlatform $TimeoutSeconds $session -Interactive:$Interactive $stopTime = Get-Date if ($isLoggingModuleSet) { - &"$LoggingModule\Write-ExecutionLog" $startTime $stopTime $AT $order $test.name $test.auto_generated_guid $test.executor.name $test.description $final_command $ExecutionLogPath $executionHostname $executionUser $res (-Not($IsLinux -or $IsMacOS)) - $order++ + &"$LoggingModule\Write-ExecutionLog" $startTime $stopTime $AT $testCount $test.name $test.auto_generated_guid $test.executor.name $test.description $final_command $ExecutionLogPath $executionHostname $executionUser $res (-Not($IsLinux -or $IsMacOS)) } Write-KeyValue "Done executing test: " $testId } @@ -523,4 +521,4 @@ function Invoke-AtomicTest { } # End of PROCESS block END { } # Intentionally left blank and can be removed -} \ No newline at end of file +}