Skip to content

Commit 55df859

Browse files
author
Erich-McMillan
committed
Update readme to show serving multiple libraries
1 parent 39efd91 commit 55df859

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,25 @@ using ``stop`` argument on the command line or by using the
243243
``stop_remote_server`` function programmatically. Testing and stopping should
244244
work also with other Robot Framework remote server implementations.
245245

246+
Serving Multiple Libraries
247+
-------
248+
249+
In many cases it maybe be desirable to serve multiple libraries from a single
250+
remote server. The libraries argument not only accepts a single class type, but
251+
also can accept a list of classes from which to serve keywords. For example:
252+
253+
.. sourcecode:: python
254+
class KeywordLib1:
255+
def Keyword1(self):
256+
...
257+
258+
class KeywordLib2:
259+
def Keyword2(self):
260+
...
261+
262+
if __name__ == "__main__":
263+
RobotRemoteServer([KeywordLib1(), KeywordLib2()])
264+
246265
Example
247266
-------
248267

0 commit comments

Comments
 (0)