reportportal / agent-Python-RobotFramework

Robot Framework integration for Report Portal
Apache License 2.0
59 stars 32 forks source link

method log_message raise error on SkipTest in robotFW 4.1 #136

Closed doguz2509 closed 2 years ago

doguz2509 commented 2 years ago

Describe the bug Error raised when test skipped

Steps to Reproduce Run some test suite including 'skip' or 'skip if' keywords

Expected behavior No error expected

Actual behavior [ ERROR ] Calling method 'log_message' of listener 'robotframework_reportportal.listener' failed: KeyError: 'SKIP'

Package versions reportportal-client - 5.0.12 robotframework-reportportal - 5.2.0

Additional context Add any other context about the problem here. image

Actually there are caused by missing key-value pair 'SKIP': 'INFO' within dictionary venv/Lib/site-packages/robotframework_reportportal/static.py: LOG_LEVEL_MAPPING = { 'INFO': 'INFO', 'FAIL': 'ERROR', 'TRACE': 'TRACE', 'DEBUG': 'DEBUG', 'HTML': 'INFO', 'WARN': 'WARN', 'ERROR': 'ERROR' }