Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

getTestResultsByQuery and getTestRunsByQuery return 401(Unauthorized) #142

Open
ignatenko-paul opened this issue May 16, 2019 · 1 comment

Comments

@ignatenko-paul
Copy link

ignatenko-paul commented May 16, 2019

Initialize client in JS with:
let restClient = VSS_Service.getCollectionClient(TM_Rest_Client.TestHttpClient2_3)

Call getTestResultsByQuery:
var q = { query: "Select * from TestResult where TestCaseId in (657,782,2325,29859,127131)"}
restClient .getTestResultsByQuery(q, 'Project', true,null,null,10)

Actual result when selecting extension:
POST https://.../_apis/test/Results/Query?includeResultDetails=true&%24top=10 401 (Unauthorized)

Notes:
If corresponding Rest Api request is sent from Postman everything is Ok.
And other corresponding methods related to this client works w/o any issue.

Thanks for assistance...

@bondib
Copy link

bondib commented Jul 24, 2019

+1
Same issue here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants