mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
475 stars 152 forks source link

pabot.Shared #598

Open Snooz82 opened 1 month ago

Snooz82 commented 1 month ago

In RF 7 the interface of TestLibrary has changed.

Library             pabot.SharedLibrary    Process

causes:

[ ERROR ] Error in file '***' on line 2: Initializing library 'pabot.SharedLibrary' with arguments [ Process ] failed: TypeError: TestLibrary.__init__() got an unexpected keyword argument 'args'
Traceback (most recent call last):
  File "***/.venv/lib/python3.12/site-packages/pabot/SharedLibrary.py", line 27, in __init__
    self._lib = RemoteLibraryFactory(TestLibrary(name, args=args).get_instance())
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: TestLibrary.__init__() got an unexpected keyword argument 'args'

It has changed from a factory method to a class... Ping @pekkaklarck

olesz commented 1 day ago

The following pull request fixes the issue: https://github.com/mkorpela/pabot/pull/600