Points - Update
Update test points.
PATCH https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/points/{pointIds}?api-version=5.1
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
organization
|
path | True |
string |
The name of the Azure DevOps organization. |
plan
|
path | True |
integer int32 |
ID of the test plan. |
point
|
path | True |
string |
ID of the test point to get. Use a comma-separated list of IDs to update multiple test points. |
project
|
path | True |
string |
Project ID or project name |
suite
|
path | True |
integer int32 |
ID of the suite that contains the points. |
api-version
|
query | True |
string |
Version of the API to use. This should be set to '5.1' to use this version of the api. |
Request Body
Name | Type | Description |
---|---|---|
outcome |
string |
Outcome to update. |
resetToActive |
boolean |
Reset test point to active. |
tester |
Tester to update. Type IdentityRef. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
successful operation |
Security
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Scopes
Name | Description |
---|---|
vso.test_write | Grants the ability to read, create, and update test plans, cases, results and other test management related artifacts. |
Examples
Change the tester |
Re-activate |
Set the outcome |
Change the tester
Sample Request
PATCH https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1/points/{pointIds}?api-version=5.1
{
"tester": {
"displayName": "Jamal Hartnett"
}
}
Sample Response
{
"count": 1,
"value": [
{
"id": 1,
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1/Points/1",
"assignedTo": {
"id": "d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"displayName": "Jamal Hartnett",
"uniqueName": "fabrikamfiber4@hotmail.com",
"url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=d291b0c4-a05c-4ea6-8df1-4b41d5f39eff"
},
"configuration": {
"id": "2",
"name": "Windows 8"
},
"failureType": "None",
"lastTestRun": {
"id": "30",
"name": "sprint1 (Manual)",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Runs/30"
},
"lastResult": {
"id": "100000",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Runs/30/Results/100000"
},
"lastUpdatedDate": "2014-05-28T16:38:54.993Z",
"lastUpdatedBy": {
"id": "8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d",
"displayName": "Chuck Reinhart",
"uniqueName": "fabrikamfiber3@hotmail.com",
"url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d",
"imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d"
},
"outcome": "Passed",
"revision": 24,
"state": "Completed",
"suite": {
"id": "1",
"name": "sprint1",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1"
},
"testCase": {
"id": "39",
"url": "https://dev.azure.com/fabrikam/_apis/wit/workItems/39",
"webUrl": "https://dev.azure.com/fabrikam/web/wi.aspx?pcguid=d81542e4-cdfa-4333-b082-1ae2d6c3ad16&id=39"
},
"testPlan": {
"id": "1",
"name": "sprint1",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1"
},
"workItemProperties": [
{
"workItem": {
"key": "Microsoft.VSTS.TCM.AutomationStatus",
"value": "Not Automated"
}
}
]
}
]
}
Re-activate
Sample Request
PATCH https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1/points/{pointIds}?api-version=5.1
{
"resetToActive": "true"
}
Sample Response
{
"count": 1,
"value": [
{
"id": 1,
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1/Points/1",
"assignedTo": {
"id": "d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"displayName": "Jamal Hartnett",
"uniqueName": "fabrikamfiber4@hotmail.com",
"url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=d291b0c4-a05c-4ea6-8df1-4b41d5f39eff"
},
"configuration": {
"id": "2",
"name": "Windows 8"
},
"failureType": "None",
"lastTestRun": {
"id": "0"
},
"lastResult": {
"id": "0"
},
"lastUpdatedDate": "2014-05-28T16:38:53.563Z",
"lastUpdatedBy": {
"id": "8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d",
"displayName": "Chuck Reinhart",
"uniqueName": "fabrikamfiber3@hotmail.com",
"url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d",
"imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d"
},
"outcome": "Unspecified",
"revision": 23,
"state": "Ready",
"suite": {
"id": "1",
"name": "sprint1",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1"
},
"testCase": {
"id": "39",
"url": "https://dev.azure.com/fabrikam/_apis/wit/workItems/39",
"webUrl": "https://dev.azure.com/fabrikam/web/wi.aspx?pcguid=d81542e4-cdfa-4333-b082-1ae2d6c3ad16&id=39"
},
"testPlan": {
"id": "1",
"name": "sprint1",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1"
},
"workItemProperties": [
{
"workItem": {
"key": "Microsoft.VSTS.TCM.AutomationStatus",
"value": "Not Automated"
}
}
]
}
]
}
Set the outcome
Sample Request
PATCH https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1/points/{pointIds}?api-version=5.1
{
"outcome": "Passed"
}
Sample Response
{
"count": 1,
"value": [
{
"id": 1,
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1/Points/1",
"assignedTo": {
"id": "d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"displayName": "Jamal Hartnett",
"uniqueName": "fabrikamfiber4@hotmail.com",
"url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/d291b0c4-a05c-4ea6-8df1-4b41d5f39eff",
"imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=d291b0c4-a05c-4ea6-8df1-4b41d5f39eff"
},
"configuration": {
"id": "2",
"name": "Windows 8"
},
"failureType": "None",
"lastTestRun": {
"id": "30",
"name": "sprint1 (Manual)",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Runs/30"
},
"lastResult": {
"id": "100000",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Runs/30/Results/100000"
},
"lastUpdatedDate": "2014-05-28T16:38:54.383Z",
"lastUpdatedBy": {
"id": "8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d",
"displayName": "Chuck Reinhart",
"uniqueName": "fabrikamfiber3@hotmail.com",
"url": "https://vssps.dev.azure.com/fabrikam/_apis/Identities/8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d",
"imageUrl": "https://dev.azure.com/fabrikam/_api/_common/identityImage?id=8c8c7d32-6b1b-47f4-b2e9-30b477b5ab3d"
},
"outcome": "Passed",
"revision": 23,
"state": "Completed",
"suite": {
"id": "1",
"name": "sprint1",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1/Suites/1"
},
"testCase": {
"id": "39",
"url": "https://dev.azure.com/fabrikam/_apis/wit/workItems/39",
"webUrl": "https://dev.azure.com/fabrikam/web/wi.aspx?pcguid=d81542e4-cdfa-4333-b082-1ae2d6c3ad16&id=39"
},
"testPlan": {
"id": "1",
"name": "sprint1",
"url": "https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/test/Plans/1"
},
"workItemProperties": [
{
"workItem": {
"key": "Microsoft.VSTS.TCM.AutomationStatus",
"value": "Not Automated"
}
}
]
}
]
}
Definitions
Name | Description |
---|---|
Identity |
|
Last |
Last result details of test point. |
Point |
Model to update test point. |
Reference |
The class to represent a collection of REST reference links. |
Shallow |
An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links. |
Test |
Test point. |
Work |
WorkItem reference Details. |
IdentityRef
Name | Type | Description |
---|---|---|
_links |
This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. |
|
descriptor |
string |
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. |
directoryAlias |
string |
Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary |
displayName |
string |
This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. |
id |
string |
|
imageUrl |
string |
Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary |
inactive |
boolean |
Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary |
isAadIdentity |
boolean |
Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) |
isContainer |
boolean |
Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) |
isDeletedInOrigin |
boolean |
|
profileUrl |
string |
Deprecated - not in use in most preexisting implementations of ToIdentityRef |
uniqueName |
string |
Deprecated - use Domain+PrincipalName instead |
url |
string |
This url is the full route to the source resource of this graph subject. |
LastResultDetails
Last result details of test point.
Name | Type | Description |
---|---|---|
dateCompleted |
string |
CompletedDate of LastResult. |
duration |
integer |
Duration of LastResult. |
runBy |
RunBy. |
PointUpdateModel
Model to update test point.
Name | Type | Description |
---|---|---|
outcome |
string |
Outcome to update. |
resetToActive |
boolean |
Reset test point to active. |
tester |
Tester to update. Type IdentityRef. |
ReferenceLinks
The class to represent a collection of REST reference links.
Name | Type | Description |
---|---|---|
links |
object |
The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. |
ShallowReference
An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.
Name | Type | Description |
---|---|---|
id |
string |
ID of the resource |
name |
string |
Name of the linked resource (definition name, controller name, etc.) |
url |
string |
Full http link to the resource |
TestPoint
Test point.
Name | Type | Description |
---|---|---|
assignedTo |
AssignedTo. Type IdentityRef. |
|
automated |
boolean |
Automated. |
comment |
string |
Comment associated with test point. |
configuration |
Configuration. Type ShallowReference. |
|
failureType |
string |
Failure type of test point. |
id |
integer |
ID of the test point. |
lastResetToActive |
string |
Last date when test point was reset to Active. |
lastResolutionStateId |
integer |
Last resolution state id of test point. |
lastResult |
Last result of test point. Type ShallowReference. |
|
lastResultDetails |
Last result details of test point. Type LastResultDetails. |
|
lastResultState |
string |
Last result state of test point. |
lastRunBuildNumber |
string |
LastRun build number of test point. |
lastTestRun |
Last testRun of test point. Type ShallowReference. |
|
lastUpdatedBy |
Test point last updated by. Type IdentityRef. |
|
lastUpdatedDate |
string |
Last updated date of test point. |
outcome |
string |
Outcome of test point. |
revision |
integer |
Revision number. |
state |
string |
State of test point. |
suite |
Suite of test point. Type ShallowReference. |
|
testCase |
TestCase associated to test point. Type WorkItemReference. |
|
testPlan |
TestPlan of test point. Type ShallowReference. |
|
url |
string |
Test point Url. |
workItemProperties |
object[] |
Work item properties of test point. |
WorkItemReference
WorkItem reference Details.
Name | Type | Description |
---|---|---|
id |
string |
WorkItem Id. |
name |
string |
WorkItem Name. |
type |
string |
WorkItem Type. |
url |
string |
WorkItem Url. Valid Values : (Bug, Task, User Story, Test Case) |
webUrl |
string |
WorkItem WebUrl. |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for