AttackForge Enterprise & AttackForge Core
Powered By GitBook
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

1
GET /api/ss/project/:id/testcases HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

id (string)
Identifier for the project.
Example:
1
GET /api/ss/project/5e64179c899bb708b55ea48c/testcases HTTP/1.1
Copied!
status (string) (optional)
Testcase status. Must be one of the following: Tested, Not-Tested, In-Progress, Not-Applicable
Example:
1
GET /api/ss/project/5e64179c899bb708b55ea48c/testcases?status=Tested HTTP/1.1
Copied!

Example

The following example is a cURL request to get all Tested testcases on a project.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X GET 'https://demo.attackforge.com/api/ss/project/5e64179c899bb708b55ea48c/testcases?status=Tested' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close'
Copied!

Response

Response contains an array of testcase objects.
1
{
2
"count": 999,
3
"testcases":[
4
{
5
"testcase": "...",
6
"status": "...",
7
"tags": ["...","..."],
8
"id": "...",
9
"created": "...",
10
"locked": "...",
11
"last_updated": "...",
12
"last_updated_by": "...",
13
"notes": [{"note": "...", "created": "...", "last_updated": "...", "last_updated_by": "..."}],
14
"uploaded_files": [{"name": "...", "alternative_name": "...", "file_type": "...", "size": 999, "uploaded_on": "..."}]
15
}
16
]
17
}
Copied!
Last modified 2mo ago