All URIs are relative to https://apitryout.qtestnet.com/
Method | HTTP request | Description |
---|---|---|
create | POST /api/v3/projects/{projectId}/builds | Creates a Build |
delete | DELETE /api/v3/projects/{projectId}/builds/{buildId} | Deletes a Build |
get | GET /api/v3/projects/{projectId}/builds/{buildId} | Gets a Build |
get_builds | GET /api/v3/projects/{projectId}/builds | Gets multiple Builds |
update | PUT /api/v3/projects/{projectId}/builds/{buildId} | Updates a Build |
BuildResource create(project_id, body)
Creates a Build
To create a Build under a parent Release qTest Manager version: 4+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.BuildApi()
project_id = 789 # int | ID of the project
body = swagger_client.BuildResource() # BuildResource | <em>name (required):</em> Build name <em>release (required):</em> The parent Release under which the Build will be located <em>properties:</em> An array of field-value pairs
try:
# Creates a Build
api_response = api_instance.create(project_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildApi->create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
body | BuildResource | <em>name (required):</em> Build name <em>release (required):</em> The parent Release under which the Build will be located <em>properties:</em> An array of field-value pairs |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object delete(project_id, build_id)
Deletes a Build
To delete a Build qTest Manager version: 6+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.BuildApi()
project_id = 789 # int | ID of the project
build_id = 789 # int | ID of the Build to delete
try:
# Deletes a Build
api_response = api_instance.delete(project_id, build_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildApi->delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
build_id | int | ID of the Build to delete |
object
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuildResource get(project_id, build_id)
Gets a Build
To retrieve a BuildqTest Manager version: 6+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.BuildApi()
project_id = 789 # int | ID of the project
build_id = 789 # int | ID of the Build
try:
# Gets a Build
api_response = api_instance.get(project_id, build_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildApi->get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
build_id | int | ID of the Build |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[BuildResource] get_builds(project_id, release_id)
Gets multiple Builds
To retrieve all Builds under a Release qTest Manager version: 6+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.BuildApi()
project_id = 789 # int | ID of the project
release_id = 789 # int | ID of the parent Release
try:
# Gets multiple Builds
api_response = api_instance.get_builds(project_id, release_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildApi->get_builds: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
release_id | int | ID of the parent Release |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuildResource update(project_id, build_id, body)
Updates a Build
To update a Build qTest Manager version: 6+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.BuildApi()
project_id = 789 # int | ID of the project
build_id = 789 # int | ID of the Build
body = swagger_client.BuildResource() # BuildResource | The Build's updated properties
try:
# Updates a Build
api_response = api_instance.update(project_id, build_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildApi->update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
build_id | int | ID of the Build | |
body | BuildResource | The Build's updated properties |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]