Skip to content

Commit d4c9a7f

Browse files
resolved PR comments
1 parent 1a22ddb commit d4c9a7f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Tasks/QuickPerfTest/Invoke-QuickPerfTest.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function GetTestRuns($headers)
9696
return $runs
9797
}
9898

99-
function GetTestRunUri($testRunId)
99+
function GetTestRunUri($testRunId, $headers)
100100
{
101101
$uri = [String]::Format("{0}/_apis/clt/testruns/{1}?api-version=1.0", $CltAccountUrl,$testRunId)
102102
$run = Invoke-RestMethod -ContentType "application/json" -UserAgent $userAgent -TimeoutSec $global:RestTimeout -Uri $uri -Headers $headers
@@ -217,7 +217,6 @@ function UploadSummaryMdReport($summaryMdPath)
217217

218218
if (($env:SYSTEM_HOSTTYPE -eq "build") -and (Test-Path($summaryMdPath)))
219219
{
220-
Write-Output "This is a build task and hence summary is being uploaded"
221220
Write-Host "##vso[task.addattachment type=Distributedtask.Core.Summary;name=Load test results;]$summaryMdPath"
222221
}
223222
}
@@ -262,7 +261,7 @@ if ($drop.dropType -eq "InPlaceDrop")
262261

263262
$run = QueueTestRun $headers $runJson
264263
MonitorTestRun $headers $run
265-
$webResultsUrl = GetTestRunUri($run.id)
264+
$webResultsUrl = GetTestRunUri $run.id $headers
266265

267266
Write-Output ("Run-id for this load test is {0} and its name is '{1}'." -f $run.runNumber, $run.name)
268267
Write-Output ("To view run details navigate to {0}" -f $webResultsUrl)

Tasks/RunJMeterLoadTest/Start-ApacheJMeterTest.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ if ($drop.dropType -eq "TestServiceBlobDrop")
340340

341341
$run = GetTestRun $headers $run.id
342342
$webResultsUrl = $run.WebResultUrl
343-
Write-Output ("{0}", $webResultsUrl)
344343
Write-Output ("Run-id for this load test is {0} and its name is '{1}'." -f $run.runNumber, $run.name)
345344
Write-Output ("To view run details navigate to {0}" -f $webResultsUrl)
346345

0 commit comments

Comments
 (0)