Session › Network log of a test session
Session
Network log of a test session To fetch Network log that contains all the requested urls of a test session in plain json text.
Network log of a test session curl -- request GET \
-- url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}/log/network" \
-- header "Authorization: Basic <encoded-value>"
{
"data" : [
{
"logType" : "server" ,
"testID" : "5HLCQ-HPCWH-UOE2O-2CUFA" ,
"status" : 0 ,
"timestamp" : 1551356378609 ,
"Value" : {
"level" : "INFO" ,
"message" : "Started new session 2F42BCCC-BF43-426A-A72F-F58F58167496 (org.openqa.selenium.safari.SafariDriverService)" ,
"timestamp" : 1551356378609
}
}
]
}
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 session_id string required
get logs based on session id
Response 200▼
application/json successful operation
data object[]
▶ Hide child attributesdata. logType string
Example: "server"
data. testID string
Example: "5HLCQ-HPCWH-UOE2O-2CUFA"
data. status number
Example: 0
data. timestamp number
Example: 1551356378609
data. Value object
▶ Show child attributes
Network log of a test session curl -- request GET \
-- url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}/log/network" \
-- header "Authorization: Basic <encoded-value>"
{
"data" : [
{
"logType" : "server" ,
"testID" : "5HLCQ-HPCWH-UOE2O-2CUFA" ,
"status" : 0 ,
"timestamp" : 1551356378609 ,
"Value" : {
"level" : "INFO" ,
"message" : "Started new session 2F42BCCC-BF43-426A-A72F-F58F58167496 (org.openqa.selenium.safari.SafariDriverService)" ,
"timestamp" : 1551356378609
}
}
]
}