test cases
3 TopicsUnable to delete Test Cases in Azure Devops
Hi, I'm able to create Test Cases in Azure Devops, but unable to delete the same. I understand that they can only be permanently deleted and I need to have certain rights to do so. I did my research and below are the things I did, but still not getting the 'permanently delete' option. 1) I'm Project Admin and part of Project Administrator group for the project in question. 2) My access level is set to 'Basic + Test Plans' 3) Test Plan is enabled in Project Settings ( Overview ) as suggested in other forums. Reference - https://docs.microsoft.com/en-us/azure/devops/boards/backlogs/delete-test-artifacts?view=azure-devops I'm still not getting 'Permanently Delete' option, please help.3.4KViews0likes2CommentsOffice 365 Migration: Test Cases - OneDrive for Business
Dear Community, I hope you are well even during the actual situation. We are planning test cases for the Office 365 applications for our migration. Do we have dedicated test cases or a list of tests for OneDrive, which are already defined? We would like to combine automated tests with manual tests. And especially for the manual tests, we would like to have a set of functionality test cases which we could test with a focus group. Thanks for your help!3.2KViews0likes1CommentSupport for PowerShell Script : Re-run only the failed test cases during the TFS build process-CI:CD
Hi Team, We developed a test automation micro service in our project. Currently, we are running test cases by calling the micro service : using PowerShell script during the TFS build process. Here, I require small help to re-run only the failed test cases with the below PowerShell script. Please suggest and support us. our sample code: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $runURL = APIURL + 'run/' + Project Write-Host "startings tests for ["api"] using url [$runURL]" try { Write-Host "Invoke-WebRequest - [$runURL]" $response = Invoke-WebRequest -UseBasicParsing -Uri $runURL Write-Host "Invoke-WebRequest - [$runURL]" $sessionID = $response.Content Write-Host "sessionID - [$sessionID.Content]" $resultURL = APIURL + 'files/session/' + $sessionID.Replace("`"", "") Write-Host "resultURL [$resultURL] " $statusUrl = $response.Headers["Location"] Write-Host "statusUrl- [$statusUrl]" } catch { Write-host "failed to start test" -foregroundcolor Red exit 1; } $testResults = "$(System.DefaultWorkingDirectory)\TestResult-api.trx" $i = 0 >$null 2>&1 while ($true) { $i++ >$null 2>&1 $statusCode = 0 try { $statusCode = (Invoke-WebRequest -UseBasicParsing -Uri $statusUrl -ErrorAction Continue).statuscode } catch { $statusCode = $_.Exception.Response.StatusCode.Value__ } if ($statusCode -eq "204") { Write-host "tests completed in about" ($i * 5) "seconds" -foregroundcolor Blue Write-host "follow [$resultURL] to download test results" -foregroundcolor Gray try { Invoke-WebRequest -Uri $resultURL -OutFile $testResults if (!$testResults) { Write-Host "unable to read results" exit 1 break; } } catch { Write-Host "failed to download test results" exit 1 break; } $regex = 'outcome="[a-z]{0,10}" ' $failed = select-string -Path $testResults -Pattern $regex -AllMatches | % { $_.Matches } | % { $_.Value } | Where-Object { $_ -notmatch 'Passed' } if ($failed -and $failed.Trim().length -ge 0) { Write-Error "tests failed" break; } else { Write-Host "tests passed" -foregroundcolor Green break; } } elseif ($statusCode -eq "417") { Write-host "tests in progress" -foregroundcolor Blue } elseif ($statusCode -eq "404") { Write-Error "failed to find test result" break; } elseif ($statusCode -eq "503") { Write-Error "test service error" break; } else { Write-Error "unknown test error: $statusCode" break; } start-sleep -s 5; if ($i -eq 240) { Write-Error "tests timed out" break; } }1.5KViews0likes0Comments