Autoheal Command Logs › Fetch autohealed commands data for a test
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.
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 Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters test_id string required
Test ID for which to fetch autohealed commands
Query Parameters limit integer
Maximum number of records to return (default 100)
offset integer
Number of records to skip for pagination (default 0)
Response 200▼
application/json Successfully retrieved autohealed commands data
data object
▶ Hide child attributesdata. total_healed_commands number
Example: 11
data. test_id string
Example: "DA-WIN-160849-1756966096614912604KKM"
data. healed_commands object[]
▶ Show child attributes
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
}
]
}
}