Skip to main content
Autoheal Command LogsFetch autohealed commands data for a test
TestMu AI
StatusCommunityBlog
Autoheal Command Logs

Fetch autohealed commands data for a test

Retrieve all autohealed commands for a specific test session, including original and healed locators with execution duration.

GET
/autoheal/test/{test_id}
Fetch autohealed commands data for a test
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/autoheal/test/{test_id}" \
--header "Authorization: Basic <encoded-value>"
{
"status": "success",
"message": null,
"data": {
"total_healed_commands": 11,
"test_id": "DA-WIN-160849-1756966096614912604KKM",
"healed_commands": [
{
"request_id": "LT01K49NG343J2YDNEQ60HQVQY13-6NSZV-US-EAST-1",
"test_id": "DA-WIN-160849-1756966096614912604KKM",
"original_locator": {
"using": "css selector",
"value": "[class=\"list-unstyled\"]>:nth-child(4)>input"
},
"healed_locator": {
"using": "css selector",
"value": "input.custom-checkbox.ng-pristine.ng-untouched.ng-valid.ng-empty"
},
"duration": 349
},
{
"request_id": "LT01K49NG2BMVQ50K6XF53K9VZHN-L2V78-US-EAST-1",
"test_id": "DA-WIN-160849-1756966096614912604KKM",
"original_locator": {
"using": "css selector",
"value": "[class=\"list-unstyled\"]>:nth-child(3)>input"
},
"healed_locator": {
"using": "css selector",
"value": "input.custom-checkbox.ng-pristine.ng-untouched.ng-valid.ng-empty"
},
"duration": 398
}
]
}
}

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

test_idstringrequired

Test ID for which to fetch autohealed commands

Query Parameters

limitinteger

Maximum number of records to return (default 100)

offsetinteger

Number of records to skip for pagination (default 0)

Response

application/json

Successfully retrieved autohealed commands data

statusstring
messagestring
dataobject
data.total_healed_commandsnumber
Example: 11
data.test_idstring
Example: "DA-WIN-160849-1756966096614912604KKM"
data.healed_commandsobject[]
Fetch autohealed commands data for a test
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/autoheal/test/{test_id}" \
--header "Authorization: Basic <encoded-value>"
{
"status": "success",
"message": null,
"data": {
"total_healed_commands": 11,
"test_id": "DA-WIN-160849-1756966096614912604KKM",
"healed_commands": [
{
"request_id": "LT01K49NG343J2YDNEQ60HQVQY13-6NSZV-US-EAST-1",
"test_id": "DA-WIN-160849-1756966096614912604KKM",
"original_locator": {
"using": "css selector",
"value": "[class=\"list-unstyled\"]>:nth-child(4)>input"
},
"healed_locator": {
"using": "css selector",
"value": "input.custom-checkbox.ng-pristine.ng-untouched.ng-valid.ng-empty"
},
"duration": 349
},
{
"request_id": "LT01K49NG2BMVQ50K6XF53K9VZHN-L2V78-US-EAST-1",
"test_id": "DA-WIN-160849-1756966096614912604KKM",
"original_locator": {
"using": "css selector",
"value": "[class=\"list-unstyled\"]>:nth-child(3)>input"
},
"healed_locator": {
"using": "css selector",
"value": "input.custom-checkbox.ng-pristine.ng-untouched.ng-valid.ng-empty"
},
"duration": 398
}
]
}
}