GET Log File Method

This method returns a list of all log files.

Syntax:

GET /api/log_file

Curl

$> curl 'http://localhost:8080/api/log_file' -H 'Authorization: Basic YWRtaW46YWRtaW4='

Raw Request

GET /api/log_file HTTP/1.1

Host: localhost:8080

Authorization: Basic YWRtaW46YWRtaW4=

Read Keys

Parameter Type
_id Id
created_at Datetime
updated_at Datetime
test_run_id Id
test_run_instance_id Id
run_instance_execution_id Id
status_code Integer
timestamp Datetime
num_errors Integer
path String
logs_export Hash List
test_cases Hash List

Response Body

{

"limit": 100,

"offset": 0,

"count": 1,

"log_files": [

{

"_id": "58f6a1fb4445532638280000",

"created_at": "2017-04-18T23:32:11.545Z",

"updated_at": "2017-04-18T23:32:11.545Z",

"test_run_id": "58f6a1dd44455326381e0000",

"test_run_instance_id": "58f6a1de4445532638200000",

"run_instance_execution_id": "58f6a1de4445532638210000",

"status_code": 400,

"timestamp": "2017-04-18T23:32:08.156Z",

"num_errors": 1,

"path": "C:/TestPlant/cache/em_server/TRS/368/instances/368/suites/regression.suite/Results/_master/20170418_173208.154/LogFile.txt",

"test_cases": [< omitted >],

"logs_export": [

{

"line_number": 1,

"logged_at": "2017-04-18T17:32:08-06:00",

"logged_at_tenths": "156 -0600",

"event_name": "START",

"image_name": "",

"location": "Running _master.script\n",

"line": null,

"handler_name": null,

"script_name_field": null

},

{

"line_number": 2,

"logged_at": "2017-04-18T17:32:08-06:00",

"logged_at_tenths": "517 -0600",

"event_name": "EndTestCase",

"image_name": "",

"location": "(Duration:\"0.354\", Errors:\"1\", Exceptions:\"0\", StartTime:\"2017-04-18 17:32:08 -0600\", Successes:\"0\", TestCase:\"_master.script\", Warnings:\"0\")\n",

"line": null,

"handler_name": null,

"script_name_field": null

},

{

"line_number": 3,

"logged_at": "2017-04-18T17:32:08-06:00",

"logged_at_tenths": "815 -0600",

"event_name": "FAILURE",

"image_name": "Screen_Error.png",

"location": "Script Error Number of Errors logged: 1 -- Execution Time 0:00:00 _master.script\n",

"line": null,

"handler_name": null,

"script_name_field": null

}

]

}

]

}

 

This topic was last updated on June 21, 2019, at 02:49:49 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant