All URIs are relative to https://apitryout.qtestnet.com/
Method | HTTP request | Description |
---|---|---|
add_comment | POST /api/v3/projects/{projectId}/requirements/{idOrKey}/comments | Adds a Comment to a Requirement |
create_requirement | POST /api/v3/projects/{projectId}/requirements | Creates a Requirement |
delete | DELETE /api/v3/projects/{projectId}/requirements/{requirementId} | Deletes a Requirement |
delete_comment | DELETE /api/v3/projects/{projectId}/requirements/{idOrKey}/comments/{commentId} | Deletes a Comment of a Requirement |
get_comment | GET /api/v3/projects/{projectId}/requirements/{idOrKey}/comments/{commentId} | Gets a Comment of a Requirement |
get_comments | GET /api/v3/projects/{projectId}/requirements/{idOrKey}/comments | Gets all Comments of a Requirement |
get_public_traceability_matrix_report | GET /api/v3/projects/{projectId}/requirements/trace-matrix-report | Gets Requirement Traceability Matrix Report |
get_requirement | GET /api/v3/projects/{projectId}/requirements/{requirementId} | Gets a Requirement |
get_requirements | GET /api/v3/projects/{projectId}/requirements | Gets multiple Requirements |
update_comment | PUT /api/v3/projects/{projectId}/requirements/{idOrKey}/comments/{commentId} | Updates a Comment of a Requirement |
update_requirement | PUT /api/v3/projects/{projectId}/requirements/{requirementId} | Updates a Requirement |
CommentResource add_comment(project_id, id_or_key, body)
Adds a Comment to a Requirement
To add a comment to a Requirement qTest Manager version: 7.5+
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.RequirementApi()
project_id = 789 # int | ID of the project
id_or_key = 'id_or_key_example' # str | PID or ID of the Requirement.
body = swagger_client.CommentResource() # CommentResource | The comment's properties and its content
try:
# Adds a Comment to a Requirement
api_response = api_instance.add_comment(project_id, id_or_key, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->add_comment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
id_or_key | str | PID or ID of the Requirement. | |
body | CommentResource | The comment's properties and its content |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RequirementResource create_requirement(project_id, body, parent_id=parent_id)
Creates a Requirement
To create a new Requirement 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.RequirementApi()
project_id = 789 # int | ID of the project
body = swagger_client.RequirementResource() # RequirementResource | <p><em>name *:</em> Requirement name</p><p><em>properties:</em> An array of field-value pairs</p>
parent_id = 789 # int | ID of the parent Module under which the Requirement will be located (optional)
try:
# Creates a Requirement
api_response = api_instance.create_requirement(project_id, body, parent_id=parent_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->create_requirement: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
body | RequirementResource | <p><em>name *:</em> Requirement name</p><p><em>properties:</em> An array of field-value pairs</p> | |
parent_id | int | ID of the parent Module under which the Requirement will be located | [optional] |
- 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, requirement_id)
Deletes a Requirement
To delete a Requirement 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.RequirementApi()
project_id = 789 # int | ID of the project
requirement_id = 789 # int | ID of the Requirement which needs to be deleted.
try:
# Deletes a Requirement
api_response = api_instance.delete(project_id, requirement_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
requirement_id | int | ID of the Requirement which needs to be deleted. |
object
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object delete_comment(project_id, id_or_key, comment_id)
Deletes a Comment of a Requirement
To delete a comment of a Requirement qTest Manager version: 7.5+
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.RequirementApi()
project_id = 789 # int | ID of the project
id_or_key = 'id_or_key_example' # str | PID or ID of the Requirement whose comment you want to delete
comment_id = 789 # int | The comment's ID
try:
# Deletes a Comment of a Requirement
api_response = api_instance.delete_comment(project_id, id_or_key, comment_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->delete_comment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
id_or_key | str | PID or ID of the Requirement whose comment you want to delete | |
comment_id | int | The comment's ID |
object
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CommentResource get_comment(project_id, id_or_key, comment_id)
Gets a Comment of a Requirement
To retrieve a comment of a Requirement qTest Manager version: 7.5+
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.RequirementApi()
project_id = 789 # int | ID of the project
id_or_key = 'id_or_key_example' # str | PID or ID of the Requirement whose comment you want to delete
comment_id = 789 # int | The comment's ID
try:
# Gets a Comment of a Requirement
api_response = api_instance.get_comment(project_id, id_or_key, comment_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->get_comment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
id_or_key | str | PID or ID of the Requirement whose comment you want to delete | |
comment_id | int | The comment's ID |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PagedResourceCommentResource get_comments(project_id, id_or_key)
Gets all Comments of a Requirement
To retrieve all comments of a Requirement qTest Manager version: 7.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.RequirementApi()
project_id = 789 # int | ID of the project
id_or_key = 'id_or_key_example' # str | PID or ID of the Requirement whose comments you want to retrieve
try:
# Gets all Comments of a Requirement
api_response = api_instance.get_comments(project_id, id_or_key)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->get_comments: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
id_or_key | str | PID or ID of the Requirement whose comments you want to retrieve |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TraceabilityRequirement] get_public_traceability_matrix_report(project_id, page=page, size=size, field_ids=field_ids)
Gets Requirement Traceability Matrix Report
To retrieve a report of Requirements with their covering Test Cases
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.RequirementApi()
project_id = 789 # int | ID of the project
page = 1 # int | By default the first page is returned but you can specify any page number to retrieve requirements. (optional) (default to 1)
size = 20 # int | The result is paginated. By default, the number of requirements in each page is 20. You can specify your custom number in this parameter and the maximum number is 999. (optional) (default to 20)
field_ids = 'field_ids_example' # str | ID(s) of requirement fields (system or custom fields) which you would like to retrieve. They are separated by commas. (optional)
try:
# Gets Requirement Traceability Matrix Report
api_response = api_instance.get_public_traceability_matrix_report(project_id, page=page, size=size, field_ids=field_ids)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->get_public_traceability_matrix_report: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
page | int | By default the first page is returned but you can specify any page number to retrieve requirements. | [optional] [default to 1] |
size | int | The result is paginated. By default, the number of requirements in each page is 20. You can specify your custom number in this parameter and the maximum number is 999. | [optional] [default to 20] |
field_ids | str | ID(s) of requirement fields (system or custom fields) which you would like to retrieve. They are separated by commas. | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RequirementResource get_requirement(project_id, requirement_id)
Gets a Requirement
To retrieve a Requirement 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.RequirementApi()
project_id = 789 # int | ID of the project
requirement_id = 789 # int | ID of the Requirement which you want to retrieve.
try:
# Gets a Requirement
api_response = api_instance.get_requirement(project_id, requirement_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->get_requirement: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
requirement_id | int | ID of the Requirement which you want to retrieve. |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[RequirementResource] get_requirements(project_id, parent_id=parent_id, page=page, size=size)
Gets multiple Requirements
To retrieve all Requirements or Requirements under a specific Module
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.RequirementApi()
project_id = 789 # int | ID of the project
parent_id = 789 # int | Specify the parent Module's ID to retrieve all of its Requirements which are located directly under the parent Module (optional)
page = 1 # int | By default the first page is returned but you can specify any page number to retrieve requirements. (optional) (default to 1)
size = 56 # int | The result is paginated. By the default, the number of requirements in each page is 20. You can specify your custom number in this parameter. (optional)
try:
# Gets multiple Requirements
api_response = api_instance.get_requirements(project_id, parent_id=parent_id, page=page, size=size)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->get_requirements: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
parent_id | int | Specify the parent Module's ID to retrieve all of its Requirements which are located directly under the parent Module | [optional] |
page | int | By default the first page is returned but you can specify any page number to retrieve requirements. | [optional] [default to 1] |
size | int | The result is paginated. By the default, the number of requirements in each page is 20. You can specify your custom number in this parameter. | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CommentResource update_comment(project_id, id_or_key, comment_id, body)
Updates a Comment of a Requirement
To modify a comment of a Requirement qTest Manager version: 7.5+
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.RequirementApi()
project_id = 789 # int | ID of the project
id_or_key = 'id_or_key_example' # str | PID or ID of the Requirement whose comment you want to update
comment_id = 789 # int | The comment's ID
body = swagger_client.CommentResource() # CommentResource | The comment's updated content
try:
# Updates a Comment of a Requirement
api_response = api_instance.update_comment(project_id, id_or_key, comment_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->update_comment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
id_or_key | str | PID or ID of the Requirement whose comment you want to update | |
comment_id | int | The comment's ID | |
body | CommentResource | The comment's updated content |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RequirementResource update_requirement(project_id, requirement_id, body, parent_id=parent_id)
Updates a Requirement
To update properties of an Requirement or to move it to other parent Module
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.RequirementApi()
project_id = 789 # int | ID of the project
requirement_id = 789 # int | ID of the Requirement which needs to be updated.
body = swagger_client.RequirementResource() # RequirementResource | <strong>name: *</strong> Requirement name. <strong>properties:</strong> An array of field-value pairs
parent_id = 789 # int | ID of the parent Module to which the Requirement will be moved to (optional)
try:
# Updates a Requirement
api_response = api_instance.update_requirement(project_id, requirement_id, body, parent_id=parent_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequirementApi->update_requirement: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | int | ID of the project | |
requirement_id | int | ID of the Requirement which needs to be updated. | |
body | RequirementResource | <strong>name: *</strong> Requirement name. <strong>properties:</strong> An array of field-value pairs | |
parent_id | int | ID of the parent Module to which the Requirement will be moved to | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]