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 ##########################################
@@ -269,46 +261,22 @@ if ($drop.dropType -eq "InPlaceDrop")
269
261
270
262
$run= QueueTestRun $headers$runJson
271
263
MonitorTestRun $headers$run
272
-
264
+
$webResultsUrl= GetTestRunUri $run.id$headers
265
+
273
266
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
274
-
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)
267
+
Write-Output ("To view run details navigate to {0}"-f$webResultsUrl)
275
268
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)
301
-
break
302
-
}
303
-
}
304
-
}
305
-
}
278
+
$summary= ('[Test Run: {0}]({1}) using {2}.<br/>'-f$run.runNumber,$webResultsUrl,$run.name)
306
279
307
-
if(!$runComparisonAvailable)
308
-
{
309
-
$summary+= ('No previous run found for comparison.')
############################################## PS Script execution starts here ##########################################
299
280
WriteTaskMessages "Starting Load Test Script"
300
281
@@ -357,44 +338,19 @@ if ($drop.dropType -eq "TestServiceBlobDrop")
357
338
WriteTaskMessages "The load test completed successfully."
358
339
}
359
340
341
+
$run= GetTestRun $headers$run.id
342
+
$webResultsUrl=$run.WebResultUrl
360
343
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
361
-
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)
344
+
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)
387
-
break
388
-
}
389
-
}
390
-
}
391
-
}
392
-
393
-
if(!$runComparisonAvailable)
394
-
{
395
-
$summary+= ('No previous run found for comparison.')
396
-
}
397
-
352
+
$summary= ('[Test Run: {0}]({1}) using {2}.<br/>'-f$run.runNumber,$webResultsUrl,$run.name)
############################################## PS Script execution starts here ##########################################
@@ -441,8 +423,11 @@ if ($drop.dropType -eq "TestServiceBlobDrop")
441
423
WriteTaskMessages "The load test completed successfully."
442
424
}
443
425
444
-
Write-Output ("Run-id for this load test is {0} and its name is '{1}'."-f$run.runNumber,$run.name)
445
-
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)
446
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)
493
-
break
494
-
}
495
-
}
496
-
}
497
-
}
498
-
499
-
if(!$runComparisonAvailable)
500
-
{
501
-
$summary+= ('No previous run found for comparison.')
502
-
}
503
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