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 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
get logs based on test id
Response 200▼
application/json successful operation
data object[] required
▶ Hide child attributesdata. Value object
▶ Show child attributes
data. logType string
Example: "network"
data. order number
Example: 5
data. testID string
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"
}