Session › command logs of a test session (Server 2)
Session
command logs of a test session (Server 2) To fetch the all executed commands of a test session in plain json text.
command logs of a test session (Server 2) curl -- request GET \
-- url "https://manual-api.lambdatest.com/sessions/{session_id}/log/command" \
-- header "Authorization: Basic <encoded-value>"
{
"Value" : {
"logType" : "requestLog" ,
"testID" : "5HLCQ-HPCWH-UOE2O-2CUFA" ,
"status" : 0 ,
"timestamp" : 1551356385 ,
"orgID" : 0 ,
"requestId" : "82e3b7cd-3b04-4bc8-9d2b-567aff450fe4" ,
"RequestStartTime" : 1551356385 ,
"requestMethod" : "POST" ,
"requestPath" : "/wd/hub/session/2F42BCCC-BF43-426A-A72F-F58F58167496/element/node-DF5D363E-84A2-4CA4-9AC4-0F398C606082/click" ,
"duration" : 8 ,
"requestBody" : "{\"sessionId\": \"2F42BCCC-BF43-426A-A72F-F58F58167496\", \"id\": \"node-DF5D363E-84A2-4CA4-9AC4-0F398C606082\"}" ,
"responseBody" : "{\"status\":0,\"sessionId\":\"2F42BCCC-BF43-426A-A72F-F58F58167496\",\"value\":{}}" ,
"responseStatus" : "200 OK" ,
"screenshotId" : "56bcabhakjasnac75142bc"
}
}
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
Session ID
Query Parameters pageoffset integer
Page offset defines the number of records to skip, based on the limit parameter, to fetch a specific page of data. e.g pageoffset=10
limit integer
To fetch specified number of records. e.g. limit=10
Response 200▼
application/json successful operation
Value object required
▶ Hide child attributesValue. logType string
Example: "requestLog"
Value. testID string
Example: "5HLCQ-HPCWH-UOE2O-2CUFA"
Value. status number
Example: 0
Value. timestamp number
Example: 1551356385
Value. orgID number
Example: 0
Value. requestId string
Example: "82e3b7cd-3b04-4bc8-9d2b-567aff450fe4"
Value. RequestStartTime number
Example: 1551356385
Value. requestMethod string
Example: "POST"
Value. requestPath string
Example: "/wd/hub/session/2F42BCCC-BF43-426A-A72F-F58F58167496/element/node-DF5D363E-84A2-4CA4-9AC4-0F398C606082/click"
Value. duration number
Example: 8
Value. requestBody string
Example: "{"sessionId": "2F42BCCC-BF43-426A-A72F-F58F58167496", "id": "node-DF5D363E-84A2-4CA4-9AC4-0F398C606082"}"
Value. responseBody string
Example: "{"status":0,"sessionId":"2F42BCCC-BF43-426A-A72F-F58F58167496","value":{}}"
Value. responseStatus string
Example: "200 OK"
Value. screenshotId string
Example: "56bcabhakjasnac75142bc"
command logs of a test session (Server 2) curl -- request GET \
-- url "https://manual-api.lambdatest.com/sessions/{session_id}/log/command" \
-- header "Authorization: Basic <encoded-value>"
{
"Value" : {
"logType" : "requestLog" ,
"testID" : "5HLCQ-HPCWH-UOE2O-2CUFA" ,
"status" : 0 ,
"timestamp" : 1551356385 ,
"orgID" : 0 ,
"requestId" : "82e3b7cd-3b04-4bc8-9d2b-567aff450fe4" ,
"RequestStartTime" : 1551356385 ,
"requestMethod" : "POST" ,
"requestPath" : "/wd/hub/session/2F42BCCC-BF43-426A-A72F-F58F58167496/element/node-DF5D363E-84A2-4CA4-9AC4-0F398C606082/click" ,
"duration" : 8 ,
"requestBody" : "{\"sessionId\": \"2F42BCCC-BF43-426A-A72F-F58F58167496\", \"id\": \"node-DF5D363E-84A2-4CA4-9AC4-0F398C606082\"}" ,
"responseBody" : "{\"status\":0,\"sessionId\":\"2F42BCCC-BF43-426A-A72F-F58F58167496\",\"value\":{}}" ,
"responseStatus" : "200 OK" ,
"screenshotId" : "56bcabhakjasnac75142bc"
}
}