Skip to content

Commit 13d739e

Browse files
author
Erich-McMillan
committed
Update readme to show serving multiple libraries
1 parent 4fee06c commit 13d739e

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
@@ -261,6 +261,25 @@ an output file::
261261

262262
__ http://robotframework.org/robotframework/#built-in-tools
263263

264+
Serving Multiple Libraries
265+
-------
266+
267+
In many cases it maybe be desirable to serve multiple libraries from a single
268+
remote server. The libraries argument not only accepts a single class type, but
269+
also can accept a list of classes from which to serve keywords. For example:
270+
271+
.. sourcecode:: python
272+
class KeywordLib1:
273+
def Keyword1(self):
274+
...
275+
276+
class KeywordLib2:
277+
def Keyword2(self):
278+
...
279+
280+
if __name__ == "__main__":
281+
RobotRemoteServer([KeywordLib1(), KeywordLib2()])
282+
264283
Example
265284
-------
266285

0 commit comments

Comments
 (0)