Skip to main content
CypressCommand logs of a cypress test id
TestMu AI
StatusCommunityBlog
Cypress

Command logs of a cypress test id

To fetch all the executed commands of a cypress test id in plain json text.

GET
/log/{test_id}/command
Command logs of a cypress test id
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/cypress/log/{test_id}/command" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"spec": "examples/actions.spec.js",
"suites": [
{
"tests": [
{
"code": "https://on.cypress.io/cy.get...",
"context": null,
"duration": 1782,
"err": {},
"fail": true,
"fullTitle": "Actions .blur() - blur off a DOM element.",
"isHook": false,
"parentUUID": "ff9d286c-2d74-4241-8554-b5fe32a4d7e2",
"pass": true,
"pending": true,
"skipped": true,
"speed": "medium",
"state": "passed",
"timedOut": null,
"title": "blur off a DOM element",
"uuid": "0bbd4e33-d38c-44ac-acd0-702142c10594"
}
]
}
]
},
"message": "Retrieve logs list was successful",
"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

Response

application/json

successful operation

dataobjectrequired
data.specstring
Example: "examples/actions.spec.js"
data.suitesobject[]
messagestringrequired
statusstringrequired
Command logs of a cypress test id
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/cypress/log/{test_id}/command" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"spec": "examples/actions.spec.js",
"suites": [
{
"tests": [
{
"code": "https://on.cypress.io/cy.get...",
"context": null,
"duration": 1782,
"err": {},
"fail": true,
"fullTitle": "Actions .blur() - blur off a DOM element.",
"isHook": false,
"parentUUID": "ff9d286c-2d74-4241-8554-b5fe32a4d7e2",
"pass": true,
"pending": true,
"skipped": true,
"speed": "medium",
"state": "passed",
"timedOut": null,
"title": "blur off a DOM element",
"uuid": "0bbd4e33-d38c-44ac-acd0-702142c10594"
}
]
}
]
},
"message": "Retrieve logs list was successful",
"status": "success"
}