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
Authorizationstringheaderrequired
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
session_idstringrequired
Session ID
Query Parameters
pageoffsetinteger
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
limitinteger
To fetch specified number of records. e.g. limit=10
Response
application/jsonsuccessful operation
Valueobjectrequired
Value.logTypestring
Example: "requestLog"
Value.testIDstring
Example: "5HLCQ-HPCWH-UOE2O-2CUFA"
Value.statusnumber
Example: 0
Value.timestampnumber
Example: 1551356385
Value.orgIDnumber
Example: 0
Value.requestIdstring
Example: "82e3b7cd-3b04-4bc8-9d2b-567aff450fe4"
Value.RequestStartTimenumber
Example: 1551356385
Value.requestMethodstring
Example: "POST"
Value.requestPathstring
Example: "/wd/hub/session/2F42BCCC-BF43-426A-A72F-F58F58167496/element/node-DF5D363E-84A2-4CA4-9AC4-0F398C606082/click"
Value.durationnumber
Example: 8
Value.requestBodystring
Example: "{"sessionId": "2F42BCCC-BF43-426A-A72F-F58F58167496", "id": "node-DF5D363E-84A2-4CA4-9AC4-0F398C606082"}"
Value.responseBodystring
Example: "{"status":0,"sessionId":"2F42BCCC-BF43-426A-A72F-F58F58167496","value":{}}"
Value.responseStatusstring
Example: "200 OK"
Value.screenshotIdstring
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"
}
}