GetProjectTestcasesById
This method can be used for the following functionality: Get all testcases for a project you have access to, by project identifier (Id).
Parameters
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
Headers
GET /api/ss/project/:id/testcases HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: closeQuery
id (string)
Identifier for the project.
Example:
GET /api/ss/project/5e64179c899bb708b55ea48c/testcases HTTP/1.1status (string) (optional)
Test case status. Must be one of the following: Tested, Not-Tested, In-Progress, Not-Applicable
Example:
project_testcase_cf_key_allowlist (string) (optional)
List of Project Test Case custom field keys to include in response. Add multiple for more than one key e.g. ?project_testcase_cf_key_allowlist=key1&project_testcase_cf_key_allowlist=key2 or specify no keys to exclude all fields e.g. ?project_testcase_cf_key_allowlist=
Example:
project_testcase_cf_key_blocklist (string) (optional)
List of Project Test Case custom field keys to exclude from response. Add multiple for more than one key e.g. ?project_testcase_cf_key_blocklist=key1&project_testcase_cf_key_blocklist=key2
Example:
testcase_cf_key_allowlist (string) (optional)
List of Test Case custom field keys to include in response. Add multiple for more than one key e.g. ?testcase_cf_key_allowlist=key1&testcase_cf_key_allowlist=key2 or specify no keys to exclude all fields e.g. ?testcase_cf_key_allowlist=
Example:
testcase_cf_key_blocklist (string) (optional)
List of Test Case custom field keys to exclude from response. Add multiple for more than one key e.g. ?testcase_cf_key_blocklist=key1&testcase_cf_key_blocklist=key2
Example:
Example
The following example is a cURL request to get all Tested test cases on a project.
Request
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
Response
Response contains an array of test case objects.
Last updated