6
6
Library used only for implementors of custom listeners for ReportPortal
7
7
8
8
9
- ## Allready implemented listeners:
9
+ ## Already implemented listeners:
10
10
11
- - [ Robot Framework] ( https://github.com/reportportal/agent-Python-RobotFramework )
12
11
- [ PyTest Framework] ( https://github.com/reportportal/agent-python-pytest )
12
+ - [ Robot Framework] ( https://github.com/reportportal/agent-Python-RobotFramework )
13
13
14
14
15
15
## Installation
@@ -57,9 +57,9 @@ def my_error_handler(exc_info):
57
57
This callback function will be called by async service client when error occurs.
58
58
Return True if error is not critical and you want to continue work.
59
59
:param exc_info: result of sys.exc_info() -> (type, value, traceback)
60
- :return:
60
+ :return:
61
61
"""
62
- print (" Error occured : {} " .format(exc_info[1 ]))
62
+ print (" Error occurred : {} " .format(exc_info[1 ]))
63
63
traceback.print_exception(* exc_info)
64
64
65
65
@@ -76,7 +76,7 @@ test = service.start_test_item(name="Test Case",
76
76
description = " First Test Case" ,
77
77
tags = [" Image" , " Smoke" ],
78
78
start_time = timestamp(),
79
- item_type = " TEST " )
79
+ item_type = " STEP " )
80
80
81
81
# Create text log message with INFO level.
82
82
service.log(time = timestamp(),
@@ -89,7 +89,7 @@ service.log(time=timestamp(),
89
89
level = " WARN" ,
90
90
attachment = {
91
91
" name" : " free_memory.txt" ,
92
- " data" : subprocess.check_output(" ps " .split()),
92
+ " data" : subprocess.check_output(" free -h " .split()),
93
93
" mime" : " text/plain"
94
94
})
95
95
@@ -117,7 +117,7 @@ service.finish_test_item(end_time=timestamp(), status="PASSED")
117
117
service.finish_launch(end_time = timestamp())
118
118
119
119
# Due to async nature of the service we need to call terminate() method which
120
- # ensures all pending requests to server are proccessed .
120
+ # ensures all pending requests to server are processed .
121
121
# Failure to call terminate() may result in lost data.
122
122
service.terminate()
123
123
```
0 commit comments