Skip to content
Advertisement

Tag: azure-devops

Publish Unit test in Python

I need to publish the result, but could not and have looked through this site and made research but still having issue to publish test result. Do I need to edit certain file similar to the cypress.json to be able to resolve the issue of Publishing. Both Unit test and the coveratge are not publishing any result and files are

Azure DevOps Python {“count”:1,”value”:{“Message”:”Unexpected character encountered while parsing value: q. Path ”, line 0, position 0.rn”}}

Trying to get Work Items for an Azure DevOps Project. Gives response 400 Have tried many things, been struggling a bit with this. Any help is much appreciated. How to get project’s work items without using their ID . Does the request need to be changed in some way? Answer Update your post to (json=payload): or use something like this:

REST API: How to prevent “An existing connection was forcibly closed by the remote host”

Following this thread, https://stackoverflow.com/a/2582070/6534818, I am wondering if there is any room for improvement to my REST API query that would limit the frequency to which I receive the following error: “An existing connection was forcibly closed by the remote host”. The thread suggests, as one possibility, that the query is malformed. My general setup for a query to Azure

while uploading a file into azure devops using Push API, The object ‘”‘ does not exist.’ get displayed “typeName”:”Microsoft.TeamFoundation.Git

I am trying to add a file into respos folder using below API’s: The response for the above url includes: And treating this Object ID: YYYYYYYYYYYYYYYYYYYYYY as old ObjectID and trying to push a file into path: refs/heads/XXX using below API: But the response were : And sure missing a final step & basic as well. Any suggestions pls Answer

Though Create-attachment & Upload attachment API’s are successful, still uploaded file is not visible in azure devops repos branch

After lots lots of struggle, finally framed below code to interact with Azure Devops via REST API but dont see file in Azure Devops- Repos’s Branches. First created a attachment using below API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/create?view=azure-devops-rest-6.0 Later uploaded the attachment using below API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/upload%20chunk?view=azure-devops-rest-6.0 Both the API’s are suucessful but still couldn’t see the file in azure devops-Repos Branches. What am i

Advertisement