Skip to main content
Test RunsGet All Test Runs By Project ID
TestMu AI
StatusCommunityBlog
Test Runs

Get All Test Runs By Project ID

Get All Test Runs By Project ID

GET
/api/v1/projects/{project_id}/test-runs
Get All Test Runs By Project ID
curl --request GET \
--url "https://test-manager-api.lambdatest.com//api/v1/projects/{project_id}/test-runs" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"id": "test_run_id",
"title": "Title",
"project_id": "project_id",
"objective": "",
"is_auteur_generated": false,
"tags": null,
"status": "In Progress",
"type": "Manual",
"build_state": "active",
"created_at": "2025-01-14T10:38:54Z",
"updated_at": "2025-01-15T11:17:48Z",
"created_by": "user_id",
"updated_by": "user_id",
"run_result": {
"total_test": 84,
"passed": 14,
"failed": 0,
"skipped": 0,
"not_started": 70
},
"is_build_disabled": false,
"total_test_cases": 2,
"total_environments": 42,
"total_run_instances": 84,
"complete_percent": 16.666666666666664
}
],
"columnMetadata": {
"build_state": {
"display_name": "Build State",
"default": true,
"can_be_hidden": false,
"sortable": false
}
},
"filterMetadata": {
"build_state": {
"display_name": "Build State",
"options": [
"active",
"archived"
],
"type": "select"
}
},
"pagination": {
"current_page": 1,
"last_page": 2,
"per_page": 10,
"total": 11
}
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

project_idstringrequired

Query Parameters

pageinteger
per_pageinteger

Response

application/json

Successfully retrieved test runs

dataobject[]
data.idstring
Example: "test_run_id"
data.titlestring
Example: "Title"
data.project_idstring
Example: "project_id"
data.objectivestring
Example: ""
data.is_auteur_generatedboolean
Example: false
data.tagsnull
data.statusstring
Example: "In Progress"
data.typestring
Example: "Manual"
data.build_statestring
Example: "active"
data.created_atstring
Example: "2025-01-14T10:38:54Z"
data.updated_atstring
Example: "2025-01-15T11:17:48Z"
data.created_bystring
Example: "user_id"
data.updated_bystring
Example: "user_id"
data.run_resultobject
data.is_build_disabledboolean
Example: false
data.total_test_casesnumber
Example: 2
data.total_environmentsnumber
Example: 42
data.total_run_instancesnumber
Example: 84
data.complete_percentnumber
Example: 16.666666666666664
columnMetadataobject
filterMetadataobject
paginationobject
pagination.current_pagenumber
Example: 1
pagination.last_pagenumber
Example: 2
pagination.per_pagenumber
Example: 10
pagination.totalnumber
Example: 11
Get All Test Runs By Project ID
curl --request GET \
--url "https://test-manager-api.lambdatest.com//api/v1/projects/{project_id}/test-runs" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"id": "test_run_id",
"title": "Title",
"project_id": "project_id",
"objective": "",
"is_auteur_generated": false,
"tags": null,
"status": "In Progress",
"type": "Manual",
"build_state": "active",
"created_at": "2025-01-14T10:38:54Z",
"updated_at": "2025-01-15T11:17:48Z",
"created_by": "user_id",
"updated_by": "user_id",
"run_result": {
"total_test": 84,
"passed": 14,
"failed": 0,
"skipped": 0,
"not_started": 70
},
"is_build_disabled": false,
"total_test_cases": 2,
"total_environments": 42,
"total_run_instances": 84,
"complete_percent": 16.666666666666664
}
],
"columnMetadata": {
"build_state": {
"display_name": "Build State",
"default": true,
"can_be_hidden": false,
"sortable": false
}
},
"filterMetadata": {
"build_state": {
"display_name": "Build State",
"options": [
"active",
"archived"
],
"type": "select"
}
},
"pagination": {
"current_page": 1,
"last_page": 2,
"per_page": 10,
"total": 11
}
}