Method | HTTP request | Description |
---|---|---|
addAttachmentToItem | POST /testruns/{id}/attachments | Add an existing attachment to the item with the specified ID |
addItemLink | POST /testruns/{id}/links | Create a new link for the item with the specified ID |
addTagToItem | POST /testruns/{id}/tags | Add an existing tag to the item with the specified ID |
deleteItemLink | DELETE /testruns/{id}/links/{linkId} | Delete the link with the specified ID |
deleteTestRun | DELETE /testruns/{id} | Delete the test run with the specified ID |
getActivities | GET /testruns/{id}/activities | Get all activities for the test run with the specified ID |
getAttachments | GET /testruns/{id}/attachments | Get all attachments for the item with the specified ID |
getDownstreamRelated | GET /testruns/{id}/downstreamrelated | Get all downstream related items for the test run with the specified ID |
getDownstreamRelationships | GET /testruns/{id}/downstreamrelationships | Get all downstream relationships for the test run with the specified ID |
getItemComments | GET /testruns/{id}/comments | Get all comments for the item with the specified ID |
getItemLinks | GET /testruns/{id}/links | Get all links for the item with the specified ID |
getLinkById | GET /testruns/{id}/links/{linkId} | Get the link with the specified ID |
getLock | GET /testruns/{id}/lock | Get the locked state, last locked date, and last locked by user for the item with the specified ID |
getTagOnItem | GET /testruns/{id}/tags/{tagId} | Get the tag with the specified ID |
getTagsOnItem | GET /testruns/{id}/tags | Get all tags for the item with the specified ID |
getTestRun | GET /testruns/{id} | Get the test run with the specified ID |
getTestRuns | GET /testruns | Search for test runs associated with test cases, test plans, an test cycles |
getUpstreamRelated | GET /testruns/{id}/upstreamrelated | Get all upstream related items for the test run with the specified ID |
getUpstreamRelationships | GET /testruns/{id}/upstreamrelationships | Get all upstream relationships for the test run with the specified ID |
getVersionOnItem5 | GET /testruns/{id}/versions/{versionNum} | Get the numbered version for the item with the specified ID |
getVersionedItem5 | GET /testruns/{id}/versions/{versionNum}/versioneditem | Get the snapshot of the test run at the specified version |
getVersionsOnItem5 | GET /testruns/{id}/versions | Get all versions for the item with the specified ID |
makeTestRunCurrent | POST /testruns/{id}/updatedtestcase | Delete the current test run and then create a new test run based on the latest test case version. |
patchTestRun | PATCH /testruns/{id} | Update the execution results for the test run with the specified ID |
removeAttachmentFromItem | DELETE /testruns/{id}/attachments/{attachmentId} | Remove an existing attachment from the item |
removeTagFromItem | DELETE /testruns/{id}/tags/{tagId} | Remove an existing tag from the item with the specified ID |
updateItemLink | PUT /testruns/{id}/links/{linkId} | Update the link with the specified ID |
updateLock | PUT /testruns/{id}/lock | Update the locked state of the item with the specified ID |
updateTestRun | PUT /testruns/{id} | Update the execution results for the test run with the specified ID |
CreatedResponse addAttachmentToItem(body, id)
Add an existing attachment to the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
RequestItemAttachment body = new RequestItemAttachment(); // RequestItemAttachment |
Integer id = 56; // Integer |
try {
CreatedResponse result = apiInstance.addAttachmentToItem(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#addAttachmentToItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestItemAttachment | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
CreatedResponse addItemLink(body, id)
Create a new link for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
RequestLink body = new RequestLink(); // RequestLink |
Integer id = 56; // Integer |
try {
CreatedResponse result = apiInstance.addItemLink(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#addItemLink");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestLink | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
CreatedResponse addTagToItem(body, id)
Add an existing tag to the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
RequestItemTag body = new RequestItemTag(); // RequestItemTag |
Integer id = 56; // Integer |
try {
CreatedResponse result = apiInstance.addTagToItem(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#addTagToItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestItemTag | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse deleteItemLink(linkId, id)
Delete the link with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer linkId = 56; // Integer |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.deleteItemLink(linkId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#deleteItemLink");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
linkId | Integer | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse deleteTestRun(id)
Delete the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.deleteTestRun(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#deleteTestRun");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: application/json
- Accept: application/json
ActivityDataListWrapper getActivities(id, startAt, maxResults, include)
Get all activities for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
ActivityDataListWrapper result = apiInstance.getActivities(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getActivities");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
AttachmentDataListWrapper getAttachments(id, startAt, maxResults, include)
Get all attachments for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
AttachmentDataListWrapper result = apiInstance.getAttachments(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getAttachments");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
AbstractItemDataListWrapper getDownstreamRelated(id, startAt, maxResults, include)
Get all downstream related items for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
AbstractItemDataListWrapper result = apiInstance.getDownstreamRelated(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getDownstreamRelated");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
RelationshipDataListWrapper getDownstreamRelationships(id, startAt, maxResults, include)
Get all downstream relationships for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
RelationshipDataListWrapper result = apiInstance.getDownstreamRelationships(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getDownstreamRelationships");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
CommentDataListWrapper getItemComments(id, startAt, maxResults, rootCommentsOnly, include)
Get all comments for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
Boolean rootCommentsOnly = false; // Boolean |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
CommentDataListWrapper result = apiInstance.getItemComments(id, startAt, maxResults, rootCommentsOnly, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getItemComments");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
rootCommentsOnly | Boolean | [optional] [default to false] | |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
LinkDataListWrapper getItemLinks(id, startAt, maxResults, include)
Get all links for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
LinkDataListWrapper result = apiInstance.getItemLinks(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getItemLinks");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
LinkDataWrapper getLinkById(linkId, id, include)
Get the link with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer linkId = 56; // Integer |
Integer id = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
LinkDataWrapper result = apiInstance.getLinkById(linkId, id, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getLinkById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
linkId | Integer | ||
id | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
LockDataWrapper getLock(id, include)
Get the locked state, last locked date, and last locked by user for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
LockDataWrapper result = apiInstance.getLock(id, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getLock");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
TagDataWrapper getTagOnItem(tagId, id, include)
Get the tag with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer tagId = 56; // Integer |
Integer id = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
TagDataWrapper result = apiInstance.getTagOnItem(tagId, id, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getTagOnItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | Integer | ||
id | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
TagDataListWrapper getTagsOnItem(id, startAt, maxResults, include)
Get all tags for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
TagDataListWrapper result = apiInstance.getTagsOnItem(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getTagsOnItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
TestRunDataWrapper getTestRun(id, include)
Get the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
TestRunDataWrapper result = apiInstance.getTestRun(id, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getTestRun");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
TestRunDataListWrapper getTestRuns(testCycle, testCase, testPlan, sortBy, startAt, maxResults, include)
Search for test runs associated with test cases, test plans, an test cycles
Must include at least one query parameter from testCycle, testCase, or testPlan
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
List<Integer> testCycle = Arrays.asList(56); // List<Integer> | Filter by test runs in test cycle id
List<Integer> testCase = Arrays.asList(56); // List<Integer> | Filter by test runs from test case id
List<Integer> testPlan = Arrays.asList(56); // List<Integer> | Filter by test runs in test plan id
List<String> sortBy = Arrays.asList("sortBy_example"); // List<String> | Sort orders can be added with the name of the field by which to sort, followed by .asc or .desc (e.g. 'name.asc' or 'testCycle.desc'). If not set, this defaults to documentKey.asc.
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
TestRunDataListWrapper result = apiInstance.getTestRuns(testCycle, testCase, testPlan, sortBy, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getTestRuns");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
testCycle | List<Integer> | Filter by test runs in test cycle id | [optional] |
testCase | List<Integer> | Filter by test runs from test case id | [optional] |
testPlan | List<Integer> | Filter by test runs in test plan id | [optional] |
sortBy | List<String> | Sort orders can be added with the name of the field by which to sort, followed by .asc or .desc (e.g. 'name.asc' or 'testCycle.desc'). If not set, this defaults to documentKey.asc. | [optional] |
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
AbstractItemDataListWrapper getUpstreamRelated(id, startAt, maxResults, include)
Get all upstream related items for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
AbstractItemDataListWrapper result = apiInstance.getUpstreamRelated(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getUpstreamRelated");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
RelationshipDataListWrapper getUpstreamRelationships(id, startAt, maxResults, include)
Get all upstream relationships for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
RelationshipDataListWrapper result = apiInstance.getUpstreamRelationships(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getUpstreamRelationships");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
VersionDataWrapper getVersionOnItem5(versionNum, id, include)
Get the numbered version for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer versionNum = 56; // Integer |
Integer id = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
VersionDataWrapper result = apiInstance.getVersionOnItem5(versionNum, id, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getVersionOnItem5");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
versionNum | Integer | ||
id | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
VersionedTestRunDataWrapper getVersionedItem5(versionNum, id, include)
Get the snapshot of the test run at the specified version
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer versionNum = 56; // Integer |
Integer id = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
VersionedTestRunDataWrapper result = apiInstance.getVersionedItem5(versionNum, id, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getVersionedItem5");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
versionNum | Integer | ||
id | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
VersionDataListWrapper getVersionsOnItem5(id, startAt, maxResults, include)
Get all versions for the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
VersionDataListWrapper result = apiInstance.getVersionsOnItem5(id, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#getVersionsOnItem5");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
CreatedResponse makeTestRunCurrent(id)
Delete the current test run and then create a new test run based on the latest test case version.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer id = 56; // Integer |
try {
CreatedResponse result = apiInstance.makeTestRunCurrent(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#makeTestRunCurrent");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse patchTestRun(body, id)
Update the execution results for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
List<RequestPatchOperation> body = Arrays.asList(new RequestPatchOperation()); // List<RequestPatchOperation> |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.patchTestRun(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#patchTestRun");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | List<RequestPatchOperation> | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse removeAttachmentFromItem(attachmentId, id)
Remove an existing attachment from the item
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer attachmentId = 56; // Integer |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.removeAttachmentFromItem(attachmentId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#removeAttachmentFromItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
attachmentId | Integer | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse removeTagFromItem(tagId, id)
Remove an existing tag from the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer tagId = 56; // Integer |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.removeTagFromItem(tagId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#removeTagFromItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | Integer | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse updateItemLink(linkId, body, id)
Update the link with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
Integer linkId = 56; // Integer |
RequestLink body = new RequestLink(); // RequestLink |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.updateItemLink(linkId, body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#updateItemLink");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
linkId | Integer | ||
body | RequestLink | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse updateLock(body, id)
Update the locked state of the item with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
RequestLock body = new RequestLock(); // RequestLock |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.updateLock(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#updateLock");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestLock | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse updateTestRun(body, id)
Update the execution results for the test run with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TestrunsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
TestrunsApi apiInstance = new TestrunsApi();
RequestTestRun body = new RequestTestRun(); // RequestTestRun |
Integer id = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.updateTestRun(body, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestrunsApi#updateTestRun");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestTestRun | ||
id | Integer |
- Content-Type: application/json
- Accept: application/json