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
############################################## PS Script execution starts here ##########################################
231
226
Write-Output"Starting Quick Perf Test Script"
232
227
@@ -267,46 +262,22 @@ if ($drop.dropType -eq "InPlaceDrop")
267
262
268
263
$run= QueueTestRun $headers$runJson
269
264
MonitorTestRun $headers$run
270
-
265
+
$webResultsUrl= GetTestRunUri($run.id)
266
+
271
267
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
272
-
Write-Output ("To view run details navigate to {0}/_apps/hub/ms.vss-cloudloadtest-web.hub-loadtest-account?_a=summary&runId={1}"-f$TFSAccountUrl,$run.id)
268
+
Write-Output ("To view run details navigate to {0}"-f$webResultsUrl)
273
269
Write-Output"To view detailed results navigate to Load Test | Load Test Manager in Visual Studio IDE, and open this run."
$summary+= ('[Compare with run {0}]({1}/_apps/hub/ms.vss-cloudloadtest-web.hub-loadtest-account?_a=compare&runId1={2}&runId2={3}) from [build {4}]({1}/{5}/_build#buildId={4}&_a=summary).'-f$previousRun.runNumber,$global:TFSAccountUrl,$previousRun.id,$run.id,$lastSuccessfulBuild.id,$env:System_TeamProjectId,$env:BUILD_BUILDID)
299
-
break
300
-
}
301
-
}
302
-
}
303
-
}
279
+
$summary= ('[Test Run: {0}]({1}) using {2}.<br/>'-f$run.runNumber,$webResultsUrl,$run.name)
304
280
305
-
if(!$runComparisonAvailable)
306
-
{
307
-
$summary+= ('No previous run found for comparison.')
############################################## PS Script execution starts here ##########################################
295
280
WriteTaskMessages "Starting Load Test Script"
296
281
@@ -353,44 +338,20 @@ if ($drop.dropType -eq "TestServiceBlobDrop")
353
338
WriteTaskMessages "The load test completed successfully."
354
339
}
355
340
341
+
$run= GetTestRun $headers$run.id
342
+
$webResultsUrl=$run.WebResultUrl
343
+
Write-Output ("{0}",$webResultsUrl)
356
344
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
357
-
Write-Output ("To view run details navigate to {0}/_apps/hub/ms.vss-cloudloadtest-web.hub-loadtest-account?_a=summary&runId={1}"-f$global:TFSAccountUrl,$run.id)
345
+
Write-Output ("To view run details navigate to {0}"-f$webResultsUrl)
$summary+= ('[Compare with run {0}]({1}/_apps/hub/ms.vss-cloudloadtest-web.hub-loadtest-account?_a=compare&runId1={2}&runId2={3}) from [build {4}]({1}/{5}/_build#buildId={4}&_a=summary).'-f$previousRun.runNumber,$global:TFSAccountUrl,$previousRun.id,$run.id,$lastSuccessfulBuild.id,$env:System_TeamProjectId,$env:BUILD_BUILDID)
383
-
break
384
-
}
385
-
}
386
-
}
387
-
}
388
-
389
-
if(!$runComparisonAvailable)
390
-
{
391
-
$summary+= ('No previous run found for comparison.')
392
-
}
393
-
353
+
$summary= ('[Test Run: {0}]({1}) using {2}.<br/>'-f$run.runNumber,$webResultsUrl,$run.name)
############################################## PS Script execution starts here ##########################################
367
353
WriteTaskMessages "Starting Load Test Script"
368
354
@@ -437,8 +423,11 @@ if ($drop.dropType -eq "TestServiceBlobDrop")
437
423
WriteTaskMessages "The load test completed successfully."
438
424
}
439
425
440
-
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
441
-
Write-Output ("To view run details navigate to {0}/_apps/hub/ms.vss-cloudloadtest-web.hub-loadtest-account?_a=summary&runId={1}"-f$global:TFSAccountUrl,$run.id)
426
+
$run= GetTestRun $headers$run.id
427
+
$webResultsUri=$run.WebResultUrl
428
+
429
+
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
430
+
Write-Output ("To view run details navigate to {0}"-f$webResultsUri)
442
431
Write-Output"To view detailed results navigate to Load Test | Load Test Manager in Visual Studio IDE, and open this run."
$summary+= ('[Compare with run {0}]({1}/_apps/hub/ms.vss-cloudloadtest-web.hub-loadtest-account?_a=compare&runId1={2}&runId2={3}) from [build {4}]({1}/{5}/_build#buildId={4}&_a=summary).'-f$previousRun.runNumber,$global:TFSAccountUrl,$previousRun.id,$run.id,$lastSuccessfulBuild.id,$env:System_TeamProjectId,$env:BUILD_BUILDID)
489
-
break
490
-
}
491
-
}
492
-
}
493
-
}
494
-
495
-
if(!$runComparisonAvailable)
496
-
{
497
-
$summary+= ('No previous run found for comparison.')
498
-
}
499
460
461
+
$summary= ('<span class="bowtie-icon {3}" /> {4}<br/>[Test Run: {0}]({1}) using {2}.<br/>'-f$run.runNumber,$webResultsUri,$run.name,$thresholdImage,$thresholdMessage)
0 commit comments