From 0cf2f3ee180afd55152794ca19ea666534d00d13 Mon Sep 17 00:00:00 2001 From: NikolayKa Date: Tue, 28 Mar 2017 14:26:07 -0700 Subject: [PATCH 1/2] added git ignore --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24a7ccd --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/.vs/slnx.sqlite +/.vs/slnx.sqlite-journal +/.vs/customer-scripts/v15/.suo From 9686caed26e67a286cc772d20bb52532a16416dd Mon Sep 17 00:00:00 2001 From: NikolayKa Date: Tue, 28 Mar 2017 14:26:47 -0700 Subject: [PATCH 2/2] changed to work with PS5 --- .../throwif-trxfromtestrun-ofbuild-hasfailedoutcome.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/build/orderedtest/throwif-trxfromtestrun-ofbuild-hasfailedoutcome.ps1 b/test/build/orderedtest/throwif-trxfromtestrun-ofbuild-hasfailedoutcome.ps1 index 6b98403..cb7f82c 100644 --- a/test/build/orderedtest/throwif-trxfromtestrun-ofbuild-hasfailedoutcome.ps1 +++ b/test/build/orderedtest/throwif-trxfromtestrun-ofbuild-hasfailedoutcome.ps1 @@ -25,15 +25,17 @@ Write-Host $testrunid # http://localhost:8080/tfs/DefaultCollection/testproject/_apis/test/runs/33/attachments Write-Host $tfsurl$teamproject/_apis/test/runs/$testrunid/attachments $attachments=Invoke-RestMethod -Uri $tfsurl$teamproject/_apis/test/runs/$testrunid/attachments -Method Get -Headers $headers -$trxattachments = $attachments | where { $_.value.filename.endswith(".trx") } +$trxattachments = ($attachments.value | Where-Object { + $_.attachmentType -eq "tmiTestRunSummary" +}) if($trxattachments -eq $null -or $trxattachments.count -eq 0) { throw "no test run attachments found of type trx" } -$trxattachments= $trxattachments | Sort-Object { $_.value.createddate } -$trxattachmentid=$trxattachments[0].value.id +$trxattachments= $trxattachments.value | Sort-Object { $_.createddate } +$trxattachmentid=$trxattachments[0].id Write-Host $trxattachmentid