reportportal / agent-Python-RobotFramework

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

Robot Framework report portal listener incompatible with Report Portal 5.8.0? #181

Closed poppem closed 7 months ago

poppem commented 7 months ago

Describe the bug I am getting an error when using the robotframework_reportportal.listener version 5.5.0 with Report Portal 5.8.0. The error suggests that it is due to an incompatibility between the listener and report portal (attributes getting set incorrectly): [ ERROR ] Calling method 'start_suite' of listener 'robotframework_reportportal.listener' failed: AttributeError: can't set attribute 'launch_id'

Steps to Reproduce Execute any robot test using the report portal listener: robot --listener robotframework_reportportal.listener \ --variable RP_API_KEY:XXXX \ --variable RP_ENDPOINT:https://XXXX \ --variable RP_LAUNCH:XXXX \ --variable RP_PROJECT:XXXX \ --variable RP_LAUNCH_UUID:XXXX \ --variable RP_LAUNCH_ATTRIBUTES:XXXX \ --variable RP_LAUNCH_DOC:XXXX mytests

Expected behavior No errors

Actual behavior robot tests run but listener spits out errors:

==============================================================================
Test-MyTest:: Basic Robot test                                    
==============================================================================
[ ERROR ] Calling method 'start_suite' of listener 'robotframework_reportportal.listener' failed: AttributeError: can't set attribute 'launch_id'
[ ERROR ] Calling method 'start_keyword' of listener 'robotframework_reportportal.listener' failed: AttributeError: 'NoneType' object has no attribute 'type'
[ ERROR ] Calling method 'start_keyword' of listener 'robotframework_reportportal.listener' failed: AttributeError: 'NoneType' object has no attribute 'type'
[ ERROR ] Calling method 'start_keyword' of listener 'robotframework_reportportal.listener' failed: AttributeError: 'NoneType' object has no attribute 'type'
Starting Tests...

Package versions robotframework-reportportal: 5.5.0 reportportal-client: 5.5.4 Report Portal 5.8.0

Additional context Add any other context about the problem here.

HardNorth commented 7 months ago

@poppem Should be fine in: https://github.com/reportportal/agent-Python-RobotFramework/releases/tag/5.5.1

poppem commented 7 months ago

@HardNorth , thanks for the quick response!