reportportal / agent-Python-RobotFramework

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

Fixes for using python 3.6 #37

Closed skinny-b closed 4 years ago

skinny-b commented 4 years ago

Fixes these errors: model.py:: [ ERROR ] Calling method 'log_message' of listener 'robotframework_reportportal.listener' failed: TypeError: object.__init__() takes no parameters

variables.py::

Traceback (most recent call last):
  File ".../lib/python3.6/site-packages/reportportal_client/service_async.py", line 231, in process_item
    self.process_log(**kwargs)
  File ".../lib/python3.6/site-packages/reportportal_client/service_async.py", line 214, in process_log
    if len(self.log_batch) >= self.log_batch_size:
TypeError: '>=' not supported between instances of 'int' and 'str'

Internal testing of 'Robot Framework 3.1.2 (Python 2.7.5 on linux2)' and 'Robot Framework 3.1.2 (Python 3.6.6 on linux)' both worked uploading proper launch data to reportportal server. Both running in their own virtual env with: reportportal-client==3.2.3 robotframework-seleniumlibrary==4.0.0 robotframework-sshlibrary==3.4.0 selenium==3.141.0