Comments (6)
There's an endpoint for it, so there will be a Python API for it as well.
from azure-devops-python-samples.
You're right. That didn't exist in the API v4.1, so now we wait.
from azure-devops-python-samples.
@pbissert Is this what you are looking for get_test_result_by_id
:
The API is there in 4.1, it is just not documented on the site.
from azure-devops-python-samples.
@tedchamb Thanks for pointing that out. Let me see if I can get it to work.
Really I'm just trying to get the latest outcome for a given test case. It seems like the path to get there is to loop through all run ids (get_test_runs) loop through the test results for an iterations run id, then check the test case.
desired_test_case = 1234
for run in test_client.get_test_runs('Portfolio'):
for res in test_client.get_test_results('Portfolio', run.id):
if res.test_case == desired_test_case:
return res.outcome
return None
Is there a more efficient way?
from azure-devops-python-samples.
Hello, I had a couple of follow-up questions.
With VSTS v4.1 test_client.py referenced above, I'd like to get the test results (passed, failed, blocked, etc.) for the tests in a test suite.
-
With the 'get_test_results' method, the test results are returned given you have the run_id. Is there a way to get the run_id's for a given 'test case'/'test case ID'?
-
And relatedly, the 'get_test_cases' method returns object addresses for 'point_assignments' and for 'test_case'. Is there a way to obtain the object values/contents for 'point_assignments' and for 'test_case'?
Thanks very much, in advance, for any help/guidance.
from azure-devops-python-samples.
Hi @BOB-PHL. If there's a REST API in the Test area which does what you want, then it works from Python. Unfortunately I don't know enough about the Test APIs to comment.
from azure-devops-python-samples.
Related Issues (14)
- Example of function `create_attachment` HOT 2
- There are no tests
- Add support of Azure DevOps version 5.0 / 5.1 HOT 1
- Samples for WIT attachments
- Sample for create test run and update test run result for particular test-points HOT 3
- Functionality to add a user to azure devops from AAD HOT 11
- Example using the operation_client
- Example for saving downloaded artifacts for build
- Setting up config for the first time gets misleading warning
- this breaks at the first step HOT 1
- Azur DevOps throws ValueError: Could not get version for Chrome with this command: reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version
- Example of how to configure a User's Permissions on a Git Repository
- Samples are rather limited HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-devops-python-samples.