Fetch Build Screenshots › Fetch SmartUI build screenshots by project_id and build_id
Fetch Build Screenshots
Fetch SmartUI build screenshots by project_id and build_id This API fetches all screenshots of a particular build with comparison details. Note: When both build_id and build_name are provided in the request, buildId will be given priority over buildName.
Fetch SmartUI build screenshots by project_id and build_id curl -- request GET \
-- url "https://api.lambdatest.com/automation/smart-ui/build/screenshots" \
-- header "Authorization: Basic <encoded-value>"
{
"screenshots" : [
{
"screenshot_name" : "first" ,
"captured_image" : "URL" ,
"baseline_image" : "URL" ,
"compared_image" : "URL" ,
"browser_name" : "chrome" ,
"browser_version" : "118.0" ,
"viewport" : "1920x1080" ,
"os" : "default" ,
"mismatch_percentage" : 0.1 ,
"status" : "Approved" ,
"approved_by" : "dummy" ,
"captured_image_timestamp" : "2023-11-10 13:47:24" ,
"compared_image_timestamp" : "2023-11-10 13:47:29"
}
] ,
"build" : {
"build_id" : "c74f72b5-2dd9-42a4-9478-cd8174a56152" ,
"name" : "build-1" ,
"baseline" : false ,
"build_status" : "Approved"
} ,
"project" : {
"project_id" : "ed2ee7bc-d90d-4719-91a7-19636de5a590" ,
"name" : "web-project" ,
"username" : "dummy"
}
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters project_name string required
The name of the particular project (project id can also be used)
project_id string
Unique identifier of the project (project name can also be used)
build_name string
Build name can also be used instead of build Id (Optional)
build_id string
Fetches all the screenshots of a particular build
baseline boolean
Fetches the screenshots of the baseline build of the project
screenshot_name string
Fetches details of a specific screenshot
Response 200▼
application/json Successful operation
screenshots object[]
▶ Hide child attributesscreenshots. screenshot_name string
Example: "first"
screenshots. captured_image string
Example: "URL"
screenshots. baseline_image string
Example: "URL"
screenshots. compared_image string
Example: "URL"
screenshots. browser_name string
Example: "chrome"
screenshots. browser_version string
Example: "118.0"
screenshots. viewport string
Example: "1920x1080"
screenshots. os string
Example: "default"
screenshots. mismatch_percentage number
Example: 0.1
screenshots. status string
Example: "Approved"
screenshots. approved_by string
Example: "dummy"
screenshots. captured_image_timestamp string
Example: "2023-11-10 13:47:24"
screenshots. compared_image_timestamp string
Example: "2023-11-10 13:47:29"
build object
▶ Hide child attributesbuild. build_id string
Example: "c74f72b5-2dd9-42a4-9478-cd8174a56152"
build. name string
Example: "build-1"
build. baseline boolean
Example: false
build. build_status string
Example: "Approved"
project object
▶ Hide child attributesproject. project_id string
Example: "ed2ee7bc-d90d-4719-91a7-19636de5a590"
project. name string
Example: "web-project"
project. username string
Example: "dummy"
Fetch SmartUI build screenshots by project_id and build_id curl -- request GET \
-- url "https://api.lambdatest.com/automation/smart-ui/build/screenshots" \
-- header "Authorization: Basic <encoded-value>"
{
"screenshots" : [
{
"screenshot_name" : "first" ,
"captured_image" : "URL" ,
"baseline_image" : "URL" ,
"compared_image" : "URL" ,
"browser_name" : "chrome" ,
"browser_version" : "118.0" ,
"viewport" : "1920x1080" ,
"os" : "default" ,
"mismatch_percentage" : 0.1 ,
"status" : "Approved" ,
"approved_by" : "dummy" ,
"captured_image_timestamp" : "2023-11-10 13:47:24" ,
"compared_image_timestamp" : "2023-11-10 13:47:29"
}
] ,
"build" : {
"build_id" : "c74f72b5-2dd9-42a4-9478-cd8174a56152" ,
"name" : "build-1" ,
"baseline" : false ,
"build_status" : "Approved"
} ,
"project" : {
"project_id" : "ed2ee7bc-d90d-4719-91a7-19636de5a590" ,
"name" : "web-project" ,
"username" : "dummy"
}
}