Skip to main content
TestUpload assertion logs to our lambda storage
TestMu AI
StatusCommunityBlog
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

POST
/tests/{test_id}/exceptions
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

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

Body

application/json

To upload exception log for a given test Id

exceptionarray

Response

application/json

Successful operation

datastring
statusstring
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"
}