Cypress›Network log of a Cypress test id
Cypress
Network log of a Cypress test id
To fetch Network log that contains all the requested urls of a Cypress test id in plain json text.
Network log of a Cypress test id curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/cypress/log/{test_id}/network" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"Value": {
"_id": "e2ac17b1f2ef625a",
"cache": {},
"request": {},
"response": {},
"startedDateTime": "2022-04-04T13:47:40.853493Z",
"time": 0,
"timings": {}
},
"logType": "network",
"order": 5,
"testID": "5TSTJ-LIPQM-VDVJH-CT129"
}
],
"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
get logs based on test id
Response
application/jsonsuccessful operation
dataobject[]required
data.Valueobject
data.logTypestring
Example: "network"
data.ordernumber
Example: 5
data.testIDstring
Example: "5TSTJ-LIPQM-VDVJH-CT129"
Network log of a Cypress test id curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/cypress/log/{test_id}/network" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"Value": {
"_id": "e2ac17b1f2ef625a",
"cache": {},
"request": {},
"response": {},
"startedDateTime": "2022-04-04T13:47:40.853493Z",
"time": 0,
"timings": {}
},
"logType": "network",
"order": 5,
"testID": "5TSTJ-LIPQM-VDVJH-CT129"
}
],
"message": "Retrieve logs list was successful",
"status": "success"
}