Test › Upload assertion logs to our lambda storage
Test
Upload assertion logs to our lambda storage You can upload assertion logs or other logs for a test Id. The logs uploaded can then be viewed in the automation dashboard page under EXCEPTION sections. You can only upload a list of strings
Upload assertion logs to our lambda storage curl -- request POST \
-- url "https://api.lambdatest.com/automation/api/v1/tests/{test_id}/exceptions" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: application/json" \
-- data ' {
"exception" : [ ]
} '
{
"data" : "File have been uploaded successfully to our lambda storage" ,
"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.
Path Parameters test_id string required
Test ID
Body application/json To upload exception log for a given test Id
Response 200▼
application/json Successful operation
Upload assertion logs to our lambda storage curl -- request POST \
-- url "https://api.lambdatest.com/automation/api/v1/tests/{test_id}/exceptions" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: application/json" \
-- data ' {
"exception" : [ ]
} '
{
"data" : "File have been uploaded successfully to our lambda storage" ,
"status" : "success"
}