Upload Screenshots › Upload any locally captured images to SmartUI for visual regression testing.Maximum Upload Size:100MB
Upload Screenshots
Upload any locally captured images to SmartUI for visual regression testing.Maximum Upload Size:100MB Using this API you can upload any local images to our cloud comparsion. You can upload images and add their meta-data information to map the screenshots for comparsion.
Upload any locally captured images to SmartUI for visual regression testing.Maximum Upload Size:100MB curl -- request POST \
-- url "https://api.lambdatest.com/automation/smart-ui/v2/upload" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: multipart/form-data" \
-- form 'files=<files>' \
-- form 'projectToken=<projectToken>' \
-- form 'buildName=<buildName>' \
-- form 'baseline=true' \
-- form 'screenshotNames=<screenshotNames>' \
-- form 'githubURL=<githubURL>'
{
"data" : {
"filesUploaded" : {
"error" : "" ,
"message" : "" ,
"fileName" : "Screenshot 2022-12-05 at 5.00.37 PM.png" ,
"screenshotName" : "screenshot1"
} ,
"buildName" : "build-1" ,
"buildId" : "f3e9bf89-4b61-4eb2-ad60-aaa72150d05e" ,
"projectName" : "demo-project" ,
"totalFilesUploaded" : 1 ,
"projectId" : "65bd1675-fe42-40bf-9698-7610cb4211bd"
} ,
"status" : "success"
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body multipart/form-data Pass your list of screenshots which needs to be uploaded for comparison. (Minimum 1 file required)
files string<binary> required
projectToken string required
Response 200▼
application/json successful operation
data object
▶ Hide child attributesdata. filesUploaded object
▶ Show child attributes
data. buildName string
Example: "build-1"
data. buildId string
Example: "f3e9bf89-4b61-4eb2-ad60-aaa72150d05e"
data. projectName string
Example: "demo-project"
data. totalFilesUploaded number
Example: 1
data. projectId string
Example: "65bd1675-fe42-40bf-9698-7610cb4211bd"
Upload any locally captured images to SmartUI for visual regression testing.Maximum Upload Size:100MB curl -- request POST \
-- url "https://api.lambdatest.com/automation/smart-ui/v2/upload" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: multipart/form-data" \
-- form 'files=<files>' \
-- form 'projectToken=<projectToken>' \
-- form 'buildName=<buildName>' \
-- form 'baseline=true' \
-- form 'screenshotNames=<screenshotNames>' \
-- form 'githubURL=<githubURL>'
{
"data" : {
"filesUploaded" : {
"error" : "" ,
"message" : "" ,
"fileName" : "Screenshot 2022-12-05 at 5.00.37 PM.png" ,
"screenshotName" : "screenshot1"
} ,
"buildName" : "build-1" ,
"buildId" : "f3e9bf89-4b61-4eb2-ad60-aaa72150d05e" ,
"projectName" : "demo-project" ,
"totalFilesUploaded" : 1 ,
"projectId" : "65bd1675-fe42-40bf-9698-7610cb4211bd"
} ,
"status" : "success"
}